/* WEB PANEL PROXY public CSS */
:root {
    --night: #17031f;
    --plum: #3a0a4d;
    --magenta: #ff2d95;
    --gold: #ffc83d;
    --gold-deep: #c98a10;
    --turquoise: #19e3d0;
    --cream: #fff4dc;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  body {
    min-height: 100vh;
    color: var(--cream);
    font-family: "Rubik", system-ui, sans-serif;
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, #6b1280 0%, transparent 70%),
      radial-gradient(ellipse 60% 50% at 10% 100%, rgba(255,45,149,.35) 0%, transparent 70%),
      radial-gradient(ellipse 60% 50% at 95% 90%, rgba(25,227,208,.25) 0%, transparent 70%),
      var(--night);
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
  }

  /* Прожекторы */
  .beams { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
  .beam {
    position: absolute; top: -10%; width: 22vmax; height: 130%;
    transform-origin: 50% 0;
    background: linear-gradient(180deg, rgba(255,214,120,.38), transparent 75%);
    clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
    mix-blend-mode: screen;
    animation: sway 9s ease-in-out infinite alternate;
  }
  .beam:nth-child(1) { left: 6%;  --a: -18deg; --b: 12deg; background: linear-gradient(180deg, rgba(255,45,149,.45), transparent 75%); }
  .beam:nth-child(2) { left: 36%; --a: 10deg;  --b: -14deg; animation-duration: 11s; }
  .beam:nth-child(3) { right: 6%; --a: 16deg;  --b: -10deg; animation-duration: 8s; background: linear-gradient(180deg, rgba(25,227,208,.4), transparent 75%); }
  @keyframes sway { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }

  canvas#sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }

  main { position: relative; z-index: 2; width: min(100%, 880px); text-align: center; }

  .script {
    font-family: "Marck Script", "Segoe Script", cursive;
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    color: var(--turquoise);
    text-shadow: 0 0 18px rgba(25,227,208,.7);
    transform: rotate(-3deg);
    margin-bottom: .2em;
  }

  h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(2.8rem, 11vw, 6.6rem);
    line-height: .98;
    letter-spacing: .01em;
    background: linear-gradient(100deg, var(--gold-deep) 0%, #fff2b0 22%, var(--gold) 40%, #fff 50%, var(--gold) 60%, var(--gold-deep) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 4px 0 rgba(120,50,0,.55)) drop-shadow(0 0 28px rgba(255,200,61,.45));
    animation: shine 5s linear infinite;
  }
  @keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }

  .lead {
    margin: 1.1rem auto 2.4rem;
    max-width: 34ch;
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    line-height: 1.5;
    color: rgba(255,244,220,.88);
  }

  .clock { display: flex; justify-content: center; align-items: stretch; gap: clamp(8px, 2.5vw, 22px); }
  .cell {
    flex: 1 1 0; max-width: 210px;
    padding: clamp(14px, 3vw, 26px) 6px clamp(10px, 2vw, 16px);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.03));
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 0 2px rgba(255,200,61,.8), 0 0 34px rgba(255,45,149,.45), inset 0 0 30px rgba(255,200,61,.12);
  }
  .num {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic; font-weight: 900;
    font-size: clamp(2.6rem, 11vw, 6rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(255,200,61,.8), 0 3px 0 #7a4300;
  }
  .label {
    display: block; margin-top: .5em;
    font-size: clamp(.8rem, 2.2vw, 1rem);
    letter-spacing: .08em;
    color: var(--turquoise);
  }
  .colon {
    align-self: center;
    font-family: "Playfair Display", serif; font-weight: 900;
    font-size: clamp(1.8rem, 7vw, 3.6rem);
    color: var(--magenta);
    text-shadow: 0 0 16px var(--magenta);
    animation: blink 1s steps(2, jump-none) infinite;
  }
  @keyframes blink { 50% { opacity: .25; } }

  .finale {
    display: none;
    font-family: "Playfair Display", serif; font-style: italic; font-weight: 900;
    font-size: clamp(2rem, 8vw, 4.4rem);
    color: var(--gold);
    text-shadow: 0 0 24px var(--gold);
  }
  body.done .clock { display: none; }
  body.done .finale { display: block; }

  footer { margin-top: 2.6rem; font-size: .95rem; color: rgba(255,244,220,.6); }

  @media (prefers-reduced-motion: reduce) {
    .beam, h1, .colon { animation: none; }
  }