/* Palette tuned to public/G4SG_logo.png — deep stitched green, stripe greens, ball white */

:root {
  --font-hand: "Permanent Marker", "Segoe Print", "Bradley Hand", cursive;
  --font-site-title: "Fredoka", ui-sans-serif, system-ui, sans-serif;
  --fairway-deep: #105236;
  --fairway: #157346;
  --fairway-mid: #268a59;
  --rough: #3daf72;
  --sand: #e8f1ec;
  --sand-accent: #2d9f63;
  --text: #0c1814;
  --text-muted: #3a5c4c;
  --border: #bed8cb;
  --white: #ffffff;
  --page-bg: #f2f8f5;
  --panel-bg: #fbfcfb;
  --footer-band-bg: var(--fairway-deep);
  --shadow: rgba(16, 82, 54, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--page-bg);
  background-image: repeating-linear-gradient(
    -48deg,
    transparent,
    transparent 14px,
    rgba(21, 115, 70, 0.045) 14px,
    rgba(21, 115, 70, 0.045) 28px
  );
  line-height: 1.6;
  outline: none;
}

.main-poster {
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

/* Poster: document flow only — no overlapping absolute stacks */
.poster-board {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 0;
  padding: 1.35rem 1rem 1.5rem;
  background: var(--panel-bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  outline: 1px solid rgba(16, 82, 54, 0.12);
}

.poster-layer {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 0;
}

.poster-logo-wrap {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.poster-logo {
  display: block;
  width: min(220px, 58vw);
  max-width: 100%;
  height: auto;
}

.poster-header-brand {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.poster-header-brand h1.poster-title-domain-rotator {
  margin-top: -0.15rem;
  padding: 0.15rem 0.75rem 0.35rem;
}

.poster-domain-typer {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}

.poster-domain-typer-display {
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.poster-domain-typer-display .g4sg-domain-green {
  color: var(--fairway-deep);
}

.poster-domain-caret {
  flex-shrink: 0;
  display: inline-block;
  width: 0.072em;
  min-width: 2px;
  height: 0.92em;
  margin-left: 0.06em;
  background: currentColor;
  vertical-align: -0.08em;
  border-radius: 1px;
  animation: poster-domain-caret-blink 0.92s steps(2, jump-none) infinite;
}

@keyframes poster-domain-caret-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster-domain-caret {
    animation: none;
    opacity: 0.65;
  }
}

.poster-title {
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-site-title);
  font-size: clamp(1.02rem, 3.9vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--fairway-deep);
  text-align: center;
}

.poster-brand-shell {
  margin: 0;
}

.poster-brand-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  padding: 0.9rem 0.85rem 1.1rem;
  border-radius: 12px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
}

.poster-scoring-app {
  margin: 0;
  padding: 0.45rem 0.6rem;
  width: max-content;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fairway-deep);
  line-height: 1.25;
  text-align: center;
  border: 3px double var(--fairway-deep);
  border-radius: 4px;
  background: var(--panel-bg);
  box-shadow: 2px 2px 0 rgba(16, 82, 54, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

a.poster-scoring-app {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

a.poster-scoring-app:hover {
  color: var(--fairway-deep);
  box-shadow: 2px 3px 0 rgba(16, 82, 54, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

a.poster-scoring-app:focus-visible {
  outline: 3px solid var(--sand-accent);
  outline-offset: 3px;
}

.poster-brand-strip .poster-made-cluster {
  transform: rotate(-8deg);
  transform-origin: center center;
  padding: 0.35rem 0.5rem;
}

.poster-brand-strip .poster-ages-cluster {
  transform: rotate(7deg);
  transform-origin: center center;
  padding: 0.35rem 0.5rem;
}

.poster-trial-card {
  margin: 0;
  padding: 1.05rem 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(155deg, #f8fcfa 0%, #e9f4ee 42%, #f4faf7 100%);
  box-shadow: 0 1px 4px var(--shadow);
}

.poster-trial-card .poster-trial-cta {
  text-decoration: none;
}

.poster-trial-price {
  margin: 0.75rem 0 0;
  padding: 0 0.25rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--fairway-mid);
  line-height: 1.35;
}

/* --- G4SG Link Card promo --- */
.poster-login-section {
  margin: 0;
  padding: 0;
}

.poster-login-heading {
  margin: 0 0 1rem;
  font-family: var(--font-site-title);
  font-size: clamp(0.95rem, 3.65vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--fairway-deep);
  text-align: center;
}

.login-method {
  margin: 0;
  padding: 0;
}

.login-method-list {
  margin: 0 0 0.85rem;
  padding: 0 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.58;
  color: var(--text);
}

.login-method-list li {
  margin-bottom: 0.55rem;
}

.login-method-list li:last-child {
  margin-bottom: 0;
}

.login-method-list li::marker {
  color: var(--fairway-mid);
}

.g4sg-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  max-width: 340px;
  margin: 1rem auto 0;
}

/* Credit-card style G4SG Link Card */
.g4sg-link-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 1.15rem auto 1rem;
  aspect-ratio: 1.586;
  padding: 1rem 1.25rem 1rem;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    #082818 0%,
    var(--fairway-deep) 28%,
    var(--fairway) 55%,
    #1a6b45 85%,
    var(--fairway-deep) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 10px 28px rgba(12, 40, 28, 0.35),
    0 2px 6px rgba(12, 40, 28, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.95);
}

.g4sg-link-card-sheen {
  pointer-events: none;
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    118deg,
    transparent 35%,
    rgba(255, 255, 255, 0.09) 48%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.06) 52%,
    transparent 65%
  );
  transform: rotate(-12deg);
}

.g4sg-link-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.g4sg-link-card-qr {
  flex-shrink: 0;
  padding: 4px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.g4sg-link-card-qr-img {
  display: block;
  width: clamp(52px, 14vw, 72px);
  height: auto;
  vertical-align: bottom;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.g4sg-link-card-logo {
  display: block;
  height: clamp(56px, 16vw, 78px);
  width: auto;
  max-height: none;
  max-width: min(150px, 52vw);
  margin-left: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.g4sg-link-card-mid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

.g4sg-link-card-name {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-site-title);
  font-size: clamp(0.95rem, 3.8vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  line-height: 1.15;
}

.g4sg-link-card-name-light {
  font-weight: 600;
  font-size: 0.58em;
  letter-spacing: 0.26em;
  opacity: 0.88;
  margin-left: 0.35em;
  vertical-align: middle;
}

.g4sg-link-card-number {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: clamp(0.92rem, 3.8vw, 1.06rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.g4sg-link-card-number span {
  margin-right: 0.08em;
}

.g4sg-link-card-pan {
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.98);
}

.subscribe-placeholder-heading {
  margin-bottom: 0.85rem !important;
  padding-bottom: 0 !important;
}

.subscribe-placeholder-intro .poster-lead {
  margin-bottom: 1.05rem;
}

.construction-muted {
  color: var(--text-muted);
  font-size: 0.98rem !important;
}

.newsletter-form {
  margin: 0.85rem 0 0;
  text-align: left;
}

.newsletter-field {
  margin-bottom: 0.75rem;
}

.newsletter-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fairway-deep);
  letter-spacing: 0.03em;
}

.newsletter-optional {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.92em;
}

.newsletter-field input {
  width: 100%;
  padding: 0.65rem 0.72rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}

.newsletter-field input:focus-visible {
  outline: 3px solid var(--sand-accent);
  outline-offset: 2px;
}

.newsletter-submit {
  margin-top: 0.5rem !important;
}

.construction-feedback {
  margin: 0 0 0.85rem !important;
  padding: 0.65rem 0.72rem;
  border-radius: 8px;
  font-size: 0.93rem !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
}

.construction-feedback-success {
  border: 1px solid rgba(34, 120, 80, 0.35);
  background: rgba(232, 245, 239, 0.95);
  color: var(--fairway-deep) !important;
}

.construction-feedback-error {
  border: 1px solid rgba(200, 100, 50, 0.4);
  background: rgba(255, 244, 235, 0.95);
  color: var(--text) !important;
}

.construction-home-link {
  margin-top: 1rem !important;
}

.poster-intro-card {
  margin: 0;
  padding: 1rem 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
}

.poster-lead {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--text);
}

.poster-lead-accent {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 1.28em;
  letter-spacing: 0.02em;
  color: var(--fairway-deep);
}

.poster-simply-label {
  margin: 0 0 0.6rem;
  padding: 0.2rem 0;
  font-weight: 800;
  font-size: 1rem;
  color: var(--fairway-deep);
}

.poster-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.poster-steps li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
}

.poster-steps li:last-child {
  margin-bottom: 0;
}

.poster-step-num {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--fairway);
  min-width: 1.2em;
}

.poster-tagline {
  margin: 0;
  padding: 1rem 0.85rem 1.1rem;
  text-align: center;
  font-size: clamp(0.88rem, 3.2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--fairway-deep);
  line-height: 1.5;
  border-radius: 10px;
  background: linear-gradient(155deg, #f8fcfa 0%, #e9f4ee 42%, #f4faf7 100%);
  border: 1px solid var(--border);
}

.poster-game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.game-tile {
  margin: 0;
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  box-shadow: 0 1px 4px var(--shadow);
}

.game-tile-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--fairway-deep);
  line-height: 1.3;
}

.game-tile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.btn-poster {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-poster .btn-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-poster .btn-text {
  text-align: center;
  line-height: 1.2;
}

.btn-poster .btn-icon {
  flex-shrink: 0;
  display: block;
}

.poster-publisher-footer {
  margin: 1.5rem -1rem -1.5rem;
  padding: 1.15rem 1rem calc(1.35rem + 1.5rem);
  max-width: none;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--footer-band-bg);
  color: #fff;
  border-radius: 0 0 10px 10px;
}

.poster-publisher-footer .steadtra-published-line {
  color: #fff;
}

.steadtra-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.steadtra-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.52;
}

.steadtra-published-line {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.steadtra-svgator-logo {
  display: block;
  width: min(172px, 52vw);
  height: 52px;
  border: 0;
  vertical-align: middle;
  overflow: hidden;
  pointer-events: none;
}

.steadtra-svgator-logo img {
  display: block;
  width: min(172px, 52vw);
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.poster-publisher-footer .publisher-legal-nav {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.86rem;
}

.poster-publisher-footer .publisher-legal-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  text-decoration: none;
}

.poster-publisher-footer .publisher-legal-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.poster-publisher-footer .publisher-legal-nav a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.poster-publisher-footer .publisher-legal-sep {
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
}

.poster-publisher-footer .publisher-copyright {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}

.poster-made-cluster {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fairway-mid);
  flex-shrink: 0;
}

.poster-made-strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fairway-deep);
}

.poster-ages-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.12;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fairway-mid);
  flex-shrink: 0;
}

.poster-age-strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sand-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
  line-height: 1.2;
}

.btn-primary {
  background: var(--fairway-deep);
  color: var(--white);
  border-color: var(--fairway-deep);
}

.btn-primary:hover {
  background: var(--fairway);
  border-color: var(--fairway);
}

.btn-secondary {
  background: var(--white);
  color: var(--fairway-deep);
  border-color: var(--fairway-mid);
}

.btn-secondary:hover {
  background: var(--sand);
  border-color: var(--fairway-deep);
}

.btn:focus-visible {
  outline: 3px solid var(--sand-accent);
  outline-offset: 3px;
}

.footer-copy {
  margin: 2rem 0 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
}

.footer-age {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fairway-deep);
  text-align: center;
}

/* Modal — light panel for readability */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 24, 20, 0.58);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow-y: auto;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(100%, 26rem);
  margin: auto;
  background: var(--panel-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 0;
  max-height: calc(100vh - 2rem);
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.modal-backdrop.is-open .modal {
  transform: translateY(0);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0;
  padding: 1.12rem 1.25rem 0.72rem;
  background: var(--panel-bg);
  border-bottom: 2px solid var(--sand);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 8px 16px rgba(244, 250, 247, 1);
}

.modal-title {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--fairway-deep);
  line-height: 1.25;
}

.modal-close {
  flex-shrink: 0;
  min-width: 48px;
  min-height: 48px;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--fairway-deep);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-close:hover {
  background: var(--sand);
  border-color: var(--fairway-mid);
}

.modal-close:focus-visible {
  outline: 3px solid var(--sand-accent);
  outline-offset: 2px;
}

.modal-body {
  padding: 0.72rem 1.25rem 1.35rem;
}

.modal-body h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--fairway-mid);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p,
.modal-body ul {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
}

.modal-body ul {
  padding-left: 1.25rem;
}

.modal-body li {
  margin-bottom: 0.45rem;
}

.modal-body li::marker {
  color: var(--fairway);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 480px) {
  .main-poster {
    max-width: 32rem;
  }

  .poster-board {
    max-width: 440px;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .poster-publisher-footer {
    margin-left: -1.15rem;
    margin-right: -1.15rem;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .poster-game-grid {
    grid-template-columns: 1fr 1fr;
  }

  .modal {
    width: min(100%, 28rem);
  }
}

@media (max-width: 340px) {
  .poster-layer {
    gap: 1.2rem;
  }

  .poster-publisher-footer {
    padding-inline: 0.75rem;
  }

  .steadtra-brand-row {
    font-size: 0.82rem;
    gap: 0.38rem 0.5rem;
  }

  .steadtra-svgator-logo {
    width: min(156px, 48vw);
    height: 48px;
    max-height: 48px;
  }
}
