:root{
  --bg: #071225;
  --muted: rgba(255,255,255,.78);

  --glass1: rgba(255,255,255,.14);
  --glass2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.18);

  --red: #ff3b5c;
  --gold: #ffd36a;

  --shadow: 0 18px 70px rgba(0,0,0,.60);
  --r: 22px;

  --marquee-dur: 18s;
}

*,
*::before,
*::after{ box-sizing: border-box; }

.ny-ticker{
  position: fixed;
  left: 10px; right: 10px; bottom: 12px;
  z-index: 9999;
  border-radius: var(--r);
  padding: 14px 14px;
  background: linear-gradient(180deg, var(--glass1), var(--glass2));
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}
.ny-ticker.ny-hidden{ display:none; }

.pine{
  position:absolute;
  left:-12px; right:-12px;
  height: 86px;
  pointer-events:none;
  z-index: 2;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.35));
  opacity: .98;
}
.pine.top{ top:-26px; }
.pine.bottom{
  bottom:-38px;
  transform: scaleY(-1);
  opacity:.70;
}
.pine svg{ width:100%; height:100%; display:block; }

.garland{
  position:absolute;
  left: 12px; right: 12px; top: 10px;
  height: 56px;
  pointer-events:none;
  z-index: 3;
  filter: drop-shadow(0 14px 16px rgba(0,0,0,.35));
}
.garland svg{ width:100%; height:100%; display:block; }
.wire{ stroke: rgba(255,255,255,.24); stroke-width: 3.4; fill: none; }
.wire2{ stroke: rgba(0,0,0,.22); stroke-width: 6; fill:none; opacity:.45; }

.ticker-snow{ position:absolute; inset:0; pointer-events:none; z-index: 3; }

.ny-textshield{
  position:absolute;
  left: 10px; right: 10px;
  bottom: 10px;
  top: 44px;
  border-radius: 18px;
  z-index: 4;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.26) 18%, rgba(0,0,0,.26) 82%, rgba(0,0,0,.18));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}

.ny-row{
  position:relative;
  display:flex;
  align-items:center;
  gap: 12px;
  padding-top: 52px;
  z-index: 6;
}

.ny-badge{
  display:flex;
  align-items:center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,59,92,.24), rgba(255,59,92,.12));
  border: 1px solid rgba(255,59,92,.40);
  font-size: 12px;
  letter-spacing: .2px;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.ny-pulse{
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255,59,92,.65);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ transform: scale(1); opacity:1; }
  50%{ transform: scale(1.35); opacity:.75; }
}

.ny-info{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.ny-mainline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.ny-titleline{
  font-size: 15px;
  font-weight: 900;
  letter-spacing:.2px;
  color: var(--text);
}

.ny-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 800;
}
.ny-pill.money{
  background: linear-gradient(180deg, rgba(255,211,106,.95), rgba(255,211,106,.78));
  color: #171717;
  border: none;
}

.ny-marquee{
  min-width:0;
  overflow:hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ny-track{
  display:flex;
  width:max-content;
  gap: 26px;
  align-items:center;
  padding-right: 26px;
  animation: scroll var(--marquee-dur) linear infinite;
}
@keyframes scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.ny-track span{
  white-space:nowrap;
  color: rgba(255,255,255,.86);
  font-size: 13.5px;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.90);
    font-size: 12px;
    font-weight: 700;
  }

  .ny-actions{ display:flex; align-items:center; gap:10px; }

  .ny-btn{
    border:none;
    cursor:pointer;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    color: var(--text);
    font-weight: 900;
    font-size: 13px;
    transition: transform .15s ease, background .15s ease;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    text-decoration: none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .ny-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.15); }
  .ny-btn.gold{
    background: linear-gradient(180deg, rgba(255,211,106,1), rgba(255,211,106,.82));
    color: #171717;
    border: none;
  }

  .ny-x{
    width: 40px; height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.10);
    color: var(--text);
    cursor:pointer;
    font-size: 18px;
    line-height: 1;
    transition: transform .15s ease, background .15s ease;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
  }
  .ny-x:hover{ transform: translateY(-1px); background: rgba(255,255,255,.14); }

  .ny-modal{
    position: fixed;
    inset: 0;
    z-index: 10000;
    display:none;
    place-items:center;
    padding: 18px;
    background: rgba(0,0,0,.58);
    backdrop-filter: blur(3px);
  }
  .ny-modal.open{ display:grid; }

  .ny-card{
    width: min(720px, 100%);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;

    border-radius: 22px;
    background: #071427;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 30px 100px rgba(0,0,0,.75);
    overflow:hidden;
    color: var(--text);
  }

  .ny-head{
    flex: 0 0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
  }

  .ny-title{ font-weight: 900; font-size: 14px; letter-spacing: .2px; }

  .ny-body{
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
  }
  .ny-body b{ color: var(--text); }

  .ny-foot{
    flex: 0 0 auto;
    display:flex;
    justify-content:flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 14px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
  }

  .ny-tabs{
    margin-top: 12px;
    display:flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .ny-tab{
    cursor:pointer;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
  }
  .ny-tab.active{
    background: rgba(255,211,106,.18);
    border-color: rgba(255,211,106,.35);
    color: rgba(255,255,255,.98);
  }

  .ny-panels{ margin-top: 10px; }
  .ny-panel{ display:none; }
  .ny-panel.active{ display:block; }

  .ny-list{
    margin: 0;
    padding-left: 18px;
  }
  .ny-list li{
    margin: 6px 0;
    color: rgba(255,255,255,.86);
  }
  .ny-list b{ color: rgba(255,255,255,.98); }


  .ny-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
  }
  .ny-box{
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
  }
  .ny-box strong{ display:block; color: var(--text); margin-bottom: 6px; }

  .ny-body::-webkit-scrollbar{ width: 10px; }
  .ny-body::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.16);
    border-radius: 999px;
    border: 2px solid rgba(7,20,39,.9);
  }
  .ny-body::-webkit-scrollbar-track{
    background: rgba(255,255,255,.06);
    border-radius: 999px;
  }


  @media (max-width: 560px){


    .ny-ticker{
      left: 8px; right: 8px; bottom: 8px;
      padding: 12px;
          border-radius: 18px;
        }

        .pine{ opacity: .55; height: 70px; }
        .garland{ opacity: .75; height: 44px; top: 8px; }
        .ny-textshield{
          left: 8px; right: 8px;
          top: 40px; bottom: 8px;
          border-radius: 16px;
        }
        .ny-row{
          flex-direction: column;
          align-items: stretch;
          gap: 10px;
          padding-top: 44px;
        }

        .ny-badge{
          align-self: flex-start;
          padding: 8px 10px;
          font-size: 12px;
        }


        .ny-titleline{
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          overflow: hidden;
          font-size: 14px;
          line-height: 1.25;
          max-width: 100%;
        }

        .ny-pill{ padding: 6px 9px; font-size: 12px; }

        .ny-actions{
          width: 100%;
          gap: 10px;
        }
        #nyDetails{
          flex: 1 1 auto;
          min-height: 44px;
        }
        #nyClose{
          width: 44px; height: 44px;
          flex: 0 0 44px;
        }

        .ny-modal{ padding: 10px; }

        .ny-card{
          width: 100%;
          max-width: 100%;
          max-height: calc(100vh - 20px);
          border-radius: 18px;
        }
        .ny-head, .ny-foot{ padding: 12px 12px; }
        .ny-body{ padding: 12px 12px; font-size: 13.5px; }

        .ny-tabs{
          flex-wrap: nowrap;
          overflow-x: auto;
          -webkit-overflow-scrolling: touch;
          gap: 8px;
          padding-bottom: 6px;
          margin-top: 10px;

          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
        }
        .ny-tabs::-webkit-scrollbar{ height: 8px; }
        .ny-tabs::-webkit-scrollbar-thumb{
          background: rgba(255,255,255,.16);
          border-radius: 999px;
        }
        .ny-tab{
          flex: 0 0 auto;
          white-space: nowrap;
        }

        .ny-grid{ grid-template-columns: 1fr; gap: 10px; }

        .ny-foot{ gap: 10px; }
        .ny-foot .ny-btn{
          flex: 1 1 auto;
          min-height: 44px;
        }
      }
      @media (max-width: 420px){
        .ny-track span{ font-size: 12px; }
      }