/* timka.tech — заглушка с колоколом */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --gold-1: #fff6d5;
  --gold-2: #f0cf7a;
  --gold-3: #c99b3c;
  --gold-4: #8a6320;
  --gold-5: #5a3d0f;
  --glow: 255, 214, 122;
  --bg-1: #0b0a12;
  --bg-2: #16121f;
  --text: #efeaff;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 70% 55% at 50% 32%, rgba(255, 214, 122, .10), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(120, 90, 255, .12), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 22% 28%, rgba(120, 90, 255, .10), transparent 45%),
    radial-gradient(circle at 78% 68%, rgba(255, 214, 122, .07), transparent 45%);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6vh;
  padding: 4vh 5vw;
  text-align: center;
}

/* ─── колокол ─────────────────────────────────────────── */

.bell-container {
  position: relative;
  width: min(46vw, 260px);
  aspect-ratio: 1 / 1.15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  animation: sway 6s ease-in-out infinite;
  transform-origin: 50% 0;
}

@keyframes sway {
  0%, 100% { transform: rotate(-1.6deg); }
  50%      { transform: rotate(1.6deg); }
}

.bell-container:focus-visible .bell { filter: drop-shadow(0 0 18px rgba(var(--glow), .55)); }

/* ореол за колоколом */
.halo {
  position: absolute;
  inset: 8% 4% 18% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow), .22) 0%, rgba(var(--glow), .07) 42%, transparent 70%);
  filter: blur(22px);
  transition: opacity .7s ease, transform .7s ease;
  opacity: .9;
}

/* верёвка */
.rope {
  position: absolute;
  top: -14%;
  left: 50%;
  width: 7px;
  height: 22%;
  transform: translateX(-50%);
  border-radius: 4px;
  background:
    repeating-linear-gradient(115deg, #6b5230 0 3px, #4a3618 3px 6px),
    linear-gradient(90deg, #3a2910, #8a6c3e 45%, #3a2910);
  box-shadow: 0 0 12px rgba(0, 0, 0, .6), inset 0 0 4px rgba(255, 255, 255, .18);
}

.bell {
  position: relative;
  width: 100%;
  height: 78%;
  transition: filter .7s ease;
}

/* верхушка с ушком */
.bell-top {
  position: absolute;
  top: 0;
  left: 50%;
  width: 22%;
  height: 16%;
  transform: translateX(-50%);
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(160deg, var(--gold-1), var(--gold-3) 55%, var(--gold-5));
  box-shadow: inset -3px -4px 8px rgba(0, 0, 0, .45), inset 3px 3px 8px rgba(255, 255, 255, .5);
}

.bell-top::after {
  content: "";
  position: absolute;
  top: -26%;
  left: 50%;
  width: 44%;
  height: 52%;
  transform: translateX(-50%);
  border: 4px solid var(--gold-3);
  border-bottom: none;
  border-radius: 50% 50% 0 0;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .35);
}

/* тело колокола — трапеция с изгибом */
.bell-body {
  position: absolute;
  top: 13%;
  left: 0;
  width: 100%;
  height: 74%;
  clip-path: polygon(37% 0%, 63% 0%, 88% 74%, 96% 100%, 4% 100%, 12% 74%);
  background:
    linear-gradient(90deg,
      #6d4c14 0%,
      #a97a2c 9%,
      #e8c375 26%,
      #fff7dd 40%,
      #f4d68f 50%,
      #d9ae55 63%,
      #a4762a 80%,
      #6d4c14 100%);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55));
}

.bell-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .30) 0%, transparent 22%, transparent 68%, rgba(0, 0, 0, .38) 100%);
}

/* нижний обод */
.bell-rim {
  position: absolute;
  bottom: 5%;
  left: 0;
  width: 100%;
  height: 9%;
  border-radius: 50% / 40%;
  background: linear-gradient(180deg, #f7e3ad 0%, #cfa254 40%, #7d5719 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5), inset 0 -2px 5px rgba(0, 0, 0, .45);
}

/* внутренняя тень под ободом */
.bell-base {
  position: absolute;
  bottom: 3%;
  left: 50%;
  width: 84%;
  height: 5%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .75), transparent 72%);
  filter: blur(3px);
}

/* блики */
.shine-l, .shine-r {
  position: absolute;
  border-radius: 50%;
  filter: blur(9px);
  pointer-events: none;
}

.shine-l {
  top: 22%;
  left: 24%;
  width: 16%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), transparent);
  opacity: .55;
  transform: rotate(-12deg);
}

.shine-r {
  top: 30%;
  right: 22%;
  width: 7%;
  height: 26%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
  opacity: .35;
  transform: rotate(10deg);
}

/* тени на металле */
.shadow-l1, .shadow-l2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}

.shadow-l1 {
  bottom: 16%;
  left: 6%;
  width: 26%;
  height: 34%;
  background: radial-gradient(circle, rgba(60, 30, 0, .55), transparent 70%);
}

.shadow-l2 {
  bottom: 12%;
  right: 8%;
  width: 20%;
  height: 30%;
  background: radial-gradient(circle, rgba(60, 30, 0, .45), transparent 70%);
}

/* язычок */
.clapper {
  position: absolute;
  bottom: 1%;
  left: 50%;
  width: 15%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff2c4, #c99b3c 55%, #6b4a12 100%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .6), inset -2px -3px 6px rgba(0, 0, 0, .5);
  transition: transform .25s ease;
}

/* свечение вокруг */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(26px);
  pointer-events: none;
  transition: opacity .7s ease;
}

.glow-1 {
  top: 26%;
  left: 50%;
  width: 86%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--glow), .30), transparent 68%);
}

.glow-2 {
  bottom: 6%;
  left: 50%;
  width: 64%;
  height: 26%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--glow), .22), transparent 70%);
}

/* искры */
.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff3cf;
  box-shadow: 0 0 10px 2px rgba(var(--glow), .85);
  opacity: 0;
  animation: twinkle 3.4s ease-in-out infinite;
}

.s1 { top: 20%; left: 12%; animation-delay: .2s; }
.s2 { top: 12%; right: 16%; animation-delay: 1.1s; }
.s3 { bottom: 22%; right: 6%; animation-delay: 2.1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(.6); }
  45%      { opacity: 1; transform: translateY(-6px) scale(1); }
}

/* ─── состояние "погашен" ─────────────────────────────── */

.bell-container.off .bell-body {
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .7)) brightness(.42) saturate(.35);
}

.bell-container.off .bell-top,
.bell-container.off .bell-rim {
  filter: brightness(.45) saturate(.35);
}

.bell-container.off .clapper { filter: brightness(.45) saturate(.3); }
.bell-container.off .halo,
.bell-container.off .glow,
.bell-container.off .spark { opacity: 0; }
.bell-container.off .shine-l,
.bell-container.off .shine-r { opacity: .12; }
.bell-container.off .shadow-l1,
.bell-container.off .shadow-l2 { opacity: .8; }

/* ─── кнопка ──────────────────────────────────────────── */

.button {
  position: relative;
  display: inline-block;
  margin-top: 2vh;
  padding: 15px 40px;
  border-radius: 999px;
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 600;
  letter-spacing: .18em;
  text-decoration: none;
  color: var(--text);
  text-shadow: 0 0 14px rgba(196, 176, 255, .6);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .085);
  border-color: rgba(255, 214, 122, .45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 0 26px rgba(var(--glow), .22), inset 0 1px 0 rgba(255, 255, 255, .18);
  outline: none;
}

.button:active { transform: translateY(0) scale(.985); }

/* ─── мобилка ─────────────────────────────────────────── */

@media (max-width: 560px) {
  .bell-container { width: min(62vw, 220px); }
  .stage { gap: 3.5vh; }
  .button { padding: 14px 32px; letter-spacing: .14em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
