body.stereogram-page{
  background:
    radial-gradient(ellipse at 6% 12%,rgba(44,145,113,.16),transparent 35%),
    radial-gradient(ellipse at 96% 24%,rgba(142,38,113,.12),transparent 40%),
    linear-gradient(90deg,#06100d,#080b0e 46%,#100a11 100%)!important;
}
.stereogram-shell{
  width:min(1540px,calc(100% - 48px));
  margin:0 auto;
  padding:30px 0 70px;
}
.stereogram-hero{
  padding:30px 32px;
  border:1px solid rgba(202,255,89,.26);
  border-radius:22px;
  background:
    radial-gradient(circle at 85% 18%,rgba(202,255,89,.08),transparent 28%),
    linear-gradient(145deg,#101812,#080b0d);
  box-shadow:0 20px 44px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.05);
}
.stereogram-hero p{margin:0;color:#caff59!important;font-size:14px!important;font-weight:950;letter-spacing:.12em}
.stereogram-hero h1{
  margin:7px 0 5px;color:#f4d47f;font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(2.6rem,6vw,5.1rem);line-height:.96;
}
.stereogram-hero strong{display:block;color:#71eaff;font-size:16px;letter-spacing:.055em}
.stereogram-hero span{display:block;margin-top:10px;color:#d3d9df;font-size:17px;line-height:1.5}

.stereogram-how{
  display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0;
}
.stereogram-how>div{
  min-height:84px;padding:14px 15px;display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;
  border:1px solid rgba(255,255,255,.08);border-radius:14px;background:#0b0f13;
}
.stereogram-how b{
  width:36px;height:36px;display:grid;place-items:center;border:1px solid rgba(202,255,89,.36);
  border-radius:50%;color:#d2ff77;background:#10180d;
}
.stereogram-how span{color:#c9d0d7;font-size:14px;line-height:1.4}

.stereogram-viewer{
  overflow:hidden;border:1px solid rgba(94,230,255,.28);border-radius:22px;
  background:linear-gradient(145deg,#0e141a,#07090c);
  box-shadow:0 24px 54px rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.04);
}
.stereogram-viewer-head{
  min-height:82px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.stereogram-viewer-head span{color:#caff59;font-size:12px;font-weight:950;letter-spacing:.09em}
.stereogram-viewer-head h2{margin:3px 0 0;color:#f4d47f;font-size:clamp(1.6rem,3vw,2.35rem)}
.stereogram-viewer-head>strong{color:#78ebff;font-size:14px}

.stereogram-stage{
  position:relative;
  min-height:560px;
  display:grid;
  place-items:center;
  overflow:auto;
  padding:18px;
  background:#020303;
}
.stereogram-stage img{
  display:block;
  max-width:100%;
  width:auto;
  height:auto;
  max-height:76vh;
  object-fit:contain;
  user-select:none;
}
.stereogram-empty{
  padding:32px;color:#aab2bc;font-size:17px;text-align:center;
}
.stereogram-controls,.stereogram-help-row{
  display:grid;gap:10px;padding:12px 16px 0;
}
.stereogram-controls{grid-template-columns:1fr auto 1fr}
.stereogram-help-row{grid-template-columns:1fr 1fr;padding-bottom:0}
.stereogram-controls button,.stereogram-help-row button{
  min-height:44px;border:1px solid #36414c;border-radius:10px;background:#121820;color:#e2e8ee;
  font-size:12px;font-weight:950;letter-spacing:.055em;cursor:pointer;
}
.stereogram-controls button:hover,.stereogram-help-row button:hover{border-color:#70eaff;background:#17212a}
#stereo-fullscreen{border-color:rgba(202,255,89,.35);color:#d3ff79}
#stereo-reveal-button{border-color:rgba(239,205,126,.38);color:#f4d47f}
.stereogram-controls button:disabled{opacity:.34;cursor:not-allowed}

.stereogram-reveal{
  margin:12px 16px 0;padding:13px 15px;display:flex;align-items:flex-start;gap:12px;
  border:1px solid rgba(105,232,255,.20);border-radius:12px;background:#0c1318;
}
.stereogram-reveal b{color:#70eaff;font-size:11px;letter-spacing:.08em;white-space:nowrap}
.stereogram-reveal span{color:#d0d6dc;font-size:15px;line-height:1.4}
.stereogram-reveal.answer{margin-bottom:16px;border-color:rgba(239,205,126,.25);background:#151209}
.stereogram-reveal.answer b{color:#f3d47f}
.stereogram-back{margin-top:18px;text-align:center}
.stereogram-back a{
  min-height:44px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(202,255,89,.28);border-radius:10px;background:#0d130b;color:#d2ff78;font-weight:900;
}
.is-hidden{display:none!important}

@media(max-width:820px){
  .stereogram-shell{width:calc(100% - 24px);padding-top:16px}
  .stereogram-hero{padding:23px 20px}
  .stereogram-how{grid-template-columns:1fr}
  .stereogram-stage{min-height:360px;padding:10px}
  .stereogram-stage img{max-height:none;width:100%}
}
@media(max-width:540px){
  .stereogram-viewer-head{align-items:flex-start}
  .stereogram-controls{grid-template-columns:1fr 1fr}
  #stereo-fullscreen{grid-column:1 / -1;grid-row:1}
  .stereogram-help-row{grid-template-columns:1fr}
  .stereogram-reveal{align-items:flex-start;flex-direction:column;gap:5px}
}
