/* Окна уведомлений игры (system/header.php, message()/message_yn() в system/func.php).
   Язык главной: уголь, бронза, золото; Forum / Cormorant Garamond.
   Выделяются над любым экраном: затемнение с размытием, золотое свечение рамки, эмблема по типу. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Forum&display=swap');

.tvx-modal{--n-gold:#e6c47e;--n-bronze:#9a7846;--n-bronze-hi:#d1a85f;--n-text:#f3e6cd;--n-muted:#bcae94;--n-faint:#8f8574;
  position:fixed!important;inset:0;z-index:99999999;width:100%;height:100%;
  background:radial-gradient(120% 80% at 50% 40%,rgba(30,26,18,.55),rgba(6,6,5,.82))!important;
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  font-family:'Forum',Georgia,serif;-webkit-tap-highlight-color:transparent}
.tvx-modal__wrap{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-height:100%;padding:56px 18px 24px}
.tvx-modal *{box-sizing:border-box}
.tvx-modal__card{position:relative;width:min(100%,340px);padding:42px 20px 18px;border:1px solid #c9a061;border-radius:22px;text-align:center;color:var(--n-text);
  background:radial-gradient(130% 70% at 50% 0%,rgba(230,196,126,.17),transparent 62%),linear-gradient(100deg,#34322c,#24251f 68%,#1b1c19);
  box-shadow:0 0 0 6px rgba(20,20,17,.94),0 0 0 7px rgba(209,168,95,.55),0 0 42px rgba(230,196,126,.22),0 26px 60px rgba(0,0,0,.65)}
.tvx-modal[style*="opacity: 1"] .tvx-modal__card,.tvx-modal.is-open .tvx-modal__card{animation:tvx-pop .32s cubic-bezier(.2,.9,.25,1.15) both}
@keyframes tvx-pop{from{opacity:0;transform:translateY(10px) scale(.94)}to{opacity:1;transform:none}}

.tvx-modal__emblem{position:absolute;top:-34px;left:50%;width:66px;height:66px;margin-left:-33px;display:grid;place-items:center;border-radius:50%;color:var(--n-gold);
  background:radial-gradient(circle at 50% 35%,#3a352b,#161613 72%);border:1px solid #c9a061;
  box-shadow:0 0 0 5px rgba(20,20,17,.95),0 0 0 6px rgba(209,168,95,.5),0 0 26px rgba(230,196,126,.4)}
.tvx-modal__emblem::after{content:'';position:absolute;inset:-6px;border-radius:50%;box-shadow:0 0 0 1px rgba(230,196,126,.5);animation:tvx-ring 1.8s ease-out infinite}
@keyframes tvx-ring{from{opacity:.9;transform:scale(1)}to{opacity:0;transform:scale(1.35)}}
.tvx-modal__emblem svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 3px rgba(0,0,0,.7))}

.tvx-modal__eyebrow{color:var(--n-gold);font-size:13px;letter-spacing:.2em;text-transform:uppercase;text-shadow:0 2px 6px #000}
.tvx-modal__eyebrow::before,.tvx-modal__eyebrow::after{content:'\25C6';margin:0 9px;color:var(--n-bronze);font-size:8px;vertical-align:2px}
.tvx-modal__title{margin:6px 0 0;color:#fff6e8;font-family:'Cormorant Garamond',Georgia,serif;font-size:25px;font-weight:700;line-height:1.1}
.tvx-modal .text_msg,.tvx-modal .text_msg1,.tvx-modal__text{margin:10px 0 0!important;padding:0!important;color:var(--n-text)!important;font-family:'Forum',Georgia,serif!important;font-size:18px!important;font-weight:400!important;line-height:1.42!important;text-shadow:none!important;overflow-wrap:anywhere;font-variant-numeric:lining-nums}
.tvx-modal .text_msg b,.tvx-modal .text_msg strong,.tvx-modal .text_msg1 b{color:#fff6e8;font-weight:400}
.tvx-modal .text_msg img,.tvx-modal .text_msg1 img{width:18px!important;height:18px!important;vertical-align:-3px;object-fit:contain}
.tvx-modal .text_msg a,.tvx-modal .text_msg1 a{color:var(--n-gold)!important}

.tvx-modal__actions{display:grid;gap:10px;margin-top:18px}
.tvx-modal__btn{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:50px!important;margin:0!important;padding:0 14px!important;
  border:1px solid #f0d394!important;border-radius:15px!important;cursor:pointer;
  background:linear-gradient(180deg,#e9c97f,#b0813d)!important;color:#25190a!important;
  font-family:'Forum',Georgia,serif!important;font-size:17px!important;font-weight:400!important;letter-spacing:.12em;text-transform:uppercase;text-shadow:0 1px 0 rgba(255,240,200,.45)!important;
  box-shadow:inset 0 1px 0 rgba(255,246,220,.6),0 4px 0 #5f4520,0 8px 18px rgba(0,0,0,.35)!important;transition:transform .12s ease,filter .15s ease;user-select:none}
.tvx-modal__btn:active{transform:translateY(3px);box-shadow:inset 0 1px 0 rgba(255,246,220,.6),0 1px 0 #5f4520!important}
@media (hover:hover){.tvx-modal__btn:hover{filter:brightness(1.06)}}
.tvx-modal__btn--quiet{border-color:#6f5736!important;background:#1d1e1a!important;color:#e6dcc8!important;text-shadow:none!important;box-shadow:inset 0 1px 0 rgba(255,226,169,.08),0 4px 0 #0b0c0b!important}
.tvx-modal__btn--danger{border-color:#d79a83!important;background:linear-gradient(180deg,#c86f5c,#9d4537)!important;color:#fff2e6!important;text-shadow:0 1px 2px rgba(0,0,0,.5)!important;box-shadow:inset 0 1px 0 rgba(255,220,200,.35),0 4px 0 #5a271f!important}
.tvx-modal__more{margin-top:12px;color:var(--n-faint);font-size:13px;letter-spacing:.04em;min-height:0}
.tvx-modal__more:empty{display:none}
.tvx-modal__close{position:absolute;top:10px;right:12px;width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.06);color:var(--n-muted);font-size:22px;line-height:30px;cursor:pointer}

/* оттенки по типу — эмблема и рамка */
.tvx-modal[data-kind="grab"] .tvx-modal__card,.tvx-modal[data-kind="warn"] .tvx-modal__card{border-color:#c98a72;box-shadow:0 0 0 6px rgba(20,20,17,.94),0 0 0 7px rgba(207,106,87,.55),0 0 42px rgba(207,106,87,.25),0 26px 60px rgba(0,0,0,.65)}
.tvx-modal[data-kind="grab"] .tvx-modal__emblem,.tvx-modal[data-kind="warn"] .tvx-modal__emblem{color:#f0b6a3;border-color:#c98a72;box-shadow:0 0 0 5px rgba(20,20,17,.95),0 0 0 6px rgba(207,106,87,.5),0 0 26px rgba(207,106,87,.4)}
.tvx-modal[data-kind="grab"] .tvx-modal__eyebrow,.tvx-modal[data-kind="warn"] .tvx-modal__eyebrow{color:#f0b6a3}
.tvx-modal[data-kind="mail"] .tvx-modal__emblem,.tvx-modal[data-kind="quest"] .tvx-modal__emblem{color:#cbbdf0}

@media (max-width:360px){.tvx-modal__card{padding:40px 14px 16px}.tvx-modal .text_msg,.tvx-modal .text_msg1{font-size:17px!important}}
@media (prefers-reduced-motion:reduce){.tvx-modal__card,.tvx-modal__emblem::after{animation:none!important}}

/* окна заданий (quest_new / quest_step / quest_done): название, похвала, награда */
.tvx-quest__name{color:#fff3dd;font-family:'Cormorant Garamond',Georgia,serif;font-size:22px;font-weight:700;line-height:1.15}
.tvx-quest__line{margin-top:6px;color:#e6c47e;font-size:16px}
.tvx-quest__line a{color:#e6c47e;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.tvx-quest__next{margin-top:6px;color:#e6dcc8;font-size:15px}
.tvx-quest__next b{color:#fff3dd;font-weight:400}
.tvx-quest__outro{margin-top:8px;color:#bcae94;font-size:14px;line-height:1.45}
.tvx-quest__reward{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 10px;margin-top:12px;padding-top:10px;border-top:1px solid #3b3226;color:#e6dcc8;font-size:15px;font-variant-numeric:lining-nums}
.tvx-quest__reward small{flex-basis:100%;color:#8f8574;font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.tvx-quest__exp{color:#b9d39b}
.tvx-quest__secret{color:#e6c47e}
.tvx-quest__coins{display:inline-flex;gap:8px}
.tvx-quest__coins span{display:inline-flex;align-items:center;gap:3px}
.tvx-quest__coins img{width:15px;height:15px}
