@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Manrope:wght@500;600;700;800&display=swap');

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Manrope', system-ui, sans-serif;
  color: #1e293b;
  background: #fdf6ec url('../image/clean-plain-bg.webp?v=4') center/cover no-repeat fixed;
}
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px 36px;
}
a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #b91c1c 0%, #851013 52%, #5a0a0c 100%);
  border: 2.5px solid #f59e0b;
  border-bottom: 5px solid #3d0607;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(61, 6, 7, 0.28);
  margin-bottom: 14px;
}
h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  color: #851013;
  margin: 6px 0 4px;
}
h2 {
  font-size: 18px;
  margin: 0 0 6px;
  color: #0f172a;
}
p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.controls button {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 12px;
  border: 0;
  background: #851013;
  color: #fff;
  cursor: pointer;
}
.lens {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(61, 6, 7, 0.14);
  cursor: crosshair;
  max-width: 760px;
  margin: 0 auto;
}
.lens img {
  display: block;
  width: 100%;
  height: auto;
}
.magnifier {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 4px solid #f59e0b;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%);
  display: none;
}
.lens.active .magnifier {
  display: block;
}
