/* =============================================================
   Айыына & Максим — wedding invite
   Pinterest "floating" style · mobile-only
   Fonts: Great Vibes (script) · Forum (display) · Cormorant Garamond (body)
   ============================================================= */

:root {
    --cream:    #F0EBE1;
    --cream-2:  #F6F2EA;
    --paper:    #FFFFFF;
    --ink:      #110E09;      /* pure warm-black — максимальный контраст на шёлке */
    --ink-soft: #2A1F17;      /* глубокий эспрессо — отчётливо виден на любом фоне */
    --accent:   #5E3F2B;      /* насыщенный кофе — заметнее на светлом шёлке */
    --accent-2: #8B6B4F;
    --line:     rgba(123, 90, 67, 0.22);
    --ph:       #E4DED4;
    --ph-ic:    #B9AE9E;
    --ease:     cubic-bezier(0.16, 1, 0.3, 1);

    --script:   'Playfair Display', serif;
    --display:  'NamesFont', cursive;
    --body:     'Cormorant Garamond', serif;
    --mono:     'Montserrat', sans-serif;
    --names:    'NamesFont', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#app, .landing { width: 100%; max-width: 100%; }
.sec { width: 100%; }
::selection { background: var(--accent); color: #fff; }

.amp { font-family: var(--script); color: var(--accent); font-weight: 700; }

/* shared atoms ------------------------------------------------ */
.script-title  { font-family: var(--display); color: var(--ink); font-size: clamp(1.6rem, 8vw, 2.2rem); line-height: 1.1; text-align: center; margin-bottom: 1.8rem; font-weight: 500; font-style: normal; }

.prose {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 34ch;
    margin: 0 auto;
    text-align: center;
}

/* =============================================================
   DESKTOP GATE
   ============================================================= */
.desktop-gate { display: none; }

@media (pointer: fine) and (min-width: 900px) {
    #app { display: none; }
    .desktop-gate {
        display: flex; position: fixed; inset: 0; z-index: 100;
        align-items: center; justify-content: center;
        background: radial-gradient(120% 120% at 50% 30%, var(--cream-2), var(--cream) 70%, #E7E0D4);
        text-align: center; padding: 2rem;
    }
}
.dg-card { max-width: 420px; }
.dg-script { font-family: var(--script); color: var(--accent); font-size: 2.4rem; font-weight: 400; font-style: italic; }
.dg-names { font-family: var(--names); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 2.2; margin: 0.6rem 0 0; }
.dg-names .amp { font-family: var(--names); color: var(--accent); font-weight: 400; }
.dg-date { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); font-weight: 400; margin-top: 1.6rem; }
.dg-divider { width: 60px; height: 1px; background: var(--line); margin: 2rem auto; }
.dg-phone { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; margin-bottom: 1rem; }
.dg-text { font-family: var(--body); font-size: 1.18rem; line-height: 1.7; color: var(--ink-soft); font-weight: 400; }

/* =============================================================
   FLOATING FABRIC BACKGROUND (fixed, no veil)
   ============================================================= */
.bg-fabric { position: fixed; inset: 0; height: 100lvh; z-index: 0; background: var(--cream); opacity: 0; transition: opacity 0.8s ease; }
.bg-fabric.bg-visible { opacity: 1; }
.bg-fabric video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =============================================================
   INTRO — envelope + prologue
   ============================================================= */
.intro {
    position: fixed; inset: 0; z-index: 50;
    display: grid; place-items: center;
    background: var(--cream);
    transition: opacity 0.9s var(--ease);
}
.intro.gone { opacity: 0; pointer-events: none; }

/* ---- envelope (pure CSS) ---- */
.envelope-stage {
    display: flex; flex-direction: column; align-items: center; gap: 2.2rem;
    transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
    animation: floatIn 1.1s var(--ease) both;
}
.envelope-stage.away { opacity: 0; transform: scale(1.25); pointer-events: none; }
@keyframes floatIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.envelope-hint {
    font-family: var(--body); font-size: 0.82rem; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--ink-soft); font-weight: 400;
    animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---- prologue video (stand-in: video4 rotated 90° → fills portrait) ---- */
.prologue { position: fixed; inset: 0; z-index: 60; background: #000; }
.prologue[hidden] { display: none; }
.prologue-stage { position: absolute; inset: 0; overflow: hidden; }
.prologue-video {
    position: absolute; top: 50%; left: 50%;
    width: 100vh; height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg);
    object-fit: cover; will-change: transform;
}

/* =============================================================
   LANDING
   ============================================================= */
.landing { position: relative; z-index: 1; opacity: 0; transition: opacity 1s ease; }
.landing.reveal { opacity: 1; }
body.intro-lock { overflow: hidden; height: 100%; }

/* legibility on the floating-fabric (transparent) sections — powerful cream
   text-halo via text-shadow.  No overlay, no backdrop — just font glow. */
.sec:not(.sec-plain):not(.sec-white) {
    text-shadow:
        0 0 3px  rgba(240,235,225,1),
        0 0 6px  rgba(240,235,225,1),
        0 0 12px rgba(240,235,225,0.95),
        0 0 22px rgba(240,235,225,0.85),
        0 0 40px rgba(240,235,225,0.6);
}

/* iOS Safari clips the tall NamesFont caps: the .rv reveal's transform promotes
   each title to a composited layer whose backing store is sized to the font's
   declared ascent — which sits below the actual glyph ink, so the cap tops clip
   until a repaint (e.g. re-foregrounding Safari). A text-shadow forces a larger
   backing store that includes the cap tops; this is why the fabric titles
   (Анкета, Plan of the Day) never clip — their legibility halo does it for free.
   The titles on solid panels need an equally WIDE halo (out to 40px), recoloured
   to each panel so it stays invisible. A narrow 12px halo wasn't enough
   headroom — that is why the clipping came back. */
.greeting-title, .script-title, .footer-names {
    text-shadow:
        0 0 3px  rgba(240,235,225,1),
        0 0 6px  rgba(240,235,225,1),
        0 0 12px rgba(240,235,225,0.95),
        0 0 22px rgba(240,235,225,0.85),
        0 0 40px rgba(240,235,225,0.6);
}
.dc-title { /* sits on .sec-white (#F5F2EC) */
    text-shadow:
        0 0 3px  rgba(245,242,236,1),
        0 0 6px  rgba(245,242,236,1),
        0 0 12px rgba(245,242,236,0.95),
        0 0 22px rgba(245,242,236,0.85),
        0 0 40px rgba(245,242,236,0.6);
}
.ty-script, .ty-names { /* unreported; keep the existing subtle halo */
    text-shadow:
        0 0 2px  rgba(240,235,225,1),
        0 0 12px rgba(240,235,225,1);
}

.sec {
    position: relative;
    padding: clamp(3.6rem, 13vw, 6rem) clamp(1.4rem, 7vw, 2.6rem);
    display: flex; flex-direction: column; align-items: center;
}

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; } .d2 { transition-delay: 0.26s; } .d3 { transition-delay: 0.4s; }

/* ---- Блок 1 · Cover ---- */
.cover {
    min-height: 100svh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: space-between;
    text-align: center;
    padding: 10svh 1.5rem 20svh 1.5rem;
}
.cover-inner { display: flex; flex-direction: column; align-items: center; }
.cover-names {
    font-family: var(--names); font-weight: 400; color: var(--ink);
    font-size: clamp(1.7rem, 8vw, 2.2rem); line-height: 0.9; letter-spacing: 0;
    display: flex; flex-direction: column; align-items: center;
    text-shadow: 0 0 30px rgba(240,235,225,0.85), 0 0 50px rgba(240,235,225,0.6);
}
.cover-names .amp { font-family: var(--names); font-size: 1.1em; margin: 1.6em 0 2.2em; color: var(--accent); font-weight: 400; }

.scroll-cue { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.scroll-cue span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink); font-weight: 400; }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--accent), transparent); position: relative; }
.scroll-cue i::after { content: ''; position: absolute; left: 50%; top: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { top: 0; opacity: 1; } 60% { top: 36px; opacity: 0; } }

/* Section backgrounds
   Fabric (transparent) → Cover, Greeting, Timeline, RSVP, Footer
   Plain cream → Where, Details   |   Plain white → Dress-code          */
.sec-plain  { background: #F0EBE1; }
.sec-white  { background: #F5F2EC; }
.footer     { background: #F0EBE1; }

/* ---- Блок 2 · Greeting + Countdown ---- */
.greeting-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 8vw, 2.6rem); line-height: 1.1; text-align: center; color: var(--ink); margin-bottom: 1.8rem; font-style: normal; white-space: nowrap; }
.countdown-label { font-family: var(--body); font-size: 1rem; letter-spacing: 0.05em; color: var(--ink-soft); text-align: center; margin-top: 2rem; margin-bottom: 1.1rem; font-weight: 400; }
.countdown { display: flex; gap: 0.5rem; justify-content: center; width: 100%; max-width: 360px; margin: 0 auto; }
.cd-cell { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; flex: 1; padding: 0.9rem 0.4rem; background: rgba(255,255,255,0.55); border-radius: 12px; border: 1px solid rgba(123,90,67,0.13); }
.cd-num { font-family: var(--body); font-weight: 400; font-size: clamp(1.8rem, 8vw, 2.4rem); color: var(--ink); line-height: 1; }
.cd-unit { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }

/* ---- map ---- */
.map-link { margin-top: 1.4rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 4px; transition: opacity 0.3s; }
.map-link:active { opacity: 0.6; }
.map-embed { margin-top: 1.8rem; width: min(92vw, 460px); height: 320px; border-radius: 22px; overflow: hidden; background: var(--ph); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Блок 4 · Тайминг ---- */
.timing-title { font-family: var(--display); font-weight: normal; font-size: clamp(1.3rem, 7vw, 2.4rem); text-align: center; color: var(--ink); margin-bottom: 1.8rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.timing { width: 100%; max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; }
.tl-item { display: flex; align-items: stretch; gap: 0; text-align: left; position: relative; }
.tl-left { flex: none; width: 80px; display: flex; flex-direction: column; align-items: center; position: relative; }
.tl-left::after { content: ''; position: absolute; top: 80px; bottom: 0; left: 50%; transform: translateX(-50%); width: 1px; background: var(--ink); z-index: 1; }
.tl-item:last-child .tl-left::after { display: none; }
.tl-icon { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; padding: 0; background: transparent; }
.tl-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 4px rgba(240,235,225,1)) drop-shadow(0 0 8px rgba(240,235,225,0.8)); }
.tl-star-spacer { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 120px; position: relative; z-index: 2; }
.tl-star { width: 14px; height: 14px; object-fit: contain; filter: drop-shadow(0 0 4px rgba(240,235,225,0.8)); }
.tl-right { flex: 1; padding-top: 95px; padding-bottom: 20px; margin-left: -15px; }
.tl-time { display: block; font-family: var(--body); font-weight: 500; font-size: 1.15rem; color: var(--ink); margin-bottom: 0.4rem; line-height: 1.2; }
.tl-text { display: block; font-family: var(--body); font-weight: 400; font-size: 1.15rem; color: var(--ink-soft); line-height: 1.4; }

/* ---- Блок 5 · Dress-code ---- */
.dc-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 8vw, 2.2rem); text-align: center; color: var(--ink); margin-bottom: 1.8rem; letter-spacing: 0; text-transform: none; }

/* ---- Блок 6 · details ---- */
.detail-block { width: 100%; max-width: 400px; text-align: left; margin-top: 2rem; }
.detail-heading { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.detail-text { font-size: 1.15rem; font-weight: 400; line-height: 1.65; color: var(--ink-soft); }
.org-phone { font-family: var(--body); font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none; display: inline-block; margin-top: 0.5rem; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* ---- Блок 7 · RSVP ---- */
.rsvp-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 8vw, 2.2rem); color: var(--ink); text-align: center; line-height: 1.1; margin-top: -0.4rem; margin-bottom: 1.8rem; }
.rsvp-form { width: 100%; max-width: 420px; margin: 2.2rem auto 0; text-align: left; }
.field { border: none; padding: 0; margin-bottom: 1.8rem; }
.field > label, .field legend { font-family: var(--mono); font-size: 1rem; letter-spacing: 0.03em; color: var(--ink); display: block; margin-bottom: 0.7rem; font-weight: 500; }
.field input[type=text] {
    width: 100%; border: 1px solid rgba(59, 52, 47, 0.5);
    border-radius: 5px; background: rgba(255, 255, 255, 0.82);
    padding: 0.75rem 1rem;
    font-family: var(--body); font-size: 1rem; color: var(--ink); font-weight: 400;
    transition: border-color 0.25s, background 0.25s;
}
.field input[type=text]:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.6); }

.radios, .checks { display: flex; flex-direction: column; gap: 0.2rem; }
.opt { display: flex; align-items: center; gap: 0.65rem; cursor: pointer; padding: 0.4rem 0; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt i { width: 19px; height: 19px; flex: none; border: 2px solid var(--ink-soft); border-radius: 50%; position: relative; transition: border-color 0.2s, background 0.2s; background: rgba(255,255,255,0.7); }
.checks .opt i { border-radius: 5px; }
.opt span { font-family: var(--body); font-size: 1rem; color: var(--ink); font-weight: 400; }
.opt input:checked + i { border-color: var(--accent); background: var(--accent); }
.radios .opt input:checked + i::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.checks .opt input:checked + i::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.opt input:focus-visible + i { box-shadow: 0 0 0 3px rgba(123,90,67,0.2); }

.err { display: block; min-height: 1rem; margin-top: 0.45rem; font-family: var(--body); font-style: italic; font-size: 0.95rem; color: #B0533F; }
.rsvp-done { width: 100%; max-width: 420px; margin: 2.2rem auto 0; text-align: center; }
.submit, .rsvp-again {
    display: block; margin: 1.6rem auto 0;
    width: min(80%, 280px); padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.85); color: var(--ink);
    border: 2px solid var(--ink-soft);
    border-radius: 40px; cursor: pointer; -webkit-tap-highlight-color: transparent;
    font-family: var(--mono); font-size: 0.88rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}
.submit:hover, .rsvp-again:hover { background: rgba(59,52,47,0.12); border-color: var(--ink); }

/* ---- footer ---- */
.footer { text-align: center; padding: clamp(4.5rem, 18vw, 7rem) 1.5rem clamp(5rem, 20vw, 8rem); }
.footer-names { font-family: var(--names); color: var(--ink); font-size: clamp(1.3rem, 6vw, 1.8rem); line-height: 2.2; font-weight: 400; }
.footer-names .amp { font-family: var(--names); color: var(--accent); font-weight: 400; }
.footer-meta { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); margin-top: 1.6rem; font-weight: 400; }

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .rv { opacity: 1 !important; transform: none !important; }
}

@font-face {
    font-family: 'NamesFont';
    src: url('../fonts/font1.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
.envelope-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14svh;
    width: 100%;
    height: 100svh;
    padding: 16svh 1rem 8svh;
    justify-content: flex-start;
    transform: none;
}
.intro-title {
    font-family: var(--body);
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: 0.12em;
    font-weight: 300;
}
.envelope-btn {
    background: none; border: none; padding: 0; margin: 0;
    cursor: pointer; position: relative;
    width: 88vw; max-width: 380px;
    animation: float 4s ease-in-out infinite;
    transform-origin: center;
}
.envelope-img {
    width: 100%; height: auto;
    filter: drop-shadow(0 15px 35px rgba(40,30,18,0.3));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.envelope-btn:hover .envelope-img { transform: scale(1.05) translateY(-5px); }
.envelope-btn:active .envelope-img { transform: scale(0.98); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.cover-title {
    font-family: var(--body);
    font-size: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0;
    font-weight: 300;
}
.cover-date-stacked {
    display: flex; flex-direction: column; align-items: center;
    margin-top: 0; margin-bottom: 0; color: var(--ink); line-height: 1.1;
}
.cover-date-stacked .month { font-family: var(--body); font-size: 1rem; font-style: normal; color: var(--ink); text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 0.7rem; font-weight: 300; }
.cover-date-stacked .day { font-family: var(--display); font-size: clamp(2.5rem, 10vw, 3.5rem); font-weight: 400; line-height: 1; margin-bottom: 0.7rem; color: var(--ink); }
.cover-date-stacked .year { font-family: var(--body); font-size: 1.4rem; letter-spacing: 0.2em; color: var(--ink); font-weight: 300; }

/* ---- Dress-code circles ---- */
.dc-group { width: 100%; max-width: 420px; text-align: center; margin-top: 1.2rem; }
.dc-sub-title {
    font-family: var(--body);
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 1.6rem;
    letter-spacing: 0.02em;
}
.dc-circles {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
}
.dc-circle {
    width: min(27vw, 108px);
    height: min(27vw, 108px);
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    box-shadow: 0 4px 18px rgba(59,52,47,0.18);
}
.dc-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-desc { font-family: var(--body); font-size: 1.15rem; color: var(--ink-soft); line-height: 1.6; }

.envelope-group { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.envelope-hint { text-align: center; }

/* =============================================================
   THANK-YOU SCREEN
   ============================================================= */
.thankyou {
    position: fixed; inset: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(130% 130% at 50% 30%, var(--cream-2), var(--cream) 65%, #E7E0D4);
    padding: 2rem; text-align: center;
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.thankyou.visible {
    opacity: 1; pointer-events: auto; visibility: visible;
}
.ty-card {
    display: flex; flex-direction: column; align-items: center;
    max-width: 320px; width: 100%;
}
.thankyou.visible .ty-card {
    animation: floatIn 0.7s var(--ease) both;
}
.ty-script {
    font-family: var(--display);
    font-style: normal; font-weight: 400;
    font-size: clamp(3rem, 14vw, 4.2rem);
    color: var(--accent); line-height: 1;
    display: block; margin-bottom: 1.6rem;
}
.ty-divider {
    width: 48px; height: 1px;
    background: var(--line);
    margin-bottom: 1.6rem;
}
.ty-message {
    font-family: var(--body);
    font-size: 1rem; font-weight: 400;
    line-height: 1.75; color: var(--ink-soft);
    margin-bottom: 2rem;
}
.ty-names {
    font-family: var(--names);
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    font-weight: 400; color: var(--ink);
    line-height: 2.2; margin-bottom: 0;
}
.ty-names .amp { font-family: var(--names); color: var(--accent); font-weight: 400; }
.ty-date {
    font-family: var(--mono);
    font-size: 0.78rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--ink);
    font-weight: 400; margin-top: 1.6rem;
    margin-bottom: 2.6rem;
}
.ty-close {
    font-family: var(--body);
    font-size: 0.8rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); background: none;
    border: 1px solid rgba(94,63,43,0.35);
    border-radius: 100px;
    padding: 0.75rem 2.2rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ty-close:active {
    background: var(--accent); color: #fff;
    border-color: var(--accent);
}


