
/* TAMINYAR RELEASE MODAL V4 */

.ty-release-dialog {
 position:relative;
 isolation:isolate;
 overflow:hidden;
 width:min(530px,100%);
 max-height:calc(100dvh - 28px);
 overflow-y:auto;
 border:1px solid rgba(107,255,220,.32);
 border-radius:28px;
 background:
  radial-gradient(ellipse at 50% -5%,
   rgba(0,230,184,.22),transparent 47%),
  radial-gradient(ellipse at 100% 100%,
   rgba(22,100,180,.12),transparent 45%),
  linear-gradient(145deg,#091d32,#103448 65%,#0b293a);
 box-shadow:
  0 30px 100px rgba(0,0,0,.5),
  0 0 45px rgba(0,220,180,.15);
 transform:translateY(22px) scale(.96);
 opacity:0;
 transition:transform .38s cubic-bezier(.2,.8,.2,1),
            opacity .38s;
 scrollbar-width:thin;
 scrollbar-color:rgba(89,230,190,.3) transparent;
}

.ty-app-release-modal.is-visible .ty-release-dialog {
 transform:translateY(0) scale(1);
 opacity:1;
}

.ty-release-dialog::before {
 content:"";
 position:absolute;
 z-index:4;
 top:0;
 left:-80%;
 width:45%;
 height:2px;
 background:linear-gradient(90deg,
  transparent,#a5ffe8,transparent);
 box-shadow:0 0 20px #4fffd0;
 animation:tyModalTopShine 5s ease-in-out infinite;
 pointer-events:none;
}

@keyframes tyModalTopShine {
 0%,30% {left:-80%}
 100% {left:140%}
}

.ty-release-glow {
 position:absolute;
 z-index:-1;
 top:-125px;
 right:20%;
 width:280px;
 height:280px;
 border-radius:50%;
 background:rgba(0,229,185,.18);
 filter:blur(75px);
 pointer-events:none;
 animation:tyGlowMove 7s ease-in-out infinite alternate;
}

.ty-release-glow-two {
 top:auto;
 bottom:-150px;
 right:auto;
 left:-100px;
 width:220px;
 height:220px;
 background:rgba(42,126,215,.13);
 animation-delay:-3s;
}

@keyframes tyGlowMove {
 to {transform:translate(25px,25px) scale(1.15)}
}

.ty-release-content {
 position:relative;
 padding:32px 32px 23px;
 text-align:center;
 font-family:inherit;
}

.ty-release-badge {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:9px;
 padding:9px 16px;
 border:1px solid rgba(116,255,222,.27);
 border-radius:30px;
 color:#a6ffe7;
 background:rgba(0,225,184,.09);
 font-size:12px;
 font-weight:800;
 letter-spacing:0;
 animation:tyBadgeEnter .7s .05s both;
}

@keyframes tyBadgeEnter {
 from {opacity:0;transform:translateY(-10px)}
 to {opacity:1;transform:translateY(0)}
}

.ty-release-brand-mark {
 display:flex;
 justify-content:center;
 align-items:center;
 width:min(245px,75%);
 height:82px;
 margin:21px auto 18px;
 padding:11px 21px;
 box-sizing:border-box;
 border:1px solid rgba(255,255,255,.75);
 border-radius:19px;
 background:rgba(255,255,255,.97);
 box-shadow:
 0 12px 35px rgba(0,0,0,.17),
 0 0 30px rgba(65,255,215,.13);
 animation:tyLogoEnter .8s .12s both;
}

.ty-release-brand-mark img {
 display:block;
 width:auto;
 height:auto;
 max-width:100%;
 max-height:60px;
 object-fit:contain;
}

@keyframes tyLogoEnter {
 from {opacity:0;transform:translateY(15px) scale(.92)}
 to {opacity:1;transform:translateY(0) scale(1)}
}

.ty-release-heading-wrap {
 margin-top:3px;
}

.ty-release-kicker {
 display:block;
 color:#85cdbf;
 font-size:12px;
 font-weight:700;
 line-height:1.8;
 opacity:0;
 animation:tyTextRise .7s .22s forwards;
}

.ty-release-content h2 {
 display:flex;
 flex-direction:column;
 gap:0;
 margin:9px 0 0;
 color:#fff;
 font-size:clamp(25px,5vw,33px);
 font-weight:950;
 line-height:1.7;
 letter-spacing:-.5px;
}

.ty-release-title-line {
 display:block;
 opacity:0;
 transform:translateY(18px);
 animation:tyTextRise .75s cubic-bezier(.2,.8,.2,1) forwards;
}

.ty-title-one {
 color:#fff;
 animation-delay:.25s;
}

.ty-title-two {
 color:#8fffe0;
 animation-delay:.43s;
}

@keyframes tyTextRise {
 to {opacity:1;transform:translateY(0)}
}

.ty-release-title-underline {
 display:block;
 width:0;
 height:3px;
 margin:5px auto 0;
 border-radius:10px;
 background:linear-gradient(90deg,
  transparent,#37e6b6,#a3ffe6,#37e6b6,transparent);
 box-shadow:0 0 14px rgba(55,230,182,.6);
 animation:tyUnderlineGrow .8s .75s forwards;
}

@keyframes tyUnderlineGrow {
 to {width:105px}
}

.ty-release-lead {
 margin:17px 0 7px;
 color:#fff;
 font-size:15px;
 line-height:2;
 font-weight:850;
 opacity:0;
 animation:tyTextRise .7s .65s forwards;
}

.ty-release-description {
 max-width:400px;
 margin:0 auto 23px;
 color:#c2d9e1;
 font-size:12.5px;
 line-height:2.15;
 font-weight:500;
 opacity:0;
 animation:tyTextRise .7s .8s forwards;
}

.ty-release-options {
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:12px;
 margin-top:19px;
}

.ty-release-download,
.ty-release-myket {
 position:relative;
 display:flex;
 align-items:center;
 justify-content:center;
 gap:9px;
 min-width:0;
 min-height:76px;
 padding:11px 12px;
 box-sizing:border-box;
 border-radius:16px;
 text-align:right;
 text-decoration:none!important;
 color:#fff!important;
 font-family:inherit;
}

.ty-release-download {
 overflow:hidden;
 border:1px solid rgba(104,255,225,.45);
 background:linear-gradient(135deg,#079b91,#14c4a1);
 box-shadow:0 9px 25px rgba(0,190,155,.2);
 transition:transform .25s,box-shadow .25s;
 opacity:0;
 animation:tyTextRise .65s .95s forwards;
}

.ty-release-download::after {
 content:"";
 position:absolute;
 top:-100%;
 left:-100%;
 width:45%;
 height:300%;
 transform:rotate(25deg);
 background:rgba(255,255,255,.19);
 animation:tyButtonShine 5s 1.5s infinite;
}

@keyframes tyButtonShine {
 0%,40% {left:-100%}
 100% {left:160%}
}

.ty-release-download:hover {
 transform:translateY(-3px);
 box-shadow:0 13px 32px rgba(0,190,155,.3);
}

.ty-release-download-icon {
 font-size:28px;
 font-weight:900;
}

.ty-release-button-text {
 display:flex;
 flex:1;
 flex-direction:column;
 gap:5px;
 min-width:0;
}

.ty-release-button-text strong {
 font-size:12px;
 line-height:1.7;
 font-weight:900;
}

.ty-release-button-text small {
 font-size:10px;
 line-height:1.7;
 color:rgba(255,255,255,.85);
}

.ty-release-arrow {
 font-size:17px;
}

.ty-release-myket {
 border:1px solid rgba(77,242,154,.5);
 background:linear-gradient(135deg,#007c43,#00a85d);
 cursor:not-allowed;
 opacity:0;
 animation:tyTextRise .65s 1.08s forwards;
}

.ty-release-myket-icon {
 display:grid;
 place-items:center;
 flex-shrink:0;
}

.ty-release-coming {
 padding:6px 7px;
 border-radius:8px;
 background:rgba(255,255,255,.17);
 color:#fff;
 font-size:9px;
 font-weight:900;
 white-space:nowrap;
}

.ty-release-footer {
 margin-top:20px;
 padding-top:15px;
 border-top:1px solid rgba(255,255,255,.11);
 color:#91afbc;
 font-size:10px;
 line-height:1.9;
}

.ty-release-close {
 z-index:8;
 transition:background .2s,transform .2s;
}

.ty-release-close:hover {
 background:rgba(255,255,255,.19);
 transform:rotate(90deg);
}

.ty-release-download:focus-visible,
.ty-release-close:focus-visible,
.ty-release-myket:focus-visible {
 outline:3px solid #a5ffe8;
 outline-offset:4px;
}

@media(max-width:520px) {
 .ty-release-content {
  padding:31px 17px 20px;
 }

 .ty-release-brand-mark {
  width:min(225px,76%);
  height:75px;
  margin:18px auto 15px;
 }

 .ty-release-brand-mark img {
  max-height:55px;
 }

 .ty-release-content h2 {
  font-size:25px;
 }

 .ty-release-lead {
  font-size:14px;
 }

 .ty-release-description {
  font-size:11.5px;
 }

 .ty-release-options {
  gap:8px;
 }

 .ty-release-download,
 .ty-release-myket {
  min-height:83px;
  padding:9px 7px;
  gap:6px;
 }

 .ty-release-button-text strong {
  font-size:11px;
 }

 .ty-release-button-text small {
  font-size:9px;
 }

 .ty-release-coming {
  font-size:8px;
  padding:5px;
 }
}

@media(max-width:370px) {
 .ty-release-options {
  grid-template-columns:1fr;
 }

 .ty-release-download,
 .ty-release-myket {
  min-height:67px;
  padding:11px 15px;
 }
}

@media(max-height:650px) {
 .ty-release-content {
  padding-top:27px;
  padding-bottom:16px;
 }

 .ty-release-brand-mark {
  height:65px;
  margin:13px auto;
 }

 .ty-release-brand-mark img {
  max-height:47px;
 }

 .ty-release-content h2 {
  font-size:24px;
 }

 .ty-release-lead {
  margin-top:10px;
 }
}

@media(prefers-reduced-motion:reduce) {
 .ty-release-dialog *,
 .ty-release-dialog::before {
  animation:none!important;
  transition:none!important;
  opacity:1!important;
  transform:none!important;
 }
 .ty-release-title-underline {width:105px}
}

/* ===== TAMINYAR MODAL V5 FINAL REFINEMENT ===== */

/* Fixed viewport: no internal or background scrolling */
#ty-app-release-modal[hidden] {
  display: none !important;
}

#ty-app-release-modal.is-visible {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: 100dvh !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Lock background page while modal is visible */
html:has(#ty-app-release-modal.is-visible),
body:has(#ty-app-release-modal.is-visible) {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* Dialog: natural height, centered, no scrollbar */
#ty-app-release-modal .ty-release-dialog {
  width: min(530px, calc(100vw - 24px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 24px) !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  flex: 0 1 auto !important;
  margin: auto !important;
  box-sizing: border-box !important;
}

/* Compact content */
#ty-app-release-modal .ty-release-content {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 19px 24px 15px !important;
  box-sizing: border-box !important;
}

/* Restore and center the announcement badge */
#ty-app-release-modal .ty-release-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  font-size: 11px !important;
  padding: 7px 13px !important;
  margin: 0 auto !important;
}

/* REAL LOGO: perfectly circular */
#ty-app-release-modal .ty-release-brand-mark {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  min-height: 76px !important;
  max-width: 76px !important;
  max-height: 76px !important;
  padding: 10px !important;
  margin: 13px auto 11px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border: 2px solid #66edc6 !important;
  box-shadow:
    0 0 0 5px rgba(65, 230, 184, .09),
    0 8px 25px rgba(0, 0, 0, .2),
    0 0 28px rgba(65, 230, 184, .2) !important;
}

#ty-app-release-modal .ty-release-brand-mark img {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 50% !important;
}

/* Typography */
#ty-app-release-modal .ty-release-kicker {
  font-size: 11px !important;
  line-height: 1.8 !important;
}

#ty-app-release-modal .ty-release-content h2 {
  font-size: clamp(24px, 5vw, 30px) !important;
  line-height: 1.45 !important;
  margin-top: 6px !important;
}

#ty-app-release-modal .ty-release-title-line {
  line-height: 1.5 !important;
}

#ty-app-release-modal .ty-release-lead {
  font-size: 14px !important;
  line-height: 1.8 !important;
  margin: 10px 0 5px !important;
}

#ty-app-release-modal .ty-release-description {
  font-size: 11.5px !important;
  line-height: 1.9 !important;
  margin-bottom: 13px !important;
}

/* Buttons */
#ty-app-release-modal .ty-release-options {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 11px !important;
}

#ty-app-release-modal .ty-release-download,
#ty-app-release-modal .ty-release-myket {
  min-width: 0 !important;
  min-height: 67px !important;
  padding: 9px 10px !important;
  border-radius: 15px !important;
  box-sizing: border-box !important;
}

#ty-app-release-modal .ty-release-button-text strong {
  font-size: 11px !important;
}

#ty-app-release-modal .ty-release-button-text small {
  font-size: 9px !important;
}

/* Footer */
#ty-app-release-modal .ty-release-footer {
  margin-top: 13px !important;
  padding-top: 11px !important;
  font-size: 10px !important;
}

/* Perfectly aligned circular close button */
#ty-app-release-modal .ty-release-close {
  position: absolute !important;
  top: 13px !important;
  left: 13px !important;
  right: auto !important;
  z-index: 30 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;

  margin: 0 !important;
  padding: 0 0 2px !important;

  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  background: rgba(255,255,255,.10) !important;

  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 25px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-align: center !important;

  box-sizing: border-box !important;
  transform: none !important;
  cursor: pointer !important;
}

/* Short screens */
@media (max-height: 600px) {
  #ty-app-release-modal .ty-release-content {
    padding: 12px 18px 10px !important;
  }

  #ty-app-release-modal .ty-release-brand-mark {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    margin: 7px auto !important;
  }

  #ty-app-release-modal .ty-release-content h2 {
    font-size: 22px !important;
  }

  #ty-app-release-modal .ty-release-description {
    margin-bottom: 8px !important;
  }

  #ty-app-release-modal .ty-release-download,
  #ty-app-release-modal .ty-release-myket {
    min-height: 59px !important;
  }

  #ty-app-release-modal .ty-release-footer {
    margin-top: 8px !important;
    padding-top: 7px !important;
  }
}

/* Narrow phones */
@media (max-width: 380px) {
  #ty-app-release-modal .ty-release-content {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }

  #ty-app-release-modal .ty-release-options {
    gap: 6px !important;
  }

  #ty-app-release-modal .ty-release-download,
  #ty-app-release-modal .ty-release-myket {
    padding: 8px 6px !important;
  }
}

