:root {
  --green: #0e7225;
  --green-soft: #2f8e3b;
  --ink: #242727;
  --muted: #707872;
  --line: #dfe6de;
  --paper: #ffffff;
  --wash: #f7f7f3;
  --cream: #fbf8ef;
  --shadow: 0 18px 38px rgba(15, 57, 25, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #1f1f1f;
}

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

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(440px, 1fr);
  gap: 28px;
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px;
}

.phone-stage {
  display: grid;
  place-items: start center;
}

.phone {
  width: min(500px, 100%);
  min-height: 860px;
  padding: 0 26px 46px;
  text-align: center;
  background:
    linear-gradient(155deg, rgba(236, 246, 238, 0.78), transparent 32%),
    linear-gradient(18deg, rgba(251, 246, 231, 0.96), rgba(255, 255, 255, 0.95) 48%, rgba(246, 249, 245, 0.98));
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.22);
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  margin: 0 -26px;
  padding: 0 26px;
  border-bottom: 1px solid #edf0ec;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
}

.phone.login-mode .app-bar {
  display: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  font-size: 31px;
  line-height: 1;
}

.app-bar strong {
  margin-right: auto;
  margin-left: 12px;
  font-size: 21px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

#loginScreen {
  padding-top: 62px;
}

.brand-mark {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  border-radius: 20px;
  background: var(--green);
  box-shadow: 0 12px 20px rgba(13, 107, 36, 0.24);
  transform: rotate(-3deg);
}

.bat {
  position: absolute;
  left: 30px;
  top: 24px;
  width: 13px;
  height: 35px;
  border: 5px solid #fff;
  border-bottom-width: 3px;
  transform: rotate(-45deg);
}

.bat::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -15px;
  width: 4px;
  height: 16px;
  background: #fff;
}

.ball {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 14px;
  height: 14px;
  border: 4px solid #fff;
  border-radius: 50%;
}

.crease {
  position: absolute;
  right: 21px;
  bottom: 26px;
  width: 19px;
  height: 4px;
  background: #fff;
  transform: rotate(38deg);
}

.phone h1 {
  margin: 0;
  color: var(--green);
  font-size: 22px;
  font-weight: 700;
}

.tagline {
  margin: 8px 0 44px;
  color: #747b75;
  font-size: 21px;
  font-weight: 500;
}

.login-card {
  overflow: hidden;
  text-align: left;
  border: 1px solid #e7ece5;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 42px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.card-body p {
  margin: 0;
  color: #4d5550;
  font-size: 22px;
  line-height: 1.45;
}

.otp-form {
  margin-top: 42px;
}

label {
  display: block;
  margin-bottom: 12px;
  color: #545c57;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.phone-row,
.custom-fields {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
}

.country,
input,
select,
textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.country {
  display: grid;
  place-items: center;
  min-height: 72px;
  font-size: 21px;
  font-weight: 700;
}

input,
select {
  min-height: 48px;
  padding: 0 18px;
}

.phone-row input {
  min-height: 72px;
  font-size: 21px;
}

input::placeholder,
textarea::placeholder {
  color: #b8c0bb;
}

.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  margin-top: 30px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(90deg, #0b6b22, var(--green-soft));
  box-shadow: 0 14px 22px rgba(19, 122, 43, 0.25);
  font-size: 21px;
  font-weight: 800;
}

.small-btn {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.small-btn:disabled,
.primary-btn:disabled,
.social-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.login-status {
  min-height: 22px;
  margin: 18px 0 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  text-align: center;
}

.login-status.success {
  color: var(--green) !important;
}

.login-status.error {
  color: #b42318 !important;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 48px 0 44px;
}

.divider span {
  height: 1px;
  background: var(--line);
}

.divider p {
  color: #858c86;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: #25282a;
  font-size: 21px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.google-dot {
  width: 25px;
  height: 25px;
  border-radius: 3px;
  background: conic-gradient(#d63b30, #f3bc31, #1e8e3e, #2a64d6, #d63b30);
}

.fb-dot {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #fff;
  background: #2671e8;
  font-weight: 900;
}

.help-btn {
  width: 100%;
  min-height: 74px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--green);
  background: #f9faf8;
  font-size: 21px;
}

.terms {
  margin: 96px 0 0;
  color: #748078;
  font-size: 20px;
  line-height: 1.55;
}

.otp-screen {
  min-height: 778px;
  margin: 0 -26px -46px;
  padding: 1px 20px 28px;
  background:
    linear-gradient(62deg, transparent 0 44%, rgba(218, 218, 218, 0.26) 45% 58%, transparent 59%),
    linear-gradient(143deg, transparent 0 42%, rgba(223, 223, 223, 0.3) 43% 57%, transparent 58%),
    #f6f7f5;
}

.otp-hero {
  height: 178px;
  margin: 0 -20px 0;
  background:
    linear-gradient(150deg, rgba(230, 230, 230, 0.72) 0 28%, transparent 29%),
    linear-gradient(65deg, transparent 0 52%, rgba(229, 229, 229, 0.62) 53%),
    #fafafa;
}

.verify-card {
  margin-top: -2px;
  padding: 42px 42px 44px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 46px rgba(21, 49, 28, 0.12);
}

.verify-card h2,
.profile-head h2 {
  margin: 0;
  color: var(--green);
  font-size: 39px;
  line-height: 1.1;
}

.verify-card p,
.profile-head p {
  margin: 12px 0 0;
  color: #4e5751;
  font-size: 18px;
  line-height: 1.35;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  margin: 44px 0 36px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(20, 40, 25, 0.06);
  font-size: 24px;
  font-weight: 900;
}

.phone-pill span:last-child {
  color: var(--green);
}

.otp-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.otp-digit {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border: 3px solid #c1cdbd;
  border-radius: 18px;
  text-align: center;
  color: var(--ink);
  background: #fff;
  font-size: 32px;
  font-weight: 900;
}

.otp-digit:focus {
  border-color: #2f72ff;
  outline: 3px solid rgba(47, 114, 255, 0.14);
}

.resend-row {
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 36px 0 34px;
  color: #6f7b73;
}

.resend-row strong {
  color: #657067;
}

.resend-row strong span {
  color: var(--green);
}

.resend-row button {
  border: 0;
  background: transparent;
  color: #7fb185;
  font-weight: 900;
}

.resend-row button:not(:disabled) {
  color: var(--green);
}

.verify-submit {
  margin-top: 0;
}

.secure-note {
  margin: 198px 0 0;
  color: #7b837d;
  font-size: 13px;
}

.profile-screen {
  min-height: 778px;
  margin: 0 -26px -46px;
  padding: 30px 14px 28px;
  text-align: left;
  background: #f7f7f6;
}

.profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-head h2 {
  font-size: 27px;
}

.profile-head p {
  margin-top: 4px;
  font-size: 14px;
}

.profile-head span {
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--green);
  background: #dcf6dd;
  font-size: 12px;
  font-weight: 900;
}

.progress-line {
  height: 5px;
  margin: 14px 0 28px;
  border-radius: 999px;
  background: var(--green);
}

.profile-form {
  display: grid;
}

.avatar-picker {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
}

.avatar-circle {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #737b73;
  background: #e7e7e5;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.16);
  font-size: 42px;
}

.avatar-picker button {
  position: absolute;
  right: -2px;
  bottom: 14px;
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 11px;
}

#fullName {
  min-height: 56px;
  border-color: #bbcdb8;
  border-radius: 9px;
}

.profile-form h3 {
  margin: 24px 0 18px;
  font-size: 19px;
}

.role-list {
  display: grid;
  gap: 14px;
}

.role-card {
  display: grid;
  grid-template-columns: 58px 1fr 24px;
  align-items: center;
  gap: 18px;
  width: min(250px, 100%);
  min-height: 92px;
  border: 0;
  border-radius: 8px;
  padding: 18px 22px;
  text-align: left;
  background: #fff;
  color: var(--ink);
}

.role-card:nth-child(3) {
  width: min(280px, 100%);
}

.role-card.selected strong,
.role-card.selected em {
  color: var(--green);
}

.role-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 9px;
  background: #eceeed;
}

.role-card.selected .role-icon {
  background: #9df49f;
}

.role-icon::before {
  font-size: 25px;
  font-weight: 900;
}

.bat-icon::before {
  content: "⌁";
}

.ball-icon::before {
  content: "◉";
}

.all-icon::before {
  content: "⌘";
}

.role-card strong {
  display: block;
  font-size: 20px;
}

.role-card small {
  display: block;
  margin-top: 3px;
  color: #69716b;
  font-size: 13px;
  font-weight: 700;
}

.role-card em {
  font-style: normal;
}

#profileBtn {
  margin-top: 34px;
}

.role-note {
  margin: 12px 0 0;
  color: #7b837d;
  text-align: center;
  font-size: 9px;
}

.home-screen {
  min-height: 778px;
  margin: 0 -26px -46px;
  padding: 18px 12px 86px;
  overflow: hidden;
  text-align: left;
  background: #f5f7f4;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.action-tile {
  display: grid;
  align-content: space-between;
  min-height: 112px;
  border: 0;
  border-radius: 8px;
  padding: 18px;
  text-align: left;
  color: #fff;
  box-shadow: 0 8px 18px rgba(21, 56, 28, 0.12);
}

.action-tile.create {
  background: #238739;
}

.action-tile.start {
  color: #2f2b15;
  background: #ffc20f;
}

.action-tile strong {
  margin-top: 20px;
  font-size: 16px;
}

.action-tile span {
  opacity: 0.82;
  font-size: 13px;
}

.home-section {
  margin-top: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-title h3 {
  margin: 0;
  font-size: 15px;
}

.section-title button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.match-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.live-match-card,
.tournament-card,
.invite-card {
  border: 1px solid #e4e9e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 48, 25, 0.05);
}

.live-match-card {
  padding: 12px;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  color: #7b837e;
  font-size: 10px;
}

.live-badge,
.tag {
  padding: 3px 7px;
  border-radius: 999px;
  color: #d51d32;
  background: #ffe8ec;
  font-size: 9px;
  font-weight: 900;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.team-lines {
  display: grid;
  gap: 8px;
}

.team-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.team-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: #34485a;
  font-size: 10px;
}

.score-box {
  text-align: right;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.score-box small {
  display: block;
  color: #68736b;
  font-size: 10px;
}

.match-note {
  margin: 0;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.tournament-list {
  display: grid;
  gap: 12px;
}

.tournament-card {
  overflow: hidden;
}

.tournament-top {
  padding: 12px;
}

.tournament-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tournament-title strong {
  font-size: 14px;
}

.location {
  margin: 7px 0 12px;
  color: #747d76;
  font-size: 10px;
}

.tournament-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tournament-stats span {
  color: #69726b;
  font-size: 10px;
  text-transform: uppercase;
}

.tournament-stats strong {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.tournament-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: #fff;
  background: var(--green);
}

.tournament-bottom small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
}

.tournament-bottom strong {
  font-size: 16px;
}

.tournament-bottom button,
.ticket-card button,
.customize-card button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 900;
}

.tournament-bottom button {
  color: var(--green);
  background: #fff;
}

.ticket-card,
.customize-card {
  margin-top: 16px;
  border-radius: 9px;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.9), rgba(12, 50, 34, 0.86)),
    #132018;
}

.ticket-card p,
.customize-card p {
  margin: 0;
  color: #b6c7ba;
  font-size: 11px;
  text-transform: uppercase;
}

.ticket-card h3,
.customize-card h3 {
  margin: 3px 0;
  font-size: 17px;
}

.ticket-card > strong {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
}

.ticket-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-card span {
  font-size: 20px;
  font-weight: 900;
}

.ticket-card button {
  color: #4a3600;
  background: #ffc20f;
}

.customize-card {
  min-height: 126px;
  background:
    linear-gradient(110deg, rgba(5, 25, 17, 0.92), rgba(13, 91, 40, 0.84)),
    #0f2b1a;
}

.customize-card button {
  margin-top: 14px;
  color: #fff;
  background: var(--green);
}

.invite-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  color: #fff;
  background: #288c3b;
}

.invite-card strong {
  display: block;
  font-size: 15px;
}

.invite-card p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.invite-card button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #137729;
  font-size: 25px;
}

.bottom-nav {
  position: sticky;
  bottom: -46px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 16px -12px -86px;
  padding: 10px 8px;
  border-top: 1px solid #e2e7df;
  background: #fff;
}

.bottom-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #7a837c;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.bottom-nav button.active {
  color: var(--green);
  background: #e6f7e8;
}

.my-matches-screen {
  min-height: 778px;
  margin: 0 -26px -46px;
  padding: 22px 14px 86px;
  overflow: hidden;
  text-align: left;
  background: #f5f7f4;
}

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

.matches-head h2 {
  margin: 0;
  color: var(--green);
  font-size: 28px;
}

.matches-head p {
  margin: 4px 0 0;
  color: #68736b;
  font-size: 13px;
}

.matches-head button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--green);
  background: #e5f7e7;
  font-weight: 900;
}

.matches-section {
  margin-top: 18px;
}

.matches-section .section-title span {
  min-width: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green);
  background: #e5f7e7;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.matches-list {
  display: grid;
  gap: 12px;
}

.match-list-card {
  border: 1px solid #e3e9e1;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(24, 46, 28, 0.06);
}

.match-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.match-status-pill {
  padding: 5px 9px;
  border-radius: 999px;
  color: #8a6800;
  background: #fff2bf;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-status-pill.ready {
  color: var(--green);
  background: #e5f7e7;
}

.match-list-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.match-list-team {
  display: grid;
  gap: 5px;
}

.match-list-team strong {
  font-size: 14px;
}

.match-list-team small,
.match-list-meta {
  color: #6c756e;
  font-size: 11px;
}

.match-list-vs {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #4d4200;
  background: #ffc20f;
  font-size: 12px;
  font-weight: 900;
}

.match-list-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.match-list-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.matches-empty {
  display: grid;
  place-items: center;
  min-height: 130px;
  border: 1px dashed #cdd9cc;
  border-radius: 10px;
  color: #6f7871;
  background: #fff;
  text-align: center;
  font-size: 13px;
}

.create-team-screen {
  min-height: 778px;
  margin: 0 -26px -46px;
  padding: 18px 14px 22px;
  text-align: left;
  background: #f6f6f5;
}

.create-team-form {
  display: grid;
  gap: 18px;
}

.team-name-card,
.add-player-card,
.guidelines-card {
  border: 1px solid #e5e9e2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(18, 48, 25, 0.04);
}

.team-name-card {
  padding: 24px 22px 22px;
}

.logo-picker {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border: 2px dashed #bfcbbf;
  border-radius: 50%;
  color: #788176;
  background: #eef0ec;
}

.logo-picker span {
  font-size: 28px;
  line-height: 1;
}

.logo-picker small {
  font-size: 10px;
  font-weight: 900;
}

.team-name-row {
  position: relative;
}

.team-name-row input,
.player-search input {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: #f5f5f4;
  box-shadow: none;
  font-weight: 700;
}

.team-name-row input {
  padding-right: 96px;
}

#teamNameState {
  position: absolute;
  right: 13px;
  top: 50%;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  transform: translateY(-50%);
}

#teamNameState.unavailable {
  color: #b42318;
}

.playing-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #e4ebe3;
  border-radius: 9px;
  background: #f7fbf7;
}

.playing-toggle strong {
  display: block;
  color: #263129;
  font-size: 14px;
}

.playing-toggle small {
  display: block;
  margin-top: 3px;
  color: #6e776f;
  font-size: 10px;
  font-weight: 800;
}

.playing-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.playing-toggle em {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #ccd5ce;
  transition: background 0.2s ease;
}

.playing-toggle em::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(24, 39, 28, 0.2);
  transition: transform 0.2s ease;
}

.playing-toggle input:checked + em {
  background: var(--green);
}

.playing-toggle input:checked + em::after {
  transform: translateX(20px);
}

.add-player-card {
  padding: 18px 18px 16px;
}

#playersCount {
  color: var(--green);
  font-size: 13px;
}

.player-search {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.player-search button {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.player-results {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.player-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px;
  border: 1px solid #ecefed;
  border-radius: 8px;
  background: #fafafa;
}

.player-card.loading {
  color: #9aa19b;
}

.player-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--green);
  background: #a7f6a5;
  font-weight: 900;
}

.player-avatar.muted {
  color: #788079;
  background: #ecefed;
}

.player-avatar.yellow {
  color: #7d6100;
  background: #ffe19a;
}

.player-card strong {
  display: block;
  font-size: 15px;
}

.player-card small {
  display: block;
  margin-top: 2px;
  color: #6f7871;
  font-size: 10px;
  font-weight: 800;
}

.role-pill {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--green);
  background: #a8f1a6;
  font-size: 9px;
  font-weight: 900;
}

.role-pill.bowler {
  color: #7b5c00;
  background: #ffc20f;
}

.player-action {
  min-width: 54px;
  min-height: 34px;
  border: 1px solid var(--green);
  border-radius: 7px;
  color: var(--green);
  background: #fff;
  font-weight: 900;
}

.player-action.remove {
  min-width: 34px;
  border: 0;
  color: #d92d20;
  font-size: 24px;
}

.new-player-card {
  display: grid;
  gap: 14px;
  padding: 16px 10px 18px;
  border-top: 1px solid #ecefed;
  border-bottom: 1px solid #ecefed;
  background: #fff;
}

.new-player-head {
  display: grid;
  grid-template-columns: 44px 1fr 32px;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ecefed;
}

.new-player-head small,
.new-player-card label {
  display: block;
  color: #4d574f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.new-player-head strong {
  margin-top: 2px;
  font-size: 17px;
}

.new-player-close {
  width: 30px;
  height: 30px;
  border: 0;
  color: #b7beb8;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}

.new-player-name {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: #f0f1f0;
  color: #29302b;
  font-size: 16px;
  font-weight: 800;
}

.new-role-segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border: 1px solid #dfe4e0;
  border-radius: 10px;
  background: #f1f2f1;
}

.new-role-segment button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #3b433d;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.new-role-segment button.selected {
  color: var(--green);
  background: #fff;
  box-shadow: 0 4px 12px rgba(24, 39, 28, 0.12);
}

.new-player-submit {
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(12, 110, 34, 0.2);
  font-size: 17px;
  font-weight: 900;
}

.new-player-submit:disabled {
  opacity: 0.7;
}

.creator-pill {
  min-width: 44px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: #e5f7e7;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.guidelines-card {
  padding: 20px 22px;
  color: #56725c;
  background: #e8f2e8;
}

.guidelines-card strong {
  color: #4c9760;
}

.guidelines-card ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: #53605a;
  font-size: 13px;
  line-height: 1.45;
}

.create-team-submit {
  margin-top: 26px;
}

.quick-match-screen {
  min-height: 778px;
  margin: 0 -26px -46px;
  padding: 28px 20px 92px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(239, 250, 243, 0.88), rgba(255, 255, 255, 0.95) 44%),
    #fff;
}

.quick-match-head h2 {
  margin: 0;
  color: var(--green);
  font-size: 32px;
}

.step-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  width: min(320px, 100%);
  margin: 18px auto 13px;
}

.step-lines span {
  height: 5px;
  border-radius: 999px;
  background: #e1e3df;
}

.step-lines span.active {
  background: var(--green);
}

.quick-match-head p {
  margin: 0 0 28px;
  color: #4d965c;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.team-select-card {
  position: relative;
  min-height: 292px;
  padding: 30px 22px 24px;
  border: 2px dashed #c5d7c5;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
}

.team-select-card p {
  margin: 0;
  color: #656e67;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.select-icon {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  margin: 24px auto;
  border-radius: 50%;
  color: #778279;
  background: #e9e9e8;
  font-size: 48px;
}

.select-icon.crossed {
  font-size: 40px;
}

.select-team-btn {
  min-width: 262px;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(18, 112, 36, 0.22);
  font-size: 17px;
  font-weight: 900;
}

.select-team-btn.muted {
  color: #4f5751;
  background: #e7e7e6;
  box-shadow: none;
}

.team-select-card > strong {
  display: block;
  margin-top: 18px;
  color: #6b736d;
  font-size: 16px;
}

.versus-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -6px auto;
  border: 4px solid #f3f3f1;
  border-radius: 50%;
  color: #4d4200;
  background: #ffc20f;
  font-size: 19px;
  font-weight: 900;
  position: relative;
  z-index: 2;
}

.team-option-list {
  display: none;
}

.sheet-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  margin: 0 -26px -46px;
  background: rgba(21, 24, 22, 0.48);
  backdrop-filter: blur(4px);
}

.team-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  max-height: 54%;
  margin: 0 -26px -46px;
  padding: 14px 18px 24px;
  overflow: auto;
  border-radius: 22px 22px 0 0;
  text-align: left;
  background: #fff;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.16);
}

.sheet-handle {
  width: 28px;
  height: 3px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #d8dfd7;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sheet-head h3 {
  margin: 0;
  font-size: 18px;
}

.sheet-head p {
  margin: 4px 0 0;
  color: #5f6861;
  font-size: 12px;
}

.sheet-head button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--green);
  background: #eaf6ec;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-search {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  min-height: 46px;
  margin: 18px 0 16px;
  padding: 0 14px;
  border-radius: 999px;
  color: #9ca49e;
  background: #f2f3f2;
}

.sheet-search input {
  min-height: 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.sheet-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #8a928c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sheet-count-row strong {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green);
  background: #e5f7e7;
  letter-spacing: 0;
}

.team-option {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  border: 1px solid #e3e9e1;
  border-radius: 10px;
  padding: 9px 11px;
  text-align: left;
  background: #fff;
}

.team-option.selected {
  border-color: var(--green);
  background: #effaf0;
}

.team-logo-mini {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.team-option strong {
  display: block;
  font-size: 14px;
}

.team-option small {
  color: #6c756e;
  font-size: 11px;
}

.team-option em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.sheet-team-list {
  display: grid;
  gap: 10px;
}

.sheet-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 64px 28px 46px;
  text-align: center;
}

.sheet-empty-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: #a1aaa3;
  background: #ededec;
  font-size: 32px;
}

.sheet-empty h4 {
  margin: 0;
  font-size: 18px;
}

.sheet-empty p {
  margin: 0;
  color: #6d756f;
  font-size: 14px;
  line-height: 1.4;
}

.sheet-empty button {
  min-height: 38px;
  border: 1px solid #adb8ae;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--green);
  background: #fff;
  font-weight: 900;
}

.continue-squad-btn {
  width: 76%;
  margin: 58px 0 0;
}

.continue-squad-btn:disabled {
  color: #858895;
  background: #dedfe5;
  box-shadow: none;
}

.squad-screen {
  min-height: 778px;
  margin: 0 -26px -46px;
  padding: 18px 14px 30px;
  text-align: left;
  background: #f7f7f6;
}

.squad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.squad-head strong {
  color: var(--green);
  font-size: 14px;
}

.squad-head h2 {
  margin: 7px 0 0;
  color: var(--green);
  font-size: 19px;
}

.mini-step-lines {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  gap: 8px;
}

.mini-step-lines span {
  height: 5px;
  border-radius: 999px;
  background: #cbd8c9;
}

.mini-step-lines span.active {
  background: var(--green);
}

.role-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 22px 0 16px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(24, 46, 28, 0.06);
}

.role-summary div {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  column-gap: 10px;
}

.role-summary .role-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
}

.role-summary strong {
  color: #7a837c;
  font-size: 13px;
  text-transform: uppercase;
}

.role-summary em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.keeper-icon::before {
  content: "▣";
}

.squad-search {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  min-height: 52px;
  margin-bottom: 14px;
  padding: 0 15px;
  border: 1px solid #cfd9cf;
  border-radius: 9px;
  background: #fff;
}

.squad-search span {
  color: #7c857e;
}

.squad-search input {
  min-height: 48px;
  border: 0;
  box-shadow: none;
}

.squad-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.squad-filters button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid #d8dfd7;
  border-radius: 999px;
  padding: 0 15px;
  color: #59635c;
  background: #fff;
  font-weight: 800;
}

.squad-filters button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.probable-label {
  margin: 22px 0 10px;
  color: #89918b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.squad-player-list {
  display: grid;
  gap: 9px;
}

.squad-player-card {
  display: grid;
  grid-template-columns: 46px 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 46, 28, 0.06);
}

.squad-player-card .player-avatar {
  background: #edf1ee;
  color: #b5bdb7;
}

.squad-player-card.selected .player-avatar {
  color: var(--green);
  background: #e4f8e6;
}

.squad-player-card strong {
  display: block;
  font-size: 14px;
}

.captain-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d7dfd5;
  border-radius: 50%;
  color: #6a746c;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.captain-btn.active {
  color: #5b4300;
  border-color: #ffc20f;
  background: #ffc20f;
}

.player-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #dfe2e6;
}

.player-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.16s ease;
}

.player-toggle.on {
  background: var(--green);
}

.player-toggle.on::after {
  transform: translateX(16px);
}

.squad-guidance {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  margin: 24px 0 26px;
  padding: 17px;
  border: 1px solid #f2d896;
  border-radius: 8px;
  color: #8b6a18;
  background: #fff6dc;
}

.squad-guidance p {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
}

.confirm-squad-btn {
  margin-top: 0;
}

.confirm-squad-btn:disabled {
  color: #a2a4ad;
  background: #dedfe4;
  box-shadow: none;
}

.squad-enable-text {
  margin: 10px 0 0;
  color: #7f8781;
  text-align: center;
  font-size: 13px;
}

.match-config-screen {
  min-height: 778px;
  margin: 0 -26px -46px;
  padding: 18px 14px 92px;
  text-align: left;
  background: #f6f6f5;
}

.config-head {
  display: flex;
  justify-content: space-between;
  color: var(--green);
}

.config-head strong,
.config-head span {
  font-size: 14px;
}

.config-head span {
  color: #8a928c;
}

.config-progress {
  height: 5px;
  margin: 12px 0 22px;
  border-radius: 999px;
  background: var(--green);
}

.match-config-form {
  display: grid;
  gap: 18px;
}

.config-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 18px;
}

.config-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--green);
  background: #ddf2df;
  font-size: 16px;
}

.config-icon.yellow {
  color: #8a6800;
  background: #ffe9a7;
}

.config-icon.red-bg {
  color: #d92d20;
  background: #ffe1dc;
}

.config-card {
  padding: 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(24, 46, 28, 0.08);
}

.config-card label {
  margin-top: 0;
  color: #8a928c;
  letter-spacing: 0;
  text-transform: none;
}

.config-card label:not(:first-child) {
  margin-top: 18px;
}

.unit-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 8px;
  background: #f2f2f1;
}

.unit-input input,
.config-card > input {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: #f2f2f1;
  box-shadow: none;
  font-weight: 800;
}

.unit-input span {
  color: #9a9f99;
  font-weight: 900;
  text-transform: uppercase;
}

.powerplay-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 24px;
  color: #8a928c;
  font-size: 14px;
}

.powerplay-row strong {
  color: var(--green);
  text-transform: uppercase;
}

.powerplay-row em {
  font-size: 22px;
  font-style: normal;
}

#powerPlayOvers {
  width: 100%;
  accent-color: var(--green);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: #8a928c;
  font-size: 10px;
}

.option-grid {
  display: grid;
  gap: 12px;
}

.option-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.option-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.option-card {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px solid #e1e5df;
  border-radius: 10px;
  color: #7d857f;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.option-card.selected {
  border: 2px solid var(--green);
  color: var(--green);
  background: #f0fbf2;
}

.ring {
  width: 32px;
  height: 32px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.ring.red {
  color: #ef4444;
}

.ring.amber {
  color: #f6bd2d;
}

.dots {
  font-size: 26px;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #d92d20;
  font-size: 10px;
  font-weight: 900;
}

.config-card input.invalid {
  border: 2px solid #ef4444;
  background: #fff;
}

.config-actions {
  position: sticky;
  bottom: -46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px -14px -92px;
  padding: 18px 14px;
  background: #fff;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.05);
}

.config-actions button {
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
}

#saveDraftBtn {
  color: #7f838c;
  background: #e6e7eb;
}

#startMatchBtn {
  color: #fff;
  background: var(--green);
}

.toss-screen {
  min-height: 778px;
  margin: 0 -26px -46px;
  padding: 26px 20px 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 246, 241, 0.98)),
    #fff;
}

.toss-hero {
  min-height: 214px;
  border-radius: 22px;
  padding: 18px 18px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(140deg, #2d963a, #0e5c25);
  box-shadow: 0 12px 30px rgba(20, 82, 33, 0.22);
}

.coin {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: -6px auto 34px;
  border: 6px solid #e0a900;
  border-radius: 50%;
  color: #8d5a00;
  background: #ffd12d;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  font-size: 38px;
  font-weight: 900;
}

.toss-hero p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.toss-hero h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.toss-hero em {
  color: #ffc20f;
  font-style: normal;
}

.toss-section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 34px 0 16px;
  color: var(--green);
}

.toss-section-title span {
  height: 1px;
  background: #dfe6de;
}

.toss-section-title strong {
  font-size: 20px;
}

.toss-team-grid,
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.toss-team-card,
.decision-card {
  position: relative;
  min-height: 162px;
  border: 1px solid #edf0ec;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 22px rgba(25, 47, 29, 0.08);
}

.toss-team-card.selected,
.decision-card.selected {
  border: 2px solid var(--green);
  color: var(--green);
  box-shadow: 0 10px 24px rgba(20, 111, 40, 0.16);
}

.toss-team-card.selected::after {
  content: "✓";
  position: absolute;
  top: -12px;
  right: -12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.toss-shield,
.decision-card span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 14px;
  color: #9aa8ba;
  background: #f6f7f7;
  font-size: 30px;
}

.toss-shield.green,
.decision-card.selected span {
  color: var(--green);
  background: #eaf6ec;
}

.toss-team-card strong,
.decision-card strong {
  display: block;
  font-size: 22px;
}

.toss-team-card small,
.decision-card small {
  display: block;
  margin-top: 6px;
  color: #7b837d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-card {
  min-height: 132px;
}

.decision-card span {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  font-size: 24px;
}

.toss-summary {
  margin: 34px 0 30px;
  padding: 17px;
  border-radius: 12px;
  color: #4f493d;
  background: #fff;
  box-shadow: 0 6px 20px rgba(104, 72, 18, 0.08);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.start-live-btn {
  margin-top: 0;
}

.innings-setup-screen {
  min-height: 778px;
  margin: 0 -26px -46px;
  padding: 0 14px 30px;
  text-align: center;
  background: #f6f8f5;
}

.innings-hero {
  position: relative;
  margin: 0 -14px;
  padding: 28px 28px 84px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(140deg, #16812b, #075d20);
}

.innings-pill {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #4a3900;
  background: #ffc20f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.innings-teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(260px, 100%);
  margin: 34px auto 18px;
}

.innings-teams-row strong {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  border-radius: 12px;
  color: var(--green);
  background: #fff;
  font-size: 21px;
}

.innings-teams-row small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  text-transform: uppercase;
}

.innings-teams-row em {
  color: rgba(255, 255, 255, 0.35);
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
}

.innings-hero p {
  margin: 0;
  font-size: 16px;
}

.innings-slot {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 174px;
  margin-top: -24px;
  margin-bottom: 38px;
  padding: 34px 22px 20px;
  border-bottom: 3px solid #b5ddbd;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 48, 25, 0.08);
}

.innings-slot + .innings-slot {
  margin-top: 0;
}

.slot-label {
  position: absolute;
  top: -13px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--green);
  background: #e3f3e5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.slot-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--green);
  background: #eaf6ec;
  font-size: 30px;
}

.slot-icon.muted {
  color: #b6beb8;
  background: #eeeeed;
}

.innings-slot strong {
  font-size: 17px;
}

.innings-slot small {
  margin-top: 7px;
  color: #8b938d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.innings-slot button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 18px;
  border: 1px solid #d5ded4;
  border-radius: 50%;
  color: var(--green);
  background: #fff;
  font-size: 21px;
}

.start-innings-btn {
  margin-top: 0;
}

.start-innings-btn:disabled {
  color: #a2a4ad;
  background: #dedfe4;
  box-shadow: none;
}

.innings-help-text {
  margin: 14px 0 0;
  color: #7f8781;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.player-sheet .team-option {
  grid-template-columns: 44px 1fr auto;
}

.live-score-screen {
  min-height: 778px;
  margin: 0 -26px -46px;
  padding: 0 14px 86px;
  background: #f8faf7;
}

.live-score-hero {
  margin: 0 -14px;
  padding: 34px 20px 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(140deg, #064317, #0a7627);
}

.live-score-hero span {
  color: #c4ef83;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-score-hero p {
  margin: 4px 0 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
}

.live-score-hero h2 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.live-score-hero em {
  font-size: 48px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.live-score-hero small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 18px;
  font-weight: 900;
}

.live-score-hero strong {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px;
  text-transform: uppercase;
}

.live-toss-note {
  margin: 18px auto 0;
  padding: 7px 12px;
  max-width: 320px;
  border-radius: 999px;
  color: #d7eecb;
  background: rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 800;
}

.live-target-note {
  margin: 8px auto 0;
  max-width: 300px;
  padding: 8px 12px;
  border-radius: 9px;
  color: #0c6d22;
  background: #f6fff0;
  box-shadow: 0 8px 18px rgba(5, 51, 18, 0.18);
  font-size: 11px;
  font-weight: 900;
}

.live-target-note[hidden] {
  display: none;
}

.score-table-card,
.recent-balls-card {
  margin-top: -12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 39, 28, 0.08);
  overflow: hidden;
}

.score-table-card + .score-table-card,
.recent-balls-card {
  margin-top: 10px;
}

.score-table-head,
.score-row {
  display: grid;
  grid-template-columns: 1fr repeat(5, 34px);
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
}

.score-table-head h3,
.recent-balls-head h3 {
  margin: 0;
  color: #8d968f;
  font-size: 15px;
  text-transform: uppercase;
}

.score-table-head span {
  color: #9ba39c;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.score-row {
  border-top: 1px solid #eef1ee;
}

.score-player {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.score-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.score-player strong {
  display: block;
  overflow: hidden;
  color: #2e3430;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.score-player small {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.score-row span:not(.score-avatar) {
  color: #4c554e;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.recent-balls-card {
  padding: 12px;
}

.recent-balls-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.recent-balls-head span {
  color: #8a948c;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.recent-balls-list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.over-complete-card {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #f0d98b;
  border-radius: 9px;
  background: #fff8e8;
}

.over-complete-card[hidden] {
  display: none;
}

.over-complete-card > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #9a6b00;
  background: #ffe9a9;
  font-weight: 900;
}

.over-complete-card strong {
  display: block;
  color: #7c5b11;
  font-size: 11px;
}

.over-complete-card small {
  color: #9a8a68;
  font-size: 9px;
  font-weight: 800;
}

.over-complete-card button {
  min-width: 62px;
  min-height: 31px;
  border: 0;
  border-radius: 7px;
  color: #6c746e;
  background: #edf0ee;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.over-complete-card button:last-child {
  color: #fff;
  background: var(--green);
}

.wicket-card {
  border-color: #f0b5b5;
  background: #fff1f1;
}

.wicket-card > span {
  color: #fff;
  background: #c82727;
}

.wicket-card button {
  color: #fff;
  background: #c82727;
}

.innings-complete-card {
  border-color: #a8d9b0;
  background: #effaf0;
}

.innings-complete-card > span,
.innings-complete-card button {
  color: #fff;
  background: var(--green);
}

.result-card {
  grid-template-columns: 28px 1fr;
  border-color: #94d7a0;
  background: #edf9ef;
}

.result-card > span {
  color: #fff;
  background: var(--green);
}

.result-card strong {
  color: var(--green);
}

.ball-chip {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1c211e;
  background: #fff;
  box-shadow: 0 5px 12px rgba(24, 39, 28, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.ball-chip.four,
.ball-chip.six {
  color: #fff;
  background: #178232;
}

.ball-chip.wicket {
  color: #fff;
  background: #c91e1e;
}

.ball-chip.extra {
  background: #a7f0a8;
}

.action-hub {
  margin-top: 14px;
  padding: 16px;
  border-radius: 10px;
  color: #fff;
  background: #17181b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.action-hub[hidden] {
  display: none;
}

.action-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.action-hub-head div {
  display: flex;
  gap: 6px;
}

.action-hub-head strong {
  color: #eef4ef;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.action-hub-head button {
  border: 1px solid #303238;
  border-radius: 7px;
  color: #bfc5c1;
  background: #24262b;
  font-size: 10px;
  font-weight: 900;
}

.run-grid,
.extra-grid,
.mini-run-grid {
  display: grid;
  gap: 8px;
}

.run-grid {
  grid-template-columns: repeat(4, 1fr);
}

.extra-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
}

.mini-run-grid {
  grid-template-columns: repeat(7, 1fr);
}

.run-grid button,
.extra-grid button,
.mini-run-grid button {
  min-height: 38px;
  border: 1px solid #31333a;
  border-radius: 7px;
  color: #fff;
  background: #2b2d33;
  font-weight: 900;
}

.run-grid button.green,
.extra-grid button.active {
  background: #1c8c36;
}

.run-grid button.red {
  background: #c82727;
  font-size: 11px;
  text-transform: uppercase;
}

.run-grid small {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  text-transform: uppercase;
}

.action-hub p {
  margin: 14px 0 8px;
  color: #9da39f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

a {
  color: var(--green);
  text-decoration: none;
}

.workbench {
  align-self: start;
  min-height: calc(100vh - 80px);
  padding: 28px;
  border: 1px solid #343434;
  border-radius: 8px;
  background: #f4f6f2;
}

.workbench-header,
.custom-head,
.response-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.workbench h2,
.workbench h3 {
  margin: 0;
}

.docs-link,
.response-head button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}

.status-grid div,
.api-card,
.custom-card,
.response-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-grid div {
  padding: 14px;
}

.status-grid span,
.api-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

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

.api-card {
  padding: 16px;
}

.api-card p {
  min-height: 44px;
  margin: 8px 0 16px;
  color: #58615b;
  line-height: 1.35;
}

.api-card button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.custom-card,
.response-panel {
  margin-top: 14px;
  padding: 16px;
}

textarea {
  width: 100%;
  min-height: 128px;
  margin-top: 12px;
  padding: 14px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

pre {
  overflow: auto;
  min-height: 220px;
  max-height: 420px;
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 8px;
  color: #d9f7df;
  background: #152018;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .phone {
    width: 100%;
    min-height: 100vh;
  }

  .workbench {
    min-height: auto;
    border-radius: 0;
  }
}

@media (max-width: 560px) {
  .phone {
    padding: 0 24px 42px;
  }

  .card-body {
    padding: 34px 28px;
  }

  .phone-row,
  .status-grid,
  .api-grid,
  .social-row {
    grid-template-columns: 1fr;
  }

  .phone-row {
    grid-template-columns: 86px 1fr;
  }

  .otp-boxes {
    gap: 14px;
  }

  .verify-card {
    padding: 36px 26px 38px;
  }

  .verify-card h2 {
    font-size: 34px;
  }

  .card-body p,
  .tagline,
  .primary-btn,
  .social-btn,
  .help-btn {
    font-size: 18px;
  }

  .terms {
    margin-top: 70px;
    font-size: 17px;
  }
}
