/* Guess Jam commercial homepage, v59.
   This file is loaded after the shared game theme and is scoped to the lobby. */

.home-screen {
  min-height: 100dvh;
  color: #f8fbff;
}

.home-screen .topbar,
.home-stage {
  width: min(1240px, 100%);
  margin-inline: auto;
}

.home-screen .topbar {
  position: relative;
  z-index: 20;
  min-height: 64px;
  margin-bottom: clamp(18px, 3vw, 34px);
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.home-screen .brand-lockup { gap: 10px; }
.home-screen .brand-mark { width: 42px; height: 42px; }
.home-screen .brand-wordmark {
  color: #f8fbff;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  letter-spacing: -0.035em;
}
.home-screen .brand-wordmark strong { color: #ffd66e; }

.home-top-actions { gap: 8px; }
.home-nav { display: flex; align-items: center; gap: 3px; }
.home-nav button,
.home-footer-nav button {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  color: #c7d3da;
  background: transparent;
  font: 750 0.78rem/1 "Segoe UI", Inter, Arial, sans-serif;
}
.home-nav button:hover,
.home-footer-nav button:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.home-sign-in-button { min-height: 42px; padding-inline: 15px; }

.home-stage {
  display: grid;
  gap: clamp(22px, 4vw, 52px);
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.home-commercial-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  min-height: 520px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 68px);
  border: 1px solid rgba(255, 224, 123, 0.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 10%, rgba(56, 214, 195, 0.15), transparent 35%),
    radial-gradient(circle at 12% 90%, rgba(255, 70, 130, 0.12), transparent 38%),
    linear-gradient(145deg, #172b49, #081426 68%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.08);
}

.home-commercial-hero::before,
.home-commercial-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.home-commercial-hero::before {
  width: 440px;
  height: 440px;
  top: -250px;
  right: 12%;
  border: 1px solid rgba(255, 215, 105, 0.18);
  box-shadow: 0 0 0 42px rgba(255, 215, 105, 0.025), 0 0 0 94px rgba(255, 215, 105, 0.018);
}
.home-commercial-hero::after {
  width: 260px;
  height: 260px;
  left: -130px;
  bottom: -150px;
  background: rgba(255, 63, 131, 0.13);
  filter: blur(12px);
}

.home-hero-copy { position: relative; z-index: 2; min-width: 0; }
.home-hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 11px;
  border: 1px solid rgba(56, 214, 195, 0.4);
  border-radius: 999px;
  color: #bff7ee;
  background: rgba(56, 214, 195, 0.08);
  box-shadow: none;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.home-hero-copy .eyebrow-dot { width: 7px; height: 7px; background: #38d6c3; box-shadow: 0 0 13px #38d6c3; }
.home-hero-title {
  max-width: 760px;
  margin: 0;
  color: #f8fbff;
  font: 900 clamp(3.2rem, 7vw, 6.4rem)/0.9 var(--font-display);
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
}
.home-hero-title span {
  display: block;
  margin-top: 0.08em;
  background: linear-gradient(90deg, #ffe16b, #ff8a3d 52%, #ff4a87);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero-subtitle {
  max-width: 680px;
  margin: 23px 0 0;
  color: #cbd7dd;
  font: 540 clamp(1.02rem, 1.7vw, 1.24rem)/1.6 "Segoe UI", Inter, Arial, sans-serif;
}

.home-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.home-hero-actions button { min-height: 52px; padding-inline: 20px; }
.home-hero-actions .primary-button { min-width: 172px; }
.home-hero-actions .secondary-button { min-width: 166px; }
.home-daily-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: #ffe08a;
  background: transparent;
  font: 800 0.82rem/1.2 "Segoe UI", Inter, Arial, sans-serif;
}
.home-daily-cta:hover { color: #fff3c4; transform: translateX(3px); }
.home-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  color: #aebdc5;
  font: 700 0.71rem/1.35 "Segoe UI", Inter, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.home-hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.home-hero-proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #38d6c3; }

.home-demo {
  position: relative;
  z-index: 2;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(30, 52, 84, 0.98), rgba(8, 21, 39, 0.98));
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.42), 0 7px 0 rgba(1, 7, 16, 0.54), inset 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(1.4deg);
}
.home-demo::before { content: ""; position: absolute; inset: 9px; z-index: -1; border: 1px solid rgba(255, 214, 110, 0.08); border-radius: 16px; }
.home-demo-head { display: flex; justify-content: space-between; gap: 14px; color: #9fadb6; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.home-demo-head span { display: flex; align-items: center; gap: 7px; }
.home-demo-head i { width: 8px; height: 8px; border-radius: 50%; background: #ff4a87; box-shadow: 0 0 12px #ff4a87; }
.home-demo h2 { margin: 25px 0 19px; font: 900 clamp(1.5rem, 3vw, 2.35rem)/1.08 var(--font-display); letter-spacing: 0.01em; }
.home-demo-board { display: grid; gap: 8px; }
.home-demo-answer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  min-height: 51px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(4, 13, 25, 0.58);
}
.home-demo-answer > b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: #08201f; background: #38d6c3; font-family: var(--font-score); }
.home-demo-answer > span { min-width: 0; font-size: 0.92rem; font-weight: 850; letter-spacing: 0.025em; }
.home-demo-answer > strong { color: #ffd66e; font-family: var(--font-score); font-size: 1.14rem; text-align: right; }
.home-demo-answer.is-hidden > b { color: #f8fbff; background: #263b5a; }
.home-demo-answer.is-hidden > span { color: #8797a2; letter-spacing: 0.16em; }
.home-demo-answer.is-hidden > strong { color: #8797a2; }
.home-demo-score { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #b9c7ce; font-size: 0.75rem; font-weight: 750; }
.home-demo-score strong { color: #ffd66e; font-family: var(--font-score); font-size: 1rem; }

.home-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-entry-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  color: #f8fbff;
  background: rgba(12, 29, 52, 0.78);
  text-align: left;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}
.home-entry-card:hover { border-color: rgba(56, 214, 195, 0.55); background: #132c4b; transform: translateY(-2px); }
.home-entry-card > span:first-child { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: #ffd66e; background: rgba(255, 214, 110, 0.11); }
.home-entry-card svg { width: 23px; fill: currentColor; }
.home-entry-card > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.home-entry-card strong { font-size: 0.96rem; }
.home-entry-card small { color: #aebdc5; font-size: 0.73rem; line-height: 1.35; }
.home-entry-card > b { color: #38d6c3; font-size: 1.2rem; }

.home-game-panel {
  scroll-margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(19, 39, 66, 0.96), rgba(7, 18, 34, 0.98));
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.055);
}
.home-game-panel .mode-panel-head { align-items: end; margin-bottom: 21px; }
.home-game-panel .section-label,
.home-section-kicker { margin: 0 0 7px; color: #38d6c3; font-size: 0.68rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.home-game-panel .panel-heading,
.home-section-title { margin: 0; color: #f8fbff; font: 900 clamp(2rem, 4vw, 3.35rem)/1 var(--font-display); letter-spacing: -0.025em; }
.home-game-panel .mode-panel-intro,
.home-section-copy { max-width: 700px; margin: 10px 0 0; color: #b7c4cb; font-size: 0.92rem; line-height: 1.55; }
.home-game-panel .mode-panel-count { padding: 8px 11px; border-radius: 999px; font-size: 0.66rem; white-space: nowrap; }
.home-game-panel .mode-panel-count b { color: #ffd66e; }
.home-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-screen .home-game-card,
.home-screen .home-game-card[data-action="mode-daily"] {
  --home-accent: #ffd66e;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  min-height: 220px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  color: #f8fbff;
  background: linear-gradient(155deg, rgba(29, 53, 87, 0.96), rgba(9, 23, 43, 0.98));
  text-align: left;
  box-shadow: 0 8px 0 rgba(1, 7, 16, 0.46), inset 0 1px rgba(255, 255, 255, 0.06);
}
.home-screen .home-game-card[data-action="mode-daily"],
.home-screen .home-game-card[data-action="mode-classic"] { --home-accent: #ff668f; }
.home-screen .home-game-card[data-action="mode-blitz"],
.home-screen .home-game-card[data-action="mode-rapid"] { --home-accent: #38d6c3; }
.home-screen .home-game-card:hover,
.home-screen .home-game-card[data-action="mode-daily"]:hover { border-color: var(--home-accent); background: #183354; transform: translateY(-3px); }
.home-screen .home-game-card .mode-icon,
.home-screen .home-game-card[data-action="mode-daily"] .mode-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid color-mix(in srgb, var(--home-accent) 55%, transparent); border-radius: 13px; color: var(--home-accent); background: color-mix(in srgb, var(--home-accent) 12%, transparent); }
.home-screen .home-game-card .mode-icon svg { width: 23px; fill: currentColor; }
.home-screen .home-game-card .mode-card-copy { display: flex; min-width: 0; min-height: 0; flex-direction: column; }
.home-screen .home-game-card h3,
.home-screen .home-game-card[data-action="mode-daily"] h3 { order: -1; margin: 2px 0 8px; color: #f8fbff; font: 850 1.18rem/1.15 "Segoe UI", Inter, Arial, sans-serif; letter-spacing: -0.02em; }
.home-screen .home-game-card p,
.home-screen .home-game-card[data-action="mode-daily"] p { margin: 0; color: #becbd1; font: 520 0.86rem/1.5 "Segoe UI", Inter, Arial, sans-serif; }
.home-screen .home-game-card .mode-meta,
.home-screen .home-game-card[data-action="mode-daily"] .mode-meta { display: flex; order: 2; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 14px; color: #cbd4d8; font: 780 0.72rem/1.25 "Segoe UI", Inter, Arial, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.home-screen .home-game-card .mode-meta > span,
.home-screen .home-game-card .mode-meta > b { display: inline-flex; width: max-content; padding: 3px 6px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 5px; background: rgba(3, 12, 24, 0.38); }
.home-screen .home-game-card .mode-arrow,
.home-screen .home-game-card[data-action="mode-daily"] .mode-arrow { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; align-self: end; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.09); color: var(--home-accent); font-size: 1.2rem; }
.home-screen .home-game-card .mode-arrow small { color: #dce4e7; font-size: 0.66rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.home-screen .home-game-card:focus-visible { outline-color: #38d6c3; }

.home-how { display: grid; gap: 22px; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.home-step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-step {
  position: relative;
  min-height: 170px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(10, 27, 49, 0.75);
}
.home-step > b { display: grid; width: 39px; height: 39px; place-items: center; margin-bottom: 27px; border-radius: 11px; color: #081b1d; background: #38d6c3; font-family: var(--font-score); }
.home-step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.home-step p { margin: 0; color: #aebdc5; font-size: 0.82rem; line-height: 1.55; }
.home-step::after { content: ""; position: absolute; width: 100px; height: 100px; right: -52px; bottom: -52px; border: 1px solid rgba(255, 214, 110, 0.13); border-radius: 50%; }

.home-groups-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(27px, 5vw, 58px);
  border: 1px solid rgba(56, 214, 195, 0.2);
  border-radius: 26px;
  background: radial-gradient(circle at 100% 0, rgba(56, 214, 195, 0.13), transparent 38%), linear-gradient(145deg, #102b43, #081426 70%);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}
.home-groups-copy .home-section-title { max-width: 560px; }
.home-groups-copy .daily-groups-home-card { width: 100%; margin-top: 24px; border-color: rgba(56, 214, 195, 0.35); background: rgba(4, 18, 31, 0.54); }
.home-return-loop { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.home-return-loop li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 63px; padding: 10px 13px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 13px; background: rgba(5, 17, 32, 0.6); }
.home-return-loop li > b { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #06211f; background: #38d6c3; font-family: var(--font-score); }
.home-return-loop li > span { display: grid; gap: 3px; }
.home-return-loop li strong { font-size: 0.88rem; }
.home-return-loop li small { color: #a8b8c1; font-size: 0.72rem; line-height: 1.35; }
.home-return-loop li > em { color: #ffd66e; font-style: normal; font-weight: 900; }

.home-confidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: rgba(255, 255, 255, 0.1); }
.home-confidence div { min-height: 96px; padding: 21px; background: #0b1d35; }
.home-confidence strong { display: block; margin-bottom: 6px; font-size: 0.88rem; }
.home-confidence span { color: #9fb0ba; font-size: 0.75rem; line-height: 1.4; }

.home-final-cta { display: grid; justify-items: center; gap: 13px; padding: clamp(34px, 6vw, 70px) 22px; text-align: center; }
.home-final-cta h2 { max-width: 820px; margin: 0; font: 900 clamp(2.35rem, 6vw, 5.1rem)/0.95 var(--font-display); letter-spacing: -0.035em; }
.home-final-cta p { max-width: 620px; margin: 0 0 9px; color: #adbdc5; line-height: 1.55; }
.home-final-cta button { min-height: 52px; padding-inline: 24px; }

.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 4px 4px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.home-footer-brand { display: flex; align-items: center; gap: 10px; }
.home-footer-brand img { width: 35px; height: 35px; }
.home-footer-brand span { display: grid; gap: 2px; }
.home-footer-brand strong { font-size: 0.88rem; }
.home-footer-brand small { color: #8799a5; font-size: 0.68rem; }
.home-footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 1040px) {
  .home-commercial-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home-demo { width: min(100%, 620px); margin-inline: auto; transform: none; }
  .home-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-groups-feature { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 780px) {
  .home-nav { display: none; }
  .home-entry-grid,
  .home-step-grid,
  .home-confidence { grid-template-columns: minmax(0, 1fr); }
  .home-section-head { display: grid; }
  .home-confidence { gap: 1px; }
}

@media (max-width: 640px) {
  .home-screen .topbar { min-height: 58px; margin-bottom: 13px; padding-left: 9px; border-radius: 14px; }
  .home-screen .brand-mark { width: 37px; height: 37px; }
  .home-screen .brand-wordmark { font-size: 1.03rem; }
  .home-sign-in-button { min-height: 38px; padding-inline: 10px; font-size: 0.7rem; }
  .home-stage { gap: 22px; }
  .home-commercial-hero { gap: 28px; padding: 25px 17px; border-radius: 21px; }
  .home-hero-title { font-size: clamp(3.05rem, 15vw, 4.5rem); }
  .home-hero-subtitle { margin-top: 18px; font-size: 0.98rem; line-height: 1.52; }
  .home-hero-actions { display: grid; }
  .home-hero-actions button { width: 100%; }
  .home-demo { padding: 16px; border-radius: 17px; }
  .home-demo h2 { margin-block: 20px 15px; font-size: 1.42rem; }
  .home-demo-answer { grid-template-columns: 30px minmax(0, 1fr) 36px; min-height: 46px; }
  .home-demo-answer > span { font-size: 0.8rem; }
  .home-game-panel { padding: 22px 13px; border-radius: 19px; }
  .home-game-panel .mode-panel-head { align-items: start; }
  .home-game-panel .mode-panel-count { display: none; }
  .home-game-grid { grid-template-columns: minmax(0, 1fr); }
  .home-screen .home-game-card,
  .home-screen .home-game-card[data-action="mode-daily"] { min-height: 0; grid-template-columns: 45px minmax(0, 1fr); padding: 16px; }
  .home-screen .home-game-card .mode-icon,
  .home-screen .home-game-card[data-action="mode-daily"] .mode-icon { width: 45px; height: 45px; }
  .home-screen .home-game-card h3,
  .home-screen .home-game-card[data-action="mode-daily"] h3 { font-size: 1.12rem; }
  .home-screen .home-game-card p,
  .home-screen .home-game-card[data-action="mode-daily"] p { font-size: 0.84rem; line-height: 1.48; }
  .home-screen .home-game-card .mode-meta,
  .home-screen .home-game-card[data-action="mode-daily"] .mode-meta { font-size: 0.72rem; line-height: 1.25; }
  .home-groups-feature { padding: 24px 16px; border-radius: 20px; }
  .home-return-loop li { grid-template-columns: 38px minmax(0, 1fr); }
  .home-return-loop li > em { display: none; }
  .home-footer { display: grid; justify-items: start; }
  .home-footer-nav { justify-content: flex-start; }
  .home-footer-nav button { padding-inline: 8px; }
}

@media (max-width: 390px) {
  .home-screen .topbar .icon-button[data-action="show-settings"] { display: none; }
  .home-hero-title { font-size: clamp(2.75rem, 14.5vw, 3.55rem); }
  .home-hero-proof { display: grid; }
}

@media (forced-colors: active) {
  .home-commercial-hero,
  .home-demo,
  .home-entry-card,
  .home-game-panel,
  .home-screen .home-game-card,
  .home-step,
  .home-groups-feature,
  .home-return-loop li,
  .home-confidence div {
    border: 2px solid currentColor;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
    forced-color-adjust: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-screen *,
  .home-screen *::before,
  .home-screen *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
