.welcome-page {
  --welcome-gutter:clamp(24px,6vw,104px);
  --welcome-dither-height:128px;
  --welcome-dither-mask:url('/public/welcome-section-dither.svg?v=7');
  --welcome-dither-down-mask:url('/public/welcome-section-dither-down.svg?v=2');
  --welcome-hero-dither-height:128px;
  --welcome-hero-dither-mask:url('/public/welcome-hero-dither-down.svg?v=1');
  position:relative;
  background:#0c1522;
  color:#edf4ff;
}
/* Override the shared app content cap only within the welcome/auth layout. */
.welcome-page #main-content { padding:0; max-width:none; margin:0; width:100%; }
.welcome-header {
  position:absolute;
  inset:0 0 auto;
  z-index:5;
  min-height:100px;
  padding:20px var(--welcome-gutter);
  display:flex;
  align-items:center;
}
.welcome-header>.brand { margin:0; }
.welcome-header .brand>.brand-logo { width:230px; height:auto; }
.welcome-hero {
  min-height:100vh;
  min-height:100svh;
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  align-items:center;
  gap:clamp(28px,5vw,80px);
  padding:148px var(--welcome-gutter) calc(var(--welcome-hero-dither-height) + 8px);
  isolation:isolate;
}
.welcome-worlds,.welcome-scene { position:absolute; inset:0; z-index:-2; overflow:hidden; }
.welcome-scene { opacity:0; transition:opacity 3s ease; pointer-events:none; }
.welcome-scene.is-current { opacity:1; }
.welcome-worlds:after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,#06121fce,#06121f40 70%,#06121f75),linear-gradient(180deg,#07131d55,transparent 35%,#06121f30);
  z-index:1;
}
.welcome-hero .adventure-background:after { display:none; }
/* Chunky pixels with graduated alpha form one arch within section padding. */
.welcome-hero:after,.welcome-creatures:before,.welcome-creatures:after {
  content:'';
  position:absolute;
  left:0;
  right:0;
  height:var(--welcome-dither-height);
  z-index:1;
  pointer-events:none;
  -webkit-mask-image:var(--welcome-dither-mask);
  mask-image:var(--welcome-dither-mask);
  mask-mode:alpha;
  -webkit-mask-size:100% 100%;
  mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:left top;
  mask-position:left top;
}
/* Overlap the solid join by one pixel to cover fractional-height seams. */
.welcome-hero:after,.welcome-creatures:after {
  bottom:-1px;
  background:#0c1522;
  -webkit-mask-image:var(--welcome-dither-down-mask);
  mask-image:var(--welcome-dither-down-mask);
}
.welcome-hero:after {
  height:var(--welcome-hero-dither-height);
  -webkit-mask-image:var(--welcome-hero-dither-mask);
  mask-image:var(--welcome-hero-dither-mask);
}
.welcome-creatures:before { top:calc(-1 * var(--welcome-dither-height)); background:#122235; }
.welcome-hero-copy { max-width:680px; min-width:0; }
.welcome-hero h1 {
  max-width:18ch;
  font-size:clamp(38px,4.5vw,68px);
  line-height:1.12;
  color:#fff5dc;
  margin:0 0 28px;
  letter-spacing:-2px;
  text-shadow:0 3px 0 #14222d;
}
.welcome-hero-copy>p { max-width:510px; font-size:19px; line-height:1.7; color:#f2f4ed; }
.welcome-entry {
  min-width:0;
  width:100%;
  max-width:460px;
  justify-self:end;
  background:rgba(10,24,39,.93);
  border:1px solid #587581;
  padding:30px;
  box-shadow:8px 8px 0 #08132055;
}
.welcome-entry h2 { font-size:25px; line-height:1.3; margin:0 0 24px; }
.welcome-option {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 20px;
  text-decoration:none;
  font-size:18px;
  font-weight:700;
  line-height:1.4;
}
.welcome-tamer-option {
  border:1px solid #c1f66b;
  background:#c1f66b;
  color:#142029;
  box-shadow:4px 4px 0 #67823f;
}
.welcome-option small { display:block; font:400 13px/1.6 var(--sans); color:#314434; margin-top:5px; }
.welcome-parent-signin {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  margin-top:12px;
  color:#b5cbd3;
  font-size:14px;
  text-decoration:underline;
  text-underline-offset:4px;
}
.welcome-parent-signin:hover { color:#edf4ff; }
.welcome-signup { border-top:1px solid #58758180; margin-top:28px; padding-top:26px; }
.welcome-signup h3 { color:#fff1d1; font-size:22px; line-height:1.35; letter-spacing:-.6px; margin:0 0 8px; }
.welcome-signup>p { font-size:15px; line-height:1.65; color:#c3d2db; }
.welcome-create { display:flex; width:100%; margin-top:18px; font-size:14px; white-space:normal; text-align:center; }
.welcome-signup .welcome-note { color:#a6bac6; font-size:12px; line-height:1.6; margin-top:14px; }
.welcome-overview { padding:85px var(--welcome-gutter) calc(var(--welcome-dither-height) + 8px); max-width:1450px; margin:auto; }
.welcome-overview>h2,.welcome-creatures h2 { font-size:clamp(28px,3vw,42px); line-height:1.2; color:#fff1d1; margin:0 0 20px; }
.welcome-overview>p { max-width:720px; color:#bdcbd4; line-height:1.8; font-size:18px; }
.welcome-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; margin-top:46px; }
.welcome-steps article { border-top:1px solid #45616f; padding-top:24px; }
.welcome-steps h3 { margin:0 0 10px; }
.welcome-steps p,.welcome-creatures p,.welcome-parent-note p { color:#b7c8d2; line-height:1.8; }
.welcome-creatures { position:relative; padding:50px var(--welcome-gutter) max(70px,calc(var(--welcome-dither-height) + 8px)); display:grid; grid-template-columns:1.35fr 1fr 1fr; gap:30px; background:#122235; align-items:center; }
.welcome-creatures>div>.button { margin-top:24px; }
.welcome-creatures article { text-align:center; border:1px solid #385063; background:#0e1b2a; padding:15px; }
.welcome-creatures article img { max-width:230px; width:100%; margin-inline:auto; aspect-ratio:1; object-fit:contain; image-rendering:pixelated; }
.welcome-creatures h3 { font-size:23px; color:#fff1d1; margin:5px 0; }
.welcome-creatures article p { font-size:13px; }
.welcome-parent-note { max-width:780px; margin:auto; padding:70px 24px; text-align:center; }
.welcome-parent-note h2 { margin-bottom:18px; }
.welcome-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 28px; padding:16px 24px; border-top:1px solid #2a4355; color:#8ca9b8; font-size:12px; }
.welcome-motion-toggle { background:none; border:0; padding:10px 0; color:#a8c6ce; min-height:44px; font:inherit; text-decoration:underline; text-underline-offset:4px; }
.welcome-back { display:inline-block; min-height:44px; padding-top:18px; color:#9ae4d6; font-size:13px; }
.welcome-entry .family-account { padding:0; border:0; background:none; box-shadow:none; }
.welcome-entry .family-account-heading { display:none; }
.welcome-entry .family-entry { display:block; }
.welcome-entry .family-entry input { width:100%; margin-bottom:14px; }
.welcome-entry .family-entry button { width:100%; }
.welcome-entry .family-small { font-size:12px; }
.welcome-entry input { color:#edf4ff; }
.welcome-entry .family-account-body>p:first-child { font-size:14px; line-height:1.7; }
.welcome-entry [data-family-form=tamer] { display:grid; gap:12px; }
.welcome-entry [data-family-form=tamer] input { width:100%; min-height:44px; }
@media(max-width:780px) {
  .welcome-page {
    --welcome-dither-height:80px;
    --welcome-dither-mask:url('/public/welcome-section-dither-mobile.svg?v=7');
    --welcome-dither-down-mask:url('/public/welcome-section-dither-down-mobile.svg?v=2');
    --welcome-hero-dither-height:80px;
    --welcome-hero-dither-mask:url('/public/welcome-hero-dither-down-mobile.svg?v=1');
  }
  .welcome-header { min-height:88px; padding:18px var(--welcome-gutter); }
  .welcome-header .brand>.brand-logo { width:185px; }
  .welcome-hero { grid-template-columns:minmax(0,1fr); gap:32px; padding-top:124px; }
  .welcome-hero-copy { max-width:600px; }
  .welcome-hero h1 { font-size:clamp(32px,8.2vw,48px); letter-spacing:-1px; margin-bottom:22px; }
  .welcome-hero-copy>p { font-size:16px; }
  .welcome-entry { max-width:600px; justify-self:start; padding:24px; }
  .welcome-entry h2 { font-size:23px; }
  .welcome-steps { grid-template-columns:1fr; gap:28px; margin-top:34px; }
  .welcome-steps article { display:grid; grid-template-columns:64px minmax(0,1fr); column-gap:20px; }
  .welcome-steps article>.welcome-learning-icon { grid-row:1 / 3; margin:0; }
  .welcome-creatures { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; }
  .welcome-creatures>div { grid-column:1 / -1; }
  .welcome-creatures article { padding:10px; }
  .welcome-creatures article p { display:none; }
  .welcome-creatures h3 { font-size:18px; }
  .welcome-overview { padding-top:55px; }
  .welcome-hero .world-scene { object-position:70% center; }
}
@media(max-width:380px) {
  .welcome-header .brand>.brand-logo { width:165px; }
  .welcome-hero { padding-top:104px; }
  .welcome-entry { padding:20px; }
  .welcome-option { padding:18px 14px; font-size:17px; }
  .welcome-option small { font-size:12px; }
  .welcome-signup h3 { font-size:21px; }
}
@media(prefers-reduced-motion:reduce) { .welcome-scene { transition:none; } }
.feedback-link{border:0;background:none;color:var(--cyan);cursor:pointer;font:inherit;min-height:44px;text-decoration:underline;text-underline-offset:4px}.session-footer{flex-wrap:wrap}.report-form{display:grid;gap:14px}.report-form label{display:grid;gap:7px}.report-form textarea{min-height:100px;resize:vertical}.report-context{background:#0e2232;padding:12px;font-size:12px;line-height:1.7;color:#b9d7df}.tamer-login-panel{margin-top:24px}.tamer-login-panel form{display:grid;gap:12px}.tamer-login-panel label{display:grid;gap:7px}.tamer-login-panel input[type=checkbox]{width:auto}.tamer-login-panel .login-row{display:flex;gap:14px;flex-wrap:wrap;align-items:center}.tamer-login-panel .login-row label{display:flex;align-items:center}.report-dialog{width:min(660px,calc(100% - 32px));max-height:90svh;overflow:auto;background:#122235;color:#eef4ff;border:1px solid #65808f;padding:28px}.report-dialog::backdrop{background:#03101cbb}.report-dialog h2{color:#fff1d1}.report-dialog .close-button{position:static;float:right}.report-dialog input,.report-dialog select,.report-dialog textarea{width:100%}.report-dialog .report-confirmation{padding:25px 0}

.tamer-sync-panel .family-account-heading{display:none}.tamer-sync-panel .family-account{margin:0;border-radius:0;padding:12px clamp(20px,5vw,76px)}.tamer-sync-panel .family-account-body>p:first-child{font-size:12px;margin:0}.tamer-sync-panel .family-actions{margin-top:5px}.report-reply input[type=checkbox]{width:auto}
@media(max-width:780px){.report-dialog{padding:20px}}
