/* Site-wide layout fixes (all pages) */
html, body { overflow-x: clip; }
@media (max-width: 640px) {
  /* phone header: logo on the left, language switch + main button on the right; section links live in the page */
  header nav > a:not([style*="border-radius"]) { display: none; }
  header { row-gap: 12px !important; }
}

/* studio home: clickable games list */
.game-row > a { transition: background .25s ease; }
.game-row > a:hover, .game-row > a:focus-visible { background: #1F1829; }
.game-row .game-arrow { transition: transform .25s ease; }
.game-row > a:hover .game-arrow, .game-row > a:focus-visible .game-arrow { transform: translateX(6px); }
.m-back:hover { text-decoration: underline !important; }

/* launch-news signup: "check your inbox" panel (built by site.js) */
form { --nl-accent: #2F6B1E; --nl-seed: #9BE36A; --nl-card: #FFFFFF; --nl-line: #B9AD98; --nl-muted: #4A3F35; }
#get form { --nl-accent: #F2D48A; --nl-seed: #F0C24F; --nl-card: rgba(22,20,47,.88); --nl-line: #8C7448; --nl-muted: #CFC6B0; }
form.nl-busy button[type="submit"] { opacity: .7; cursor: progress; }
.nl-done { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 22px;
  background: var(--nl-card); border: 1.5px solid var(--nl-line); text-align: left; outline: none;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); animation: nl-in .55s cubic-bezier(.2,.8,.2,1) both; }
.nl-seed { flex: none; width: 56px; height: 56px; overflow: visible; }
.nl-ring { fill: none; stroke: var(--nl-accent); stroke-width: 2.5; stroke-dasharray: 183; stroke-dashoffset: 183; animation: nl-draw .8s .1s ease-out forwards; }
.nl-stem { fill: none; stroke: var(--nl-accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 21; stroke-dashoffset: 21; animation: nl-draw .45s .55s ease-out forwards; }
.nl-leaf { fill: var(--nl-seed); transform: scale(0); animation: nl-pop .5s cubic-bezier(.3,1.6,.5,1) forwards; }
.nl-l1 { transform-origin: 32px 28px; animation-delay: .85s; }
.nl-l2 { transform-origin: 32px 34px; animation-delay: 1s; }
.nl-bean { fill: var(--nl-accent); }
.nl-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nl-text p { margin: 0; }
.nl-title { font-family: 'Bricolage Grotesque', 'DM Serif Display', sans-serif; font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: var(--nl-accent); }
#get .nl-title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 1.75rem; }
.nl-body { overflow-wrap: anywhere; }
.nl-tip { font-size: .9rem; color: var(--nl-muted); }
.nl-again { align-self: flex-start; margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: .9rem;
  color: var(--nl-accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nl-error { margin: 6px 0 0 !important; font-size: .9rem; color: #E0645A; font-weight: 600; }
@keyframes nl-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes nl-draw { to { stroke-dashoffset: 0; } }
@keyframes nl-pop { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .nl-done, .nl-ring, .nl-stem, .nl-leaf { animation: none; stroke-dashoffset: 0; transform: none; }
}
