/* Home: creation is the main action; invitation lookup stays directly below it. */
.practical-app .lobby-intro { margin: 0 0 18px; }
.lobby-intro h1 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 36px); line-height: 1.12; letter-spacing: -.9px; text-wrap: balance; }
.lobby-intro p { max-width: 60ch; margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lobby-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.lobby-layout > * { min-width: 0; }
.lobby-create { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr); align-items: center; gap: clamp(22px, 4vw, 48px); min-height: 286px; padding: clamp(24px, 2.7vw, 34px); border: 1px solid #405648; border-inline-start: 3px solid #4b8058; border-radius: 12px; background: #1b201d; overflow: hidden; }
.lobby-create::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/brand/lobby-footballer-v1.png") center / auto 100% no-repeat; opacity: .82; pointer-events: none; }
.lobby-create::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #171e19f2 0%, #171e19df 27%, #171e1966 48%, #171e1933 58%, #171e19c4 82%, #171e19db 100%), linear-gradient(0deg, #172019ba, transparent 40%); pointer-events: none; }
.lobby-create-copy { max-width: 580px; min-width: 0; }
.lobby-sports-label { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; color: #c4d2c8; font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: .3px; }
.lobby-sports-label::before { content: ""; width: 27px; height: 2px; background: var(--lime); flex: none; }
.lobby-create h2 { margin: 0 0 10px; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.55px; text-wrap: balance; }
.lobby-create-copy > p { max-width: 48ch; margin: 0; color: #c3d3c9; font-size: 15px; line-height: 1.6; }
.lobby-create .btn { min-height: 50px; margin-top: 18px; gap: 12px; }
.lobby-create .btn svg { width: 18px; height: 18px; }
.choice-footnote { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.lobby-create-steps { padding: 0; margin: 0; list-style: none; border-top: 1px solid #526653; background: linear-gradient(90deg, #17201940, #17201965); }
.lobby-create-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #526653; color: #e0e9e3; font-size: 14px; line-height: 1.45; }
.lobby-create-steps li > span:first-child { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #57745e; border-radius: 50%; color: #c8f4d3; font-size: 12px; font-variant-numeric: tabular-nums; }
.lobby-invite { display: grid; grid-template-columns: minmax(210px, .75fr) minmax(0, 1.25fr); align-items: center; gap: 24px; padding: 19px 22px; border: 1px solid #39433d; border-radius: 12px; background: #1b201d; }
.lobby-invite-copy h2 { margin: 0 0 5px; font-size: 18px; line-height: 1.3; }
.lobby-invite-copy p { max-width: 34ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.lobby-invite .join-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; margin: 0; padding: 0; }
.lobby-invite .join-form .form-label { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.lobby-invite .join-form .form-input { width: 100%; min-width: 0; min-height: 48px; }
.lobby-invite .join-form .btn { min-height: 48px; padding-inline: 18px; }
.lobby-invite .join-form .error-message { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.5; }
.credit-positive { color: var(--lime); }
.lobby-balance { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; padding: 15px 19px; border: 1px solid #45584b; border-radius: 9px; background: #1b211d; margin-bottom: 12px; }
.lobby-balance > div { min-width: 120px; }
.lobby-balance small { display: block; font-size: 11px; font-weight: 450; letter-spacing: .2px; color: var(--muted); }
.lobby-balance strong { display: block; margin-top: 2px; font-size: 21px; line-height: 1.35; letter-spacing: -.35px; font-variant-numeric: tabular-nums; }
.lobby-balance strong small { display: inline; margin-left: 2px; font-size: 12px; }
.lobby-balance > .btn, .lobby-balance > button, .lobby-balance > a { margin-left: auto; font-size: 12px; }
.lobby-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; min-height: 44px; margin-bottom: 21px; font-size: 12px; color: var(--muted); }
.lobby-meta code { color: #d2e9d9; letter-spacing: .45px; font-size: 12px; }
.lobby-meta > .btn, .lobby-meta > button, .lobby-meta > a { font-size: 12px; }
.lobby-meta .text-button { padding: 5px 0; }
.lobby-queue { margin-top: 18px; }
.lobby-queue .duel-entry { padding: 15px 17px; }
.lobby-queue .duel-metrics { margin-top: 10px; }
.lobby-queue .duel-actions { margin-top: 12px; padding-top: 11px; }
.lobby-queue .duel-players h3 { font-size: 16px; }

/* A worked example explains credits without showing it as a live match. */
.lobby-credit-example { margin: 0 0 20px; padding: 22px 24px 17px; border: 1px solid #45584b; border-radius: 12px; background: #1b201d; }
.lobby-credit-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.lobby-credit-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.4px; text-wrap: balance; }
.lobby-example-tag { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid #52635a; border-radius: 6px; color: #b9c7bf; font-size: 11px; line-height: 1.4; font-weight: 600; letter-spacing: .4px; }
.lobby-example-intro { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.lobby-credit-flow { display: grid; grid-template-columns: minmax(168px, .95fr) minmax(135px, 1fr) 24px minmax(122px, .85fr) 24px minmax(148px, 1.05fr); gap: 16px; align-items: center; margin: 19px 0 0; }
.lobby-credit-flow > * { min-width: 0; }
.lobby-rivals { display: flex; align-items: center; justify-content: space-around; gap: 10px; padding-right: 20px; border-right: 1px solid #45584b; }
.lobby-jersey { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; color: #07c75b; }
.lobby-jersey-rival { color: #49514c; }
.lobby-jersey > svg { display: block; width: 61px; height: 65px; overflow: visible; }
.lobby-jersey > span { color: #e4ece7; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.lobby-versus { color: #bfccc3; font-size: 12px; font-weight: 700; line-height: 1.4; }
.lobby-credit-step { display: flex; align-items: center; gap: 12px; }
.lobby-credit-icon { display: block; width: 43px; height: 45px; flex: none; color: #f5c649; }
.lobby-credit-step strong { color: var(--text); font-size: 17px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.lobby-credit-step span { display: block; color: #d0dcd4; font-size: 14px; line-height: 1.45; }
.lobby-credit-arrow { display: flex; align-items: center; justify-content: center; color: var(--lime); }
.lobby-credit-arrow svg { width: 22px; height: 22px; }
.lobby-credit-note { margin: 13px 0 0; color: #c3d0c8; font-size: 12px; line-height: 1.55; text-align: right; }
.lobby-credit-availability { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #384d3e; color: #becdc3; font-size: 12px; line-height: 1.55; }
.lobby-credit-availability > svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }

.wallet-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 22px; }
.wallet-overview > * { min-width: 0; padding: 18px 20px; border: 1px solid #485d4e; border-radius: 9px; background: #1c251f; }
.wallet-overview small { display: block; color: var(--muted); font-size: 11px; }
.wallet-overview strong, .wallet-value { display: block; font-size: 28px; font-weight: 750; letter-spacing: -.65px; font-variant-numeric: tabular-nums; line-height: 1.3; margin-top: 6px; }
.wallet-overview strong small { display: inline; font-size: 12px; font-weight: 400; margin-left: 2px; }
.wallet-overview p { color: var(--muted); font-size: 11px; margin-top: 7px; }
.wallet-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.wallet-method { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; width: 100%; min-height: 98px; padding: 14px; border: 1px solid #5d7565; border-radius: 8px; text-align: left; background: #1c2820; color: var(--text); }
.wallet-method > svg, .wallet-method > .icon { width: 23px; height: 23px; color: #a1d8b2; }
.wallet-method strong { font-size: 14px; }
.wallet-method small { display: block; color: #b9cdc0; font-size: 11px; line-height: 1.4; }
.wallet-method:hover:not(:disabled) { border-color: var(--lime); background: #203c2a; }
.wallet-method.selected, .wallet-method[aria-pressed="true"] { background: #173a23; border-color: var(--lime); }
.wallet-method.selected svg, .wallet-method[aria-pressed="true"] svg { color: var(--lime); }
.wallet-steps { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 0; margin: 14px 0 20px; list-style: none; color: var(--muted); font-size: 12px; }
.wallet-steps > li { display: flex; align-items: center; gap: 7px; }
.wallet-steps b, .wallet-steps .step-number { display: grid; place-items: center; min-width: 24px; height: 24px; border: 1px solid #597763; border-radius: 50%; color: #d5ecdc; font-size: 11px; }
.wallet-steps .active, .wallet-steps .done { color: #c3ffd8; }
.wallet-steps .active b, .wallet-steps .done b { background: #07f468; border-color: #07f468; color: #092914; }
.wallet-form { max-width: 660px; }
.wallet-form .form-grid { margin-bottom: 14px; }
.wallet-form .form-help { line-height: 1.5; }
.wallet-form > .btn.wide, .wallet-form form > .btn.wide { margin-top: 16px; }
.wallet-form .form-label:first-child { margin-top: 0; }
.wallet-form .form-input { width: 100%; }
.wallet-form .check-line { color: #cad9cf; line-height: 1.5; }
.wallet-form .check-line input { min-height: 0; }
.wallet-extract { margin-top: 24px; }
.wallet-extract > .card-top, .wallet-extract > h2 { margin-bottom: 14px; }
.wallet-extract table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.wallet-extract th { font-size: 11px; color: #bacdc1; font-weight: 650; }
.wallet-extract th, .wallet-extract td { padding: 13px 12px; border-bottom: 1px solid #354c3e; }
.wallet-extract small { display: block; font-size: 11px; }
.wallet-proof { margin: 14px 0; padding: 12px; border: 1px solid #57745f; border-radius: 8px; background: #131c16; }
.wallet-proof img, img.wallet-proof { display: block; width: auto; max-width: 100%; max-height: 320px; margin-inline: auto; object-fit: contain; border-radius: 6px; }
.wallet-proof p, .wallet-proof figcaption { text-align: center; margin-top: 8px; font-size: 11px; line-height: 1.5; color: #b4cfbe; }
.deposit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #425c4b; border-radius: 8px; background: #1c261f; margin-bottom: 10px; }
.deposit-row > div { min-width: 0; }
.deposit-row > .grow { flex: 1; }
.deposit-row strong { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.deposit-row small { display: block; font-size: 11px; margin-top: 3px; }
.deposit-row > .btn { margin-left: auto; font-size: 12px; }
.wallet-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #577461; border-radius: 5px; background: #243d2c; color: #bce4c9; font-size: 11px; line-height: 1.4; }
.wallet-status.pending, .wallet-status.processing, .wallet-status.review { border-color: #877844; background: #37321e; color: #ffdf8b; }
.wallet-status.approved, .wallet-status.completed { border-color: #46915d; background: #173e24; color: #91f8b2; }
.wallet-status.rejected, .wallet-status.cancelled { border-color: #8a5360; background: #35252a; color: #ffb8c5; }

@media (max-width: 1080px) {
  .lobby-create { grid-template-columns: minmax(0, 1fr); gap: 22px; min-height: 0; }
  .lobby-create::before { background-position: 66% 55%; }
  .lobby-create::after { background: linear-gradient(90deg, #171e19f2 0%, #171e19c9 45%, #171e1980 78%), linear-gradient(0deg, #172019e6, transparent 68%); }
  .lobby-create-steps { max-width: 620px; }
  .lobby-credit-flow { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); gap: 12px 8px; }
  .lobby-rivals { grid-column: 1 / -1; justify-content: center; gap: 25px; padding: 0 0 16px; border-right: 0; border-bottom: 1px solid #384d3e; }
  .lobby-jersey > svg { width: 51px; height: 58px; }
  .lobby-credit-step { flex-direction: column; align-items: flex-start; gap: 7px; }
  .lobby-credit-icon { width: 32px; height: 37px; }
  .lobby-credit-step strong { font-size: 16px; }
  .lobby-credit-step span { font-size: 13px; }
}
@media (max-width: 820px) {
  .practical-app .sidebar nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .practical-app .sidebar nav:has(.nav-item:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .practical-app .sidebar nav:has(.nav-item:nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .practical-app .nav-item > span { font-size: 11px; }
}
@media (max-width: 760px) {
  .lobby-intro h1 { font-size: 30px; }
  .lobby-layout { gap: 12px; }
  .lobby-create { padding: 24px; }
  .lobby-invite { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
  .lobby-credit-example { padding: 20px; }
  .lobby-credit-note { text-align: left; }
  .lobby-balance { gap: 14px 22px; padding: 14px 16px; }
  .lobby-balance > div { min-width: 110px; }
  .lobby-meta { margin-bottom: 16px; }
  .wallet-overview { gap: 9px; }
  .wallet-overview > * { padding: 14px 12px; }
  .wallet-overview strong, .wallet-value { font-size: 24px; }
  .wallet-method { padding: 12px; min-height: 98px; }
  .wallet-method strong { font-size: 13px; }
  .wallet-form { max-width: 100%; }
}
@media (max-width: 480px) {
  .practical-app .lobby-intro { margin-bottom: 16px; }
  .lobby-intro h1 { font-size: 27px; }
  .lobby-intro p { font-size: 13px; }
  .lobby-create { gap: 14px; padding: 18px; }
  .lobby-create::before { background-position: 61% center; opacity: .58; }
  .lobby-create::after { background: linear-gradient(90deg, #171e19e6, #171e19ab), linear-gradient(0deg, #172019e6, transparent 75%); }
  .lobby-create h2 { font-size: 25px; }
  .lobby-sports-label { margin-bottom: 11px; font-size: 11px; }
  .lobby-create-copy > p { font-size: 14px; }
  .lobby-create .btn { width: 100%; justify-content: center; }
  .lobby-create-steps li { gap: 8px; padding: 7px 0; font-size: 13px; }
  .lobby-invite { padding: 16px; }
  .lobby-invite .join-form { grid-template-columns: minmax(0, 1fr); }
  .lobby-invite .join-form .btn { width: 100%; }
  .lobby-credit-example { padding: 18px 16px 14px; }
  .lobby-credit-heading h2 { font-size: 20px; }
  .lobby-example-tag { font-size: 10px; }
  .lobby-credit-flow { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; margin-top: 17px; }
  .lobby-rivals { gap: 28px; }
  .lobby-jersey > svg { width: 57px; height: 63px; }
  .lobby-credit-step { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; padding-inline: 7px; }
  .lobby-credit-icon { width: 37px; height: 40px; }
  .lobby-credit-step strong { font-size: 17px; }
  .lobby-credit-step span { display: inline; margin-left: 4px; font-size: 14px; }
  .lobby-credit-arrow { justify-self: center; transform: rotate(90deg); }
  .lobby-credit-note, .lobby-credit-availability { font-size: 12px; }
  .lobby-balance { gap: 12px; padding: 14px; }
  .lobby-balance > div { flex: 1; min-width: 100px; }
  .lobby-balance > .btn, .lobby-balance > button, .lobby-balance > a { flex: 1 1 100%; margin: 0; }
  .lobby-balance strong { font-size: 20px; }
  .lobby-meta { gap: 5px 10px; }
  .lobby-queue .duel-entry { padding: 14px; }
  .wallet-overview { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .wallet-overview > * { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding: 13px 15px; }
  .wallet-overview strong, .wallet-value { font-size: 25px; margin-top: 0; }
  .wallet-overview p { flex: 1 1 100%; margin-top: 0; }
  .wallet-methods { gap: 7px; }
  .wallet-method { min-height: 103px; padding: 11px 8px; gap: 7px; }
  .wallet-method strong { font-size: 12px; }
  .wallet-method small { font-size: 11px; }
  .wallet-method > svg, .wallet-method > .icon { width: 21px; height: 21px; }
  .deposit-row { padding: 13px; gap: 9px; }
  .deposit-row .wallet-status { margin-left: auto; }
  .deposit-row > .btn { flex: 1 1 100%; margin-left: 0; }
  .wallet-extract { overflow-x: auto; }
  .wallet-extract table { min-width: 360px; }
  .wallet-extract th, .wallet-extract td { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .lobby-create .btn, .lobby-invite .btn { transition: none; }
}

/* Practical entry: the invite field and creation action stay in view. */
.local-demo-note { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 15px; border: 1px solid #39483e; border-radius: 8px; background: #1b211d; color: #c3d1c8; font-size: 13px; line-height: 1.6; }
.local-demo-note > span { flex: 1; }
.local-demo-note strong { color: var(--text); margin-right: 6px; }
.local-demo-note .text-button { flex: none; min-height: 44px; }
.join-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 12px; }
.join-form .form-label { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.join-form .form-input { width: 100%; min-width: 0; }
.join-form .btn { min-height: 46px; padding-inline: 16px; }
.join-form .error-message { grid-column: 1 / -1; line-height: 1.6; font-size: 13px; }
.received-link { margin-top: 10px; min-height: 44px; font-size: 12px; }
.choice-footnote { display: block; margin-top: 11px; color: var(--muted); font-size: 13px; }
.lobby-balance .form-label { margin-top: 0; }
.lobby-balance .balance-help { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.lobby-balance .guest-start { flex: 1; min-width: 0; }
.lobby-balance .guest-start strong { display: block; font-size: 17px; }
.lobby-balance .guest-start p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.lobby-onboarding { justify-content: space-between; gap: 16px 24px; }
.lobby-queue { margin: 0 0 18px; }
.lobby-empty-activity { padding: 17px 19px; border: 1px solid var(--line); border-radius: 9px; background: #191e1b; }
.lobby-empty-activity strong { font-size: 15px; }
.lobby-empty-activity p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.queue-nudge { margin: -3px 0 15px; font-size: 13px; color: #b5e8c6; }
.invite-summary { margin: 16px 0; }
.invite-summary > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.invite-summary dt { color: var(--muted); }
.invite-summary dd { margin: 0; overflow-wrap: anywhere; }
.invite-privacy { margin-top: 16px; }
@media (min-width: 761px) and (max-width: 1150px) {
  .lobby-invite { grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr); gap: 18px; }
}
@media (max-width: 760px) {
  .local-demo-note { align-items: flex-start; padding: 11px 12px; }
  .local-demo-note strong { display: block; }
}
@media (max-width: 480px) {
  .lobby-invite { grid-template-columns: minmax(0, 1fr); }
  .invite-summary > div { grid-template-columns: 1fr; gap: 4px; }
  .lobby-meta .text-button { min-height: 44px; }
  .lobby-onboarding { align-items: flex-start; }
  .lobby-onboarding > .pill { flex: none; }
}
