/* Product walkthrough — compact mock of the real app, not a live board. */

body.is-demo .site-top-inner,
body.is-demo .site-foot {
  max-width: 1100px;
}

.page.demo-page {
  max-width: 1100px;
}

.shell.is-wide {
  max-width: 1040px;
}

.fgd-theater {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  flex: 1;
}

.fgd-app.is-desktop .fgd-fab {
  display: none !important;
}

.scene .fgd-theater {
  min-height: 420px;
}

.fgd-app.is-phone .fgd-nick {
  display: none;
}

.fgd-devices {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem 1.15rem;
  flex: 1;
  min-height: 380px;
  padding: 1.05rem 0.85rem 1.15rem;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.fgd-devices::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: radial-gradient(60% 80% at 50% 100%, rgba(198, 245, 66, 0.06), transparent 70%);
  pointer-events: none;
}

.fgd-laptop {
  position: relative;
  z-index: 1;
  flex: 1 1 58%;
  max-width: 720px;
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  border-radius: 12px 12px 7px 7px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fgd-laptop-bar {
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: #252525;
  border-bottom: 1px solid #333;
}

.fgd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a4a4a;
}

.fgd-dot:nth-child(1) {
  background: #5c5c5c;
}

.fgd-laptop-url {
  margin-left: 0.55rem;
  font-size: 0.62rem;
  color: #7a7a7a;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fgd-laptop-screen {
  position: relative;
  height: 340px;
  background: #0b0b0b;
}

.scene .fgd-laptop-screen {
  height: min(320px, 42vh);
}

.page.demo-page .fgd-laptop-screen {
  height: min(420px, 52vh);
}

.fgd-phone {
  position: relative;
  z-index: 2;
  width: 186px;
  height: 378px;
  flex-shrink: 0;
  background: #161616;
  border: 3px solid #3d3d3d;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.scene .fgd-phone {
  height: min(378px, calc(42vh + 58px));
}

.page.demo-page .fgd-phone {
  width: 210px;
  height: 428px;
}

.fgd-phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 42%;
  height: 8px;
  transform: translateX(-50%);
  background: #0b0b0b;
  border-radius: 8px;
  z-index: 3;
}

.fgd-phone-screen {
  position: absolute;
  inset: 16px 7px 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0b;
}

.fgd-app {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.25;
  background: #0b0b0b;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

.fgd-app.is-desktop {
  font-size: 12px;
}

.fgd-app.is-phone {
  flex-direction: column;
  font-size: 10.5px;
}

.fgd-side {
  display: none;
  width: 9.2rem;
  flex-shrink: 0;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.5rem 0.5rem;
  border-right: 1px solid var(--line);
  background: #111;
}

.fgd-app.is-desktop .fgd-side {
  display: flex;
}

.fgd-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.fgd-mark {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: Oswald, Impact, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
}

.fgd-nav {
  display: grid;
  gap: 0.12rem;
}

.fgd-nav b {
  display: block;
  padding: 0.38rem 0.45rem;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 500;
}

.fgd-nav b.is-on {
  color: var(--ink);
  background: #1c1c1c;
  box-shadow: inset 2px 0 0 var(--accent);
}

.fgd-rail {
  margin-top: auto;
  padding: 0.4rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171717;
}

.fgd-rail span {
  display: block;
  font-size: 0.68em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fgd-rail strong {
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.15em;
}

.fgd-user {
  margin-top: 0.35rem;
  font-size: 0.85em;
  color: var(--muted);
}

.fgd-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.fgd-top {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem 0.3rem;
  border-bottom: 1px solid var(--line);
}

.fgd-app.is-phone .fgd-top {
  display: flex;
}

.fgd-top .fgd-credits {
  margin-left: auto;
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.05em;
}

.fgd-pane {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.45rem 0.55rem 0.5rem;
}

.fgd-app.is-desktop .fgd-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11.2rem;
}

.fgd-app.is-desktop .fgd-pane {
  grid-column: 1;
  grid-row: 1;
}

.fgd-app.is-desktop[data-view="overview"] .fgd-body,
.fgd-app.is-desktop[data-view="bets"] .fgd-body {
  grid-template-columns: minmax(0, 1fr);
}

.fgd-view {
  display: none;
  height: 100%;
}

.fgd-view.is-on {
  display: block;
}

.fgd-eyebrow {
  margin: 0;
  font-size: 0.68em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.fgd-title {
  margin: 0.05rem 0 0.15rem;
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.35em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.fgd-muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.92em;
}

.fgd-hero {
  margin-top: 0.55rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1a1a1a;
}

.fgd-hero b {
  display: block;
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.7em;
  line-height: 1;
  margin: 0.15rem 0 0.35rem;
}

.fgd-cta {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.92em;
}

.fgd-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.fgd-bal {
  border: 1px solid var(--line);
  background: #1a1a1a;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  min-width: 4.2rem;
}

.fgd-bal span {
  display: block;
  font-size: 0.62em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fgd-bal strong {
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.15em;
}

.fgd-day {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fgd-head {
  display: none;
  grid-template-columns: minmax(6.2rem, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 0.2rem;
  padding: 0.15rem 0.1rem 0.25rem;
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.fgd-app.is-desktop .fgd-head {
  display: grid;
}

.fgd-game {
  border-bottom: 1px solid var(--line);
  padding: 0.32rem 0.1rem 0.28rem;
}

.fgd-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.18rem;
  align-items: stretch;
  margin-bottom: 0.15rem;
}

.fgd-app.is-desktop .fgd-row {
  grid-template-columns: minmax(6.2rem, 1.1fr) repeat(3, minmax(0, 1fr));
}

.fgd-team {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}

.fgd-app.is-desktop .fgd-team {
  grid-column: auto;
}

.fgd-pip {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  flex-shrink: 0;
}

.fgd-abbr {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  font-size: 1.02em;
}

.fgd-nick {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fgd-odd {
  display: grid;
  place-content: center;
  gap: 0.02rem;
  min-height: 2.05em;
  border: 1px solid #333;
  background-color: #1f1f1f;
  background-image: none;
  border-radius: 6px;
  text-align: center;
  padding: 0.12rem 0.1rem;
  color-scheme: light;
}

.fgd-odd.is-on {
  background-color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
  border-color: var(--accent);
  color: var(--accent-ink);
}

.fgd-odd i {
  font-style: normal;
  font-size: 0.68em;
  color: #b0b0b0;
}

.fgd-odd.is-on i,
.fgd-odd.is-on b {
  color: var(--accent-ink);
}

.fgd-odd b {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 500;
  font-size: 1.05em;
}

.fgd-odd.is-on b {
  color: var(--accent-ink);
}

.fgd-kick {
  margin: 0.08rem 0 0;
  font-size: 0.72em;
  color: var(--muted);
}

.fgd-slip {
  display: none;
  padding: 0.5rem 0.55rem 0.55rem;
  border: 1px solid var(--line);
  background: #1a1a1a;
  border-radius: 10px;
  align-content: start;
  gap: 0.35rem;
}

.fgd-app.is-desktop[data-view="games"] .fgd-slip {
  display: grid;
  margin: 0.45rem 0.45rem 0.45rem 0;
  align-self: start;
  grid-column: 2;
  grid-row: 1;
}

.fgd-app.is-phone .fgd-slip {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 3.05rem;
  z-index: 8;
  max-height: 34%;
  overflow: auto;
  padding: 0.35rem 0.4rem 0.4rem;
  gap: 0.22rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.fgd-app.is-phone .fgd-slip.is-open {
  display: grid;
}

.fgd-slip-head {
  display: flex;
  justify-content: space-between;
  font-family: Oswald, Impact, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92em;
}

.fgd-slip-head span {
  font-family: Inter, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 0.85em;
}

.fgd-leg {
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.32rem 0.4rem;
  border: 1px solid #2e2e2e;
  background: #161616;
  border-radius: 6px;
}

.fgd-leg small {
  display: block;
  font-size: 0.68em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa898;
}

.fgd-chips {
  display: flex;
  gap: 0.2rem;
}

.fgd-chip {
  border: 1px solid var(--line);
  background: #141414;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.12rem 0.4rem;
  font-size: 0.78em;
}

.fgd-chip.is-on {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.fgd-pay {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.fgd-pay strong {
  font-family: Oswald, Impact, sans-serif;
  color: var(--accent);
  font-size: 1.2em;
}

.fgd-lock {
  display: block;
  width: 100%;
  margin-top: 0.1rem;
  padding: 0.4rem 0.45rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.88em;
  text-align: center;
}

.fgd-fab {
  display: none;
  position: absolute;
  right: 0.45rem;
  bottom: 3.15rem;
  z-index: 7;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.82em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.fgd-app.is-phone .fgd-fab.is-on {
  display: block;
}

.fgd-app.is-phone .fgd-fab.is-on.is-hide {
  display: none;
}

.fgd-bottom {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.12rem;
  margin: 0.25rem 0.35rem 0.35rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.96);
  border-radius: 10px;
}

.fgd-app.is-phone .fgd-bottom {
  display: grid;
}

.fgd-bottom b {
  text-align: center;
  padding: 0.38rem 0.1rem;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--muted);
  border-radius: 6px;
}

.fgd-bottom b.is-on {
  color: var(--ink);
  background: #222;
}

.fgd-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(12, 12, 12, 0.55);
  place-items: center;
  padding: 0.55rem;
}

.fgd-overlay.is-on {
  display: grid;
}

.fgd-modal {
  width: min(18rem, 100%);
  background: #1a1a1a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  display: grid;
  gap: 0.4rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.fgd-modal h4 {
  margin: 0;
  font-size: 1.05em;
  font-weight: 700;
}

.fgd-modal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.fgd-modal li {
  padding: 0.32rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #141414;
  font-size: 0.88em;
}

.fgd-stats {
  display: grid;
  gap: 0.15rem;
  margin: 0;
}

.fgd-stats div {
  display: flex;
  justify-content: space-between;
  padding: 0.18rem 0;
  border-bottom: 1px solid var(--line);
}

.fgd-stats dt {
  color: var(--muted);
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fgd-stats dd {
  margin: 0;
  font-family: Oswald, Impact, sans-serif;
}

.fgd-stats .pos {
  color: var(--accent);
}

.fgd-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
}

.fgd-ghost {
  padding: 0.32rem 0.45rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
  font-size: 0.85em;
}

.fgd-ticket {
  position: relative;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.fgd-ticket::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--warn);
}

.fgd-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.55rem 0.4rem 0.7rem;
  background: #222;
  border-bottom: 1px solid #333;
  font-weight: 700;
}

.fgd-badge {
  font-size: 0.68em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid var(--warn);
  border-radius: 4px;
  padding: 0.08rem 0.28rem;
}

.fgd-ticket-leg {
  margin: 0.35rem 0.45rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  background: #161616;
}

.fgd-ticket-pay {
  display: flex;
  gap: 1rem;
  padding: 0.15rem 0.7rem 0.5rem;
}

.fgd-ticket-pay span {
  display: block;
  font-size: 0.62em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fgd-ticket-pay strong {
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.25em;
}

.fgd-ticket-pay .pos {
  color: var(--accent);
}

.fgd-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  z-index: 20;
  pointer-events: none;
  transform: translate(-8px, -4px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
}

.fgd-cursor svg {
  display: block;
  width: 16px;
  height: 16px;
}

.fgd-app.is-phone .fgd-cursor {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(198, 245, 66, 0.28);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 245, 66, 0.12);
  filter: none;
}

.fgd-app.is-phone .fgd-cursor svg {
  display: none;
}

.fgd-cursor.is-click {
  transform: translate(-8px, -4px) scale(0.86);
}

.fgd-app.is-phone .fgd-cursor.is-click {
  transform: scale(0.78);
  background: rgba(198, 245, 66, 0.5);
}

.fgd-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.fgd-controls button {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-family: inherit;
  cursor: pointer;
}

.fgd-controls button.is-on,
.fgd-controls button.is-lit {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}

.fgd-progress {
  flex: 1 1 8rem;
  height: 4px;
  min-width: 6rem;
  background: #2a2a2a;
  border-radius: 99px;
  overflow: hidden;
  cursor: pointer;
}

.fgd-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
}

.fgd-time {
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 2.6rem;
  font-variant-numeric: tabular-nums;
}

.fgd-caption {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  flex: 1 1 12rem;
}

.fgd-device-toggle {
  display: none;
  gap: 0.25rem;
}

.fgd-note {
  font-size: 0.78rem;
  color: #6f6f6f;
  margin: 0;
}

@media (max-width: 720px) {
  .fgd-device-toggle {
    display: flex;
  }

  .fgd-devices {
    min-height: 430px;
  }

  .fgd-devices.is-phone-only .fgd-laptop,
  .fgd-devices.is-desktop-only .fgd-phone {
    display: none;
  }

  .fgd-devices.is-phone-only {
    align-items: center;
  }

  .fgd-phone {
    width: min(230px, 72vw);
    height: 460px;
  }

  .fgd-laptop {
    max-width: 100%;
  }

  .fgd-laptop-screen {
    height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fgd-cursor,
  .fgd-progress i {
    transition: none;
  }
}
