

:root {
  --bg: #05080c;
  --panel: rgba(10, 18, 27, .82);
  --panel2: rgba(14, 25, 37, .68);
  --line: rgba(77, 166, 255, .18);
  --line-bright: rgba(77, 166, 255, .45);
  --text: #eef6ff;
  --muted: #91a3b5;
  --blue: #4da6ff;
  --blue2: #79bdff;
  --red: #ff3c4d;
  --header: rgba(3, 7, 11, .92);
}


* {
  box-sizing: border-box;
}


html {
  color-scheme: dark;
}


body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(38, 91, 127, .20),
      transparent 36rem
    ),

    radial-gradient(
      ellipse at 10% 65%,
      rgba(14, 65, 49, .32),
      transparent 31rem
    ),

    radial-gradient(
      ellipse at 92% 70%,
      rgba(18, 64, 46, .26),
      transparent 30rem
    ),

    linear-gradient(
      180deg,
      #071016 0%,
      #05090d 48%,
      #030507 100%
    );

  overflow-x: hidden;
}


/* =========================================================
   JUNGLE BACKGROUND
   ========================================================= */

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}


body::before {
  inset: 70px 0 0 0;

  background:

    radial-gradient(
      ellipse at 3% 44%,
      rgba(21, 79, 52, .30) 0 7%,
      transparent 18%
    ),

    radial-gradient(
      ellipse at 13% 34%,
      rgba(19, 61, 43, .28) 0 8%,
      transparent 20%
    ),

    radial-gradient(
      ellipse at 97% 35%,
      rgba(18, 76, 48, .28) 0 8%,
      transparent 19%
    ),

    radial-gradient(
      ellipse at 86% 51%,
      rgba(16, 57, 41, .30) 0 8%,
      transparent 20%
    );

  filter: blur(8px);
}


body::after {
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.30),
      transparent 18%,
      transparent 82%,
      rgba(0,0,0,.30)
    ),

    linear-gradient(
      180deg,
      transparent 65%,
      rgba(0,0,0,.58)
    );
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--header);

  border-bottom:
    1px solid rgba(77, 166, 255, .16);

  backdrop-filter: blur(18px);

  box-shadow:
    0 14px 40px rgba(0,0,0,.28);
}


.header-inner {
  width: min(1500px, calc(100% - 34px));

  min-height: 78px;

  margin: 0 auto;

  display: flex;
  align-items: stretch;
}


.brand {
  min-width: 275px;

  display: flex;
  align-items: center;

  padding-right: 30px;

  font-weight: 950;
  font-size: 1rem;

  letter-spacing: .11em;

  white-space: nowrap;
}


.brand-main {
  color: var(--blue);
  font-size: 1.2rem;
}


.brand-divider {
  margin: 0 9px;

  color: var(--blue2);

  opacity: .9;
}


.brand-name {
  color: #e8eef5;
}


.main-nav {
  flex: 1;

  display: flex;
  align-items: stretch;

  border-left:
    1px solid rgba(255,255,255,.055);
}


.nav-link {
  min-width: 120px;

  padding: 0 18px;

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

  color: #83909c;

  border-right:
    1px solid rgba(255,255,255,.045);

  font-size: .78rem;
  font-weight: 850;

  letter-spacing: .08em;

  text-decoration: none;

  transition:
    color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}


.nav-link:hover,
.nav-link.active {
  color: var(--blue2);

  background:
    linear-gradient(
      180deg,
      rgba(77,166,255,.09),
      rgba(77,166,255,.025)
    );

  box-shadow:
    inset 0 -2px 0 var(--blue);
}

/* =========================================================
   TOP BAR EXTRAS
   ========================================================= */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-drop-button {
  min-width: 105px;
  height: 100%;

  padding: 0 16px;

  border: 0;
  border-right: 1px solid rgba(255,255,255,.045);

  background: transparent;
  color: #83909c;

  font: inherit;
  font-size: .78rem;
  font-weight: 850;

  letter-spacing: .08em;

  cursor: pointer;

  transition:
    color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.nav-drop-button:hover {
  color: var(--blue2);

  background:
    linear-gradient(
      180deg,
      rgba(77,166,255,.09),
      rgba(77,166,255,.025)
    );

  box-shadow:
    inset 0 -2px 0 var(--blue);
}

.drop-arrow {
  margin-left: 5px;
  color: var(--blue2);
}

.nav-drop-menu {
  position: absolute;

  top: calc(100% + 1px);
  left: 0;

  min-width: 190px;

  padding: 8px;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-5px);

  background:
    linear-gradient(
      180deg,
      rgba(8,14,21,.98),
      rgba(4,8,12,.98)
    );

  border:
    1px solid rgba(77,166,255,.20);

  border-radius:
    0 0 12px 12px;

  box-shadow:
    0 25px 55px rgba(0,0,0,.55);

  transition:
    opacity .16s ease,
    transform .16s ease,
    visibility .16s ease;

  z-index: 1200;
}

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.nav-drop-menu a {
  display: block;

  padding:
    12px
    13px;

  border-radius: 8px;

  color: #9ba9b6;

  text-decoration: none;

  font-size: .74rem;
  font-weight: 850;

  letter-spacing: .08em;

  transition:
    color .15s ease,
    background .15s ease;
}

.nav-drop-menu a:hover {
  color: var(--blue2);

  background:
    rgba(77,166,255,.09);
}


/* Push utility items to the far right */

.nav-spacer {
  flex: 0 0 8px;
  min-width: 8px;
}


/* =========================================================
   RIGHT-SIDE ICON BUTTONS
   ========================================================= */

.top-icon {
  width: 58px;

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

  position: relative;

  border-left:
    1px solid rgba(255,255,255,.045);

  color: #8c98a3;

  text-decoration: none;

  transition:
    color .18s ease,
    background .18s ease;
}

.top-icon:hover {
  color: var(--blue2);

  background:
    rgba(77,166,255,.06);
}

.dino-egg-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;

  filter:
    drop-shadow(0 0 5px rgba(77,166,255,.25));

  transition:
    transform .2s ease,
    filter .2s ease;
}

.egg-button:hover .dino-egg-img {
  transform: scale(1.10);

  filter:
    drop-shadow(0 0 9px rgba(77,166,255,.55));
}


.taco-coin-img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  display: block;

  filter:
    drop-shadow(0 0 5px rgba(255,190,60,.20));

  transition:
    transform .2s ease,
    filter .2s ease;
}

.coin-display:hover .taco-coin-img {
  transform:
    scale(1.10)
    rotate(-4deg);

  filter:
    drop-shadow(0 0 8px rgba(255,190,60,.45));
}

/* =========================================================
   DINO EGG
   ========================================================= */

.dino-egg {
  width: 25px;
  height: 31px;

  position: relative;

  display: block;

  border-radius:
    48% 48%
    44% 44%
    / 58% 58% 42% 42%;

  border:
    2px solid #96a6b5;

  background:
    radial-gradient(
      circle at 33% 28%,
      rgba(255,255,255,.30),
      transparent 18%
    ),
    linear-gradient(
      145deg,
      #9ba7b0,
      #3d4750 70%
    );

  box-shadow:
    inset -4px -5px 7px rgba(0,0,0,.28),
    0 0 10px rgba(77,166,255,.07);

  font-size: 0;
}

.dino-egg::before,
.dino-egg::after {
  content: "";

  position: absolute;

  border-radius: 50%;

  background:
    rgba(30,38,45,.60);
}

.dino-egg::before {
  width: 5px;
  height: 7px;

  left: 6px;
  top: 9px;

  transform: rotate(-20deg);
}

.dino-egg::after {
  width: 4px;
  height: 5px;

  right: 5px;
  top: 16px;

  transform: rotate(20deg);
}

.egg-button:hover .dino-egg {
  border-color: var(--blue2);

  box-shadow:
    inset -4px -5px 7px rgba(0,0,0,.25),
    0 0 14px rgba(77,166,255,.30);
}


/* =========================================================
   TACO COINS
   ========================================================= */

.coin-display {
  min-width: 118px;

  padding:
    0
    14px;

  display: flex;
  align-items: center;

  gap: 10px;

  border-left:
    1px solid rgba(255,255,255,.045);

  color: var(--text);

  text-decoration: none;

  transition:
    background .18s ease;
}

.coin-display:hover {
  background:
    rgba(255,191,65,.055);
}

.taco-coin {
  width: 31px;
  height: 31px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 50%;

  border:
    2px solid #ffd66d;

  background:
    radial-gradient(
      circle at 35% 28%,
      #fff0a8,
      #f2b83f 42%,
      #9c681a 78%
    );

  box-shadow:
    inset 0 0 0 3px rgba(92,55,9,.28),
    0 0 10px rgba(255,190,60,.18);
}

.stego-symbol {
  color: #4c360f;

  font-size: 1rem;
  font-weight: 950;

  transform:
    rotate(-7deg)
    scaleX(1.15);
}

.coin-info {
  display: grid;

  gap: 0;

  line-height: 1.05;
}

.coin-info strong {
  color: #f7d276;

  font-size: .88rem;
}

.coin-info small {
  color: #8f9ba5;

  font-size: .56rem;
  font-weight: 850;

  letter-spacing: .08em;

  white-space: nowrap;
}


/* =========================================================
   NOTIFICATIONS
   ========================================================= */

.bell-icon {
  position: relative;

  width: 17px;
  height: 18px;

  border:
    2px solid currentColor;

  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border-bottom: 0;

  font-size: 0;
}

.bell-icon::before {
  content: "";

  position: absolute;

  left: -4px;
  right: -4px;
  bottom: -4px;

  height: 2px;

  background: currentColor;

  border-radius: 2px;
}

.bell-icon::after {
  content: "";

  position: absolute;

  width: 4px;
  height: 4px;

  left: 50%;
  bottom: -8px;

  transform: translateX(-50%);

  border-radius: 50%;

  background: currentColor;
}

.notification-dot {
  position: absolute;

  width: 7px;
  height: 7px;

  top: 20px;
  right: 17px;

  border-radius: 50%;

  background: var(--red);

  box-shadow:
    0 0 8px rgba(255,60,77,.75);
}

.notification-wrap{position:relative;display:flex;align-items:stretch}
.notification-button{position:relative;border:0;background:transparent;font:inherit}
.notification-badge{
  position:absolute;
  top:7px;
  right:7px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  font-size:10px;
  line-height:18px;
  z-index:3;
  box-shadow:0 0 12px rgba(77,166,255,.45);
}
.notification-panel{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:12000;
  width:min(360px,calc(100vw - 24px));
  max-height:min(480px,calc(100vh - 110px));
  display:none;
  overflow:hidden;
  border:1px solid rgba(77,166,255,.35);
  border-radius:14px;
  background:rgba(7,12,19,.99);
  box-shadow:0 22px 70px rgba(0,0,0,.65);
  backdrop-filter:blur(16px);
}
.notification-panel.open{display:block}
.notification-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 14px;
  border-bottom:1px solid rgba(77,166,255,.16);
  color:#dcecff;
  font-size:11px;
  letter-spacing:.08em;
}
.notification-panel-head button{
  width:31px;height:31px;border:1px solid rgba(120,160,190,.24);border-radius:9px;
  background:#0b141d;color:#8fa2b2;font-size:19px;cursor:pointer
}
.notification-list{max-height:410px;overflow-y:auto;padding:8px}
.notification-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 10px;
  border:1px solid rgba(77,166,255,.12);
  border-radius:10px;
  background:rgba(77,166,255,.035);
  color:#dce7ef;
  text-align:left;
  cursor:pointer;
  margin-bottom:7px;
}
.notification-item:hover{border-color:rgba(77,166,255,.42);background:rgba(77,166,255,.08)}
.notification-item-icon{font-size:19px}
.notification-item-main{min-width:0;flex:1}
.notification-item-name{font-size:12px;font-weight:950;color:#eaf4fc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notification-item-sub{margin-top:3px;color:#8095a7;font-size:10px}
.notification-item-count{
  min-width:24px;height:24px;padding:0 7px;display:grid;place-items:center;border-radius:999px;
  background:#4da6ff;color:#061019;font-size:10px;font-weight:1000
}
.notification-empty{padding:24px 12px;text-align:center;color:#687d8e;font-size:11px}



/* =========================================================
   ACCOUNT
   ========================================================= */

.account-dropdown {
  min-width: 190px;
}

.account-button {
  min-width: 190px;

  padding:
    0
    14px;

  display: flex;
  align-items: center;

  gap: 10px;

  border-left:
    1px solid rgba(255,255,255,.045);
}

.account-avatar {
  width: 32px;
  height: 32px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 50%;

  border:
    1px solid rgba(77,166,255,.35);

  background:
    linear-gradient(
      145deg,
      #182938,
      #0b131b
    );

  color: var(--blue2);

  font-size: .82rem;
  font-weight: 950;

  box-shadow:
    inset 0 0 12px rgba(77,166,255,.08);
}

.account-text {
  display: grid;

  gap: 2px;

  text-align: left;
}

.account-text strong {
  color: #dce7ef;

  font-size: .70rem;

  letter-spacing: .08em;
}

.account-text small {
  color: #71808c;

  font-size: .55rem;

  letter-spacing: .06em;
}

.account-button .drop-arrow {
  margin-left: auto;
}

.account-menu {
  left: auto;
  right: 0;

  min-width: 210px;
}


/* =========================================================
   HEADER WIDTH TUNING
   ========================================================= */

@media (max-width: 1380px) {

  .brand {
    min-width: 235px;
  }

  .nav-link {
    min-width: 104px;

    padding:
      0
      12px;
  }

  .coin-display {
    min-width: 105px;
  }

  .account-dropdown,
  .account-button {
    min-width: 165px;
  }

}


@media (max-width: 1120px) {

  .nav-spacer {
    display: none;
  }

  .account-dropdown {
    min-width: 175px;
  }

}

/* =========================================================
   TOP NAV SPACING / KEEP MINI GAMES ON ONE LINE
   ========================================================= */

.main-nav {
  gap: 8px;
}

.main-nav .nav-link {
  white-space: nowrap;
}

/* Remove the big empty gap before the egg/rewards area */
.nav-spacer {
  flex: 0 0 8px;
}

/* Keep Mini Games compact */
.main-nav a {
  white-space: nowrap;
}

/* =========================================================
   ACCOUNT PAGE
   ========================================================= */

.account-page {
  max-width: 1000px;
  margin: 0 auto;
}

.account-connections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.connection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 24px;

  background: rgba(12, 19, 25, 0.88);
  border: 1px solid rgba(90, 150, 190, 0.22);
  border-radius: 14px;
}

.connection-card small {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.connection-card h3 {
  margin: 7px 0 4px;
}

.connection-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.connect-button {
  flex-shrink: 0;

  padding: 12px 16px;
  border-radius: 8px;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;

  border: 1px solid rgba(255, 255, 255, 0.12);

  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.connect-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.discord-connect {
  background: #5865f2;
  color: white;
}

.steam-connect {
  background: #182a3a;
  color: white;
}

.account-preview {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-top: 18px;
  padding: 22px;

  background: rgba(12, 19, 25, 0.72);
  border: 1px solid rgba(90, 150, 190, 0.18);
  border-radius: 14px;
}

.account-preview-avatar {
  width: 62px;
  height: 62px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: #10283b;
  border: 1px solid var(--accent);

  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
}

.account-preview small {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.account-preview h3 {
  margin: 5px 0;
}

.account-preview p {
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   PLAYER PROFILE
   ========================================================= */


/* MARKETPLACE */
.marketplace-page { max-width:none; }
.page-panel.marketplace-page {
  width:100%;
  max-width:1400px;
  box-sizing:border-box;
  margin-left:auto;
  margin-right:auto;
  position:relative;
  left:auto;
  right:auto;
  transform:none;
}
.market-title-row {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-top:8px;
}
.market-title-row p { color:#8397a9; }
.market-wallet {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid rgba(255,199,73,.25);
  border-radius:12px;
  background:rgba(255,199,73,.045);
}
.market-wallet img { width:38px;height:38px;object-fit:contain; }
.market-wallet small {
  display:block;color:#8e7a4b;font-size:9px;font-weight:950;letter-spacing:.12em;
}
.market-wallet strong { color:#f4cf70;font-size:19px; }

/* CLEAN MARKETPLACE HEADER */
.market-title-row.market-title-row-clean {
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  align-items:center;
  gap:28px;
  width:100%;
}

.market-title-copy-clean {
  min-width:0;
}

.market-title-copy-clean h1 {
  margin-bottom:14px;
}

.market-subtitle-line-clean {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  color:#8397a9;
}

.market-balance-clean {
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  flex:0 0 auto;
}

.market-balance-clean img {
  width:26px;
  height:26px;
  object-fit:contain;
  flex:0 0 26px;
}

.market-balance-clean small {
  color:#8e7a4b;
  font-size:8px;
  font-weight:950;
  letter-spacing:.11em;
}

.market-balance-clean strong {
  color:#f4cf70;
  font-size:17px;
  line-height:1;
}

.market-art-clean {
  display:block;
  width:230px;
  height:230px;
  object-fit:contain;
  justify-self:end;
  align-self:center;
  margin:-24px 0 -34px 0;
}

@media(max-width:1050px) {
  .market-title-row.market-title-row-clean {
    grid-template-columns:1fr;
  }

  .market-art-clean {
    width:180px;
    height:180px;
    justify-self:start;
    margin:0 0 -16px 0;
    order:-1;
  }
}

.market-notice {
  margin:18px 0;padding:12px 14px;
  border:1px solid rgba(77,166,255,.2);
  border-radius:11px;color:#8fa3b7;
  background:rgba(77,166,255,.035);font-size:12px;
}
.market-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;margin-top:18px;
}
.market-dino-card {
  padding:17px;border:1px solid rgba(77,166,255,.2);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(15,28,40,.97),rgba(6,13,20,.98));
}
.market-card-head {
  display:block;
  min-width:0;
}
.market-card-head small,.market-stat-grid small,.market-mutations small {
  color:#6f8497;font-size:9px;font-weight:950;letter-spacing:.13em;
}
.market-card-head h3 {
  margin:5px 0 7px;
  width:100%;
  max-width:100%;
  font-size:clamp(15px,1.45vw,22px);
  line-height:1.08;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.market-price {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  color:#f2cb67;
  min-width:0;
  max-width:100%;
}
.market-price img {
  width:26px;
  height:26px;
  flex:0 0 26px;
  object-fit:contain;
}
.market-price strong {
  min-width:0;
  font-size:clamp(14px,1.35vw,20px);
  line-height:1;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.market-subname{
  margin-top:7px;
  color:#c7d5e0;
  font-size:12px;
  font-weight:900;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.market-expiry{
  margin-top:5px;
  color:#75889a;
  font-size:9px;
  font-weight:850;
  letter-spacing:.07em;
}
.market-stat-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;margin-top:17px;
}
.market-stat-grid>div,.market-mutations {
  padding:9px;border:1px solid rgba(255,255,255,.055);
  border-radius:9px;background:rgba(255,255,255,.018);
}
.market-stat-grid strong,.market-mutations strong {
  display:block;margin-top:4px;font-size:12px;
}
.market-mutations { margin-top:8px; }
.market-paused {
  margin-top:9px;color:#e6bc47;font-size:10px;font-weight:950;letter-spacing:.08em;
}
.market-seller { margin-top:13px;color:#708496;font-size:11px; }
.market-actions { margin-top:14px; }
.market-button {
  width:100%;padding:10px;
  border:1px solid rgba(77,166,255,.34);
  border-radius:9px;background:rgba(77,166,255,.07);
  color:#dce7ef;font-weight:950;cursor:pointer;
}
.market-button:disabled { opacity:.42;cursor:not-allowed; }
.market-button.danger {
  border-color:rgba(255,76,76,.28);
  background:rgba(255,76,76,.055);
}
.market-empty {
  grid-column:1/-1;padding:42px 20px;text-align:center;
  border:1px dashed rgba(77,166,255,.18);
  border-radius:14px;color:#6d8193;
}
@media(max-width:1450px){
  .market-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(max-width:1180px){
  .market-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:900px){
  .page-panel.marketplace-page{width:calc(100vw - 40px);}
  .market-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .market-title-row{align-items:flex-start;flex-direction:column;}
  .market-grid{grid-template-columns:1fr;}
}

.player-profile-page {
  position:relative;
  box-sizing:border-box;

  /*
    Keep the profile wide enough for the right rail,
    but do not stretch all the way to the viewport edge.
  */
  width:min(1420px, calc(100vw - 90px));
  max-width:none;
  min-height:980px;
}

.page-panel.player-profile-page {
  width:min(1420px, calc(100vw - 90px));
  max-width:none;
}

.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  margin: 22px 0;
  border: 1px solid rgba(77,166,255,.3);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 10%, rgba(77,166,255,.12), transparent 35%),
    rgba(8,15,24,.78);
}

.profile-hero-avatar {
  width: 94px;
  height: 94px;
  flex: 0 0 94px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(77,166,255,.65);
  box-shadow: 0 0 28px rgba(77,166,255,.15);
}

.profile-hero-fallback {
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 950;
  color: #6eb8ff;
}

.profile-hero-copy {
  min-width: 0;
  flex: 1;
}

.profile-hero-copy small {
  color: #6da4d1;
  font-weight: 950;
  letter-spacing: .14em;
}

.profile-hero-copy h2 {
  margin: 5px 0 4px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.profile-steam-line {
  color: #7f94a7;
  font-size: 13px;
}

.profile-status-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(74,222,128,.3);
  border-radius: 999px;
  color: #4ade80;
  background: rgba(74,222,128,.06);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 18px;
}

.profile-stat-card {
  min-height: 126px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.profile-stat-label {
  color: #738ca1;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
}

.profile-stat-value {
  margin-top: 8px;
  color: #ecf5fc;
  font-size: 31px;
  font-weight: 950;
  line-height: 1.05;
}

.profile-stat-value.long {
  font-size: 22px;
}

.profile-stat-sub {
  margin-top: 7px;
  color: #637788;
  font-size: 11px;
  line-height: 1.35;
}

.profile-stat-card.combat-pending {
  border-color: rgba(255,183,77,.2);
}

.profile-stat-card.combat-pending .profile-stat-sub {
  color: #a9875e;
}

.profile-section {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(77,166,255,.18);
  border-radius: 16px;
  background: rgba(8,14,22,.65);
}

.profile-section h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.profile-dino-row {
  display: grid;
  grid-template-columns: minmax(150px,1fr) 2fr 90px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-dino-name {
  font-weight: 900;
}

.profile-dino-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.profile-dino-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3a84bc, #6eb8ff);
}

.profile-dino-time {
  color: #8ca0b2;
  font-size: 12px;
  text-align: right;
}

.profile-empty {
  color: #667b8d;
  font-size: 13px;
}

.profile-pm-layout{display:grid;grid-template-columns:minmax(210px,.72fr) minmax(0,1.65fr);gap:12px;min-height:390px}
.profile-pm-friends,.profile-pm-chat{min-width:0;overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(255,255,255,.018)}
.profile-pm-friends{padding:10px}.profile-pm-kicker{margin:2px 2px 9px;color:#71879a;font-size:9px;font-weight:950;letter-spacing:.13em}
.profile-pm-friend-list{display:grid;gap:7px}.profile-pm-friend{width:100%;display:grid;gap:3px;padding:10px 11px;border:1px solid rgba(77,166,255,.16);border-radius:10px;background:rgba(77,166,255,.035);color:#dce7ef;text-align:left;cursor:pointer}
.profile-pm-friend:hover,.profile-pm-friend.active{border-color:rgba(77,166,255,.55);background:rgba(77,166,255,.09)}
.profile-pm-friend-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:950}
.profile-pm-friend-status{font-size:9px;font-weight:850;letter-spacing:.06em}.profile-pm-friend-status.online{color:#4ade80}.profile-pm-friend-status.offline{color:#687b8c}
.profile-pm-chat{display:flex;flex-direction:column}.profile-pm-chat-head{min-height:52px;display:flex;align-items:center;padding:11px 13px;border-bottom:1px solid rgba(77,166,255,.12);background:rgba(77,166,255,.035)}
.profile-pm-chat-name{color:#e8f2fa;font-size:13px;font-weight:950}.profile-pm-messages{flex:1;min-height:260px;max-height:430px;overflow-y:auto;padding:13px}
.profile-pm-empty{padding:18px;color:#667b8d;font-size:12px;line-height:1.5;text-align:center}
.profile-pm-message{max-width:78%;width:fit-content;margin:0 0 9px;padding:9px 11px;border:1px solid rgba(255,255,255,.07);border-radius:11px 11px 11px 3px;background:rgba(255,255,255,.035)}
.profile-pm-message.mine{margin-left:auto;border-color:rgba(77,166,255,.24);border-radius:11px 11px 3px 11px;background:rgba(77,166,255,.10)}
.profile-pm-message-text{color:#d8e4ee;font-size:12px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.profile-pm-message-time{margin-top:5px;color:#607588;font-size:9px}
.profile-pm-compose{display:flex;gap:8px;padding:11px;border-top:1px solid rgba(77,166,255,.12)}.profile-pm-input{flex:1;min-width:0;padding:10px 11px;border:1px solid rgba(77,166,255,.24);border-radius:9px;outline:none;background:rgba(255,255,255,.035);color:#e8f0f7}.profile-pm-input:disabled{opacity:.45}
.profile-pm-send{min-width:76px;padding:9px 12px;border:1px solid rgba(77,166,255,.38);border-radius:9px;background:rgba(77,166,255,.10);color:#e6f2fc;font-size:10px;font-weight:950;letter-spacing:.06em;cursor:pointer}.profile-pm-send:disabled{opacity:.42;cursor:not-allowed}
.friend-remove-icon{width:36px;height:34px;flex:0 0 36px;display:inline-grid;place-items:center;padding:0}.friend-remove-icon svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){.profile-pm-layout{grid-template-columns:1fr}.profile-pm-friend-list{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-pm-messages{min-height:300px;max-height:430px}}
@media(max-width:430px){.profile-pm-friend-list{grid-template-columns:1fr}}

@media (max-width: 900px) {
  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 560px) {
  .profile-hero-card {
    align-items: flex-start;
  }

  .profile-hero-avatar {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
  }

  .profile-stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-dino-row {
    grid-template-columns: 1fr;
  }

  .profile-dino-time {
    text-align: left;
  }
}


@media (max-width: 760px) {
  .account-connections {
    grid-template-columns: 1fr;
  }

  .connection-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

.connected-card {
  border-color: rgba(52, 211, 153, .35);
}

.connected-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.discord-avatar,
.profile-avatar {
  width: 64px;
  height: 64px;

  object-fit: cover;

  border-radius: 50%;

  border:
    2px solid rgba(88, 101, 242, .75);

  box-shadow:
    0 0 18px rgba(88, 101, 242, .22);
}

.connected-status {
  color: #4ade80 !important;
  font-weight: 900;
}

.discord-handle {
  margin: 5px 0 0 !important;
  font-size: 13px !important;
  color: var(--muted) !important;
}
.account-avatar-img {
  object-fit: cover;
  padding: 0;
}

.top-connected {
  color: #4ade80 !important;
  font-weight: 800;
}

/* =========================================================
   FLOATING DISCORD BUTTON
   ========================================================= */

.discord-float {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 1000;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 10px 16px 10px 10px;

  border:
    1px solid rgba(88, 101, 242, .55);

  border-radius: 14px;

  background:
    rgba(9, 14, 22, .94);

  color: #eef6ff;

  text-decoration: none;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, .45),
    0 0 20px rgba(88, 101, 242, .15);

  backdrop-filter: blur(12px);

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.discord-float:hover {
  transform: translateY(-3px);

  border-color:
    rgba(88, 101, 242, .95);

  box-shadow:
    0 12px 35px rgba(0, 0, 0, .5),
    0 0 28px rgba(88, 101, 242, .28);
}

.discord-float-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: #5865F2;

  font-size: 20px;
  font-weight: 900;
}
.discord-logo {
  width: 25px;
  height: 25px;

  display: block;

  color: white;
}

.discord-float-text {
  display: grid;
  gap: 1px;
}

.discord-float-text small {
  color: #91a3b5;

  font-size: .52rem;
  font-weight: 800;

  letter-spacing: .12em;
}

.discord-float-text strong {
  font-size: .78rem;
  font-weight: 950;

  letter-spacing: .08em;
}


/* =========================================================
   FLOATING FRIENDS + CHAT
   ========================================================= */


/* Hide legacy chat/system acknowledgement text that can leak behind the CHAT button. */
#chat-system-message,
.chat-system-message,
.chat-system-status,
.chat-system-alert,
.social-system-message,
[data-chat-system-message],
[data-chat-system-status]{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

.social-float-button {
  position: fixed;
  z-index: 2147483000;
  border: 1px solid rgba(77,166,255,.5);
  border-radius: 14px;
  background: rgba(9,14,22,.96);
  color: #eef6ff;
  box-shadow: 0 8px 30px rgba(0,0,0,.48);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-weight: 950;
  letter-spacing: .04em;
  transition: transform .16s ease, border-color .16s ease;
}

.social-float-button:hover {
  transform: translateY(-2px);
  border-color: rgba(77,166,255,.9);
}

.friends-float-button {
  right: 22px;
  bottom: 94px;
  min-width: 132px;
  padding: 11px 14px;
}

.chat-float-button {
  left: 22px;
  bottom: 22px;
  min-width: 118px;
  padding: 11px 14px;
}

.social-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 999px;
  background: #4da6ff;
  color: #071019;
  font-size: 11px;
  font-weight: 950;
}

.social-panel {
  position: fixed;
  z-index: 2147483646 !important;
  width: min(390px, calc(100vw - 28px));
  max-height: none;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(77,166,255,.35);
  border-radius: 16px;
  background: #070c13 !important;
  color: #dce7ef;
  box-shadow: 0 18px 55px rgba(0,0,0,.62);
  backdrop-filter: blur(15px);
}

#chat-panel,
#friends-panel {
  position: fixed !important;
  z-index: 2147483646 !important;
  background: #070c13 !important;
  isolation: isolate !important;
}

#chat-panel * ,
#friends-panel * {
  position: relative;
  z-index: 1;
}


.social-panel.open {
  display: flex;
}

.friends-panel {
  right: 22px;
  bottom: 150px;
  height: min(760px, calc(100vh - 175px));
}

.chat-panel {
  left: 22px;
  bottom: 78px;
  width: min(430px, calc(100vw - 28px));
  height: min(760px, calc(100vh - 105px));
}

.social-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid rgba(77,166,255,.18);
  background: rgba(77,166,255,.05);
}

.social-panel-title {
  font-weight: 950;
  letter-spacing: .08em;
}

.social-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  color: #ccd8e4;
  cursor: pointer;
}

.social-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.social-section-title {
  margin: 13px 0 7px;
  color: #738ba0;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  margin-bottom: 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}



/* Keep online friend names bold; soften offline friend names only */
.friend-name-online{font-weight:900;}
.social-name.social-name-link.friend-name-offline{font-weight:400 !important;}

/* Long friend-name protection: widen panel and reserve button space */
#friends-panel{
  width:min(465px, calc(100vw - 24px)) !important;
}
#friends-panel .social-row{
  display:flex;
  align-items:center;
  gap:8px;
  padding-right:1px;
}
#friends-panel .social-actions{
  margin-left:auto !important;
  flex:0 0 auto;
}
#friends-panel .social-row-main{
  min-width:0;
  width:auto;
  max-width:none;
  flex:1 1 auto;
}
#friends-panel .social-name-link{
  display:block;
  width:100%;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media (max-width:520px){
  #friends-panel .social-row-main{
    min-width:0;
    flex:1 1 auto;
  }
}
#friends-panel .social-mini-button,
#friends-panel .friend-remove-icon{
  flex:0 0 auto;
}
@media (max-width:620px){
  #friends-panel{
    width:calc(100vw - 16px) !important;
  }
}
.friends-count-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:8px;
  padding:2px 7px;
  border:1px solid rgba(53,208,127,.28);
  border-radius:999px;
  background:rgba(53,208,127,.06);
  color:#4ade80;
  font-size:9px;
  font-weight:950;
  letter-spacing:.08em;
  vertical-align:middle;
}
.friends-offline-divider .friends-offline-count{
  color:#8a9aa8;
  font-weight:950;
  letter-spacing:.08em;
}

.friends-offline-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 2px 10px;
  color:#6f8191;
  font-size:10px;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.friends-offline-divider::before,
.friends-offline-divider::after{
  content:"";
  height:1px;
  flex:1;
  background:rgba(111,129,145,.34);
}

.social-player-avatar-wrap{
  position:relative;
  width:42px;
  height:42px;
  flex:0 0 42px;
}
.social-player-avatar{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(77,166,255,.5);
  border-radius:50%;
  background:#07121b;
  color:#6eb8ff;
  font-size:20px;
  object-fit:cover;
  box-shadow:0 0 14px rgba(77,166,255,.10);
}
.social-level-bubble{
  position:absolute;
  right:-4px;
  bottom:-3px;
  min-width:20px;
  height:20px;
  padding:0 4px;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  border:2px solid #0a1119;
  border-radius:999px;
  background:#ff8a24;
  color:#1b0b00;
  font-size:9px;
  line-height:1;
  font-weight:1000;
  box-shadow:0 0 8px rgba(255,138,36,.42);
}

.social-row-main {
  flex: 1;
  min-width: 0;
}

.social-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.social-name-link {
  color: #dce7ef;
  text-decoration: none;
  cursor: pointer;
}

.social-name-link:hover {
  color: #79bdff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-sub {
  margin-top: 2px;
  color: #708496;
  font-size: 11px;
}

.social-online {
  color: #4ade80;
}

.social-offline {
  color: #657482;
}

.social-mini-button {
  border: 1px solid rgba(77,166,255,.35);
  border-radius: 8px;
  background: rgba(77,166,255,.08);
  color: #dce7ef;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.social-mini-button:hover {
  border-color: rgba(77,166,255,.8);
}

.social-mini-button.danger {
  border-color: rgba(255,76,76,.28);
  background: rgba(255,76,76,.055);
}

.friend-search-wrap {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}

.friend-search-input,
.chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(77,166,255,.25);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: #e8f0f7;
  padding: 10px 11px;
  outline: none;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  padding: 12px;
}



/* Compact global chat cards */
#chat-messages .chat-message{
  padding:8px 10px !important;
  margin-bottom:6px !important;
}
#chat-messages .chat-message-grid{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  column-gap:10px;
  align-items:start;
}
#chat-messages .chat-message-content{
  min-width:0;
}
#chat-messages .chat-message-content .chat-text{
  margin-top:4px !important;
}
#chat-messages .chat-player-head{
  margin-bottom:0 !important;
}
#chat-messages .chat-text{
  margin-top:2px !important;
}
.chat-player-head{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:7px;
}
.chat-player-avatar-wrap{
  position:relative;
  width:40px;
  height:40px;
  flex:0 0 40px;
}
.chat-player-avatar{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(77,166,255,.45);
  border-radius:50%;
  background:#07121b;
  color:#6eb8ff;
  font-size:17px;
  object-fit:cover;
}
.chat-level-bubble{
  position:absolute;
  right:-4px;
  bottom:-3px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  border:2px solid #0a1119;
  border-radius:999px;
  background:#ff8a24;
  color:#1b0b00;
  font-size:8px;
  font-weight:1000;
}
.chat-player-meta{
  min-width:0;
  display:flex;
  flex:1 1 auto;
  flex-direction:row;
  align-items:center;
  gap:7px;
  overflow:hidden;
}
.chat-player-meta .chat-author{
  margin-bottom:0;
  flex:0 1 auto;
  min-width:0;
  max-width:58%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-player-species{
  margin-top:0;
  flex:0 1 auto;
  min-width:0;
  max-width:42%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:9px;
  font-weight:850;
  letter-spacing:.03em;
}

.chat-message {
  margin-bottom: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.055);
}

.chat-author {
  display: inline-block;
  margin-bottom: 4px;
  color: #6eb8ff;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.chat-author:hover {
  text-decoration: underline;
}

.chat-text {
  color: #d8e4ed;
  line-height: 1.4;
  word-break: break-word;
}
.chat-admin-delete{
  margin-left:auto;
  flex:0 0 auto;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,76,76,.38);
  border-radius:8px;
  background:rgba(255,76,76,.07);
  color:#ff7d86;
  font-size:14px;
  font-weight:950;
  cursor:pointer;
}
.chat-admin-delete:hover{
  background:rgba(255,76,76,.15);
  border-color:rgba(255,76,76,.65);
}

.chat-time {
  margin-top: 4px;
  color: #596b7a;
  font-size: 10px;
}

.chat-compose {
  display: flex;
  gap: 8px;
  padding: 11px;
  border-top: 1px solid rgba(77,166,255,.16);
}

.chat-user-menu {
  position: fixed;
  z-index: 1100;
  display: none;
  min-width: 180px;
  padding: 7px;
  border: 1px solid rgba(77,166,255,.35);
  border-radius: 11px;
  background: rgba(8,13,20,.99);
  box-shadow: 0 12px 36px rgba(0,0,0,.55);
}

.chat-user-menu.open {
  display: grid;
  gap: 5px;
}

.chat-user-menu button {
  text-align: left;
  border: 0;
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  color: #dce7ef;
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 800;
}

.chat-user-menu button:hover {
  background: rgba(77,166,255,.12);
}




/* Friends drawer direct-message action */
.friend-dm-button{
  min-width:42px;
  text-align:center;
  color:#dce7ef;
  border-color:rgba(139,92,246,.42);
  background:rgba(139,92,246,.07);
}
.friend-dm-button:hover{
  border-color:rgba(139,92,246,.72);
  background:rgba(139,92,246,.14);
}
.taco-tp-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(5px);
}

.taco-tp-modal.open {
  display: flex;
}

.taco-tp-modal-card {
  position: relative;
  width: min(430px, 100%);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(77,166,255,.5);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at top,
      rgba(77,166,255,.13),
      transparent 48%
    ),
    rgba(7,12,19,.99);
  box-shadow:
    0 20px 70px rgba(0,0,0,.7),
    inset 0 0 0 1px rgba(255,255,255,.025);
}

.taco-tp-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143,169,190,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: #7e94a6;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.taco-tp-modal-close:hover {
  color: #eef6ff;
  border-color: rgba(77,166,255,.55);
}

.taco-tp-countdown {
  margin: 6px 0 20px;
  padding: 14px;
  border: 1px solid rgba(77,166,255,.24);
  border-radius: 12px;
  background: rgba(77,166,255,.055);
}

.taco-tp-countdown[hidden] {
  display: none !important;
}

.taco-tp-countdown-label {
  color: #ffbd52;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
}

.taco-tp-countdown-number {
  margin-top: 5px;
  color: #eef7ff;
  font-size: 50px;
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 0 24px rgba(77,166,255,.38);
}

.taco-tp-countdown-seconds {
  margin-top: 3px;
  color: #6f879a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.taco-tp-countdown-track {
  height: 4px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.taco-tp-countdown-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #4da6ff;
  transform-origin: left center;
}

.taco-tp-modal-icon {
  font-size: 34px;
  margin-bottom: 8px;
}

.taco-tp-modal-title {
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .08em;
  color: #eef6ff;
}

.taco-tp-modal-text {
  margin: 12px 0 20px;
  color: #9fb2c3;
  line-height: 1.5;
}

.taco-tp-modal-actions {
  display: flex;
  gap: 10px;
}

.taco-tp-modal-button {
  flex: 1;
  border: 1px solid rgba(77,166,255,.55);
  border-radius: 10px;
  background: rgba(77,166,255,.1);
  color: #eef6ff;
  padding: 12px;
  cursor: pointer;
  font-weight: 950;
}

.taco-tp-modal-button.danger {
  border-color: rgba(255,76,76,.45);
  background: rgba(255,76,76,.07);
}

@media (max-width: 650px) {
  .friends-float-button {
    right: 12px;
    bottom: 74px;
    min-width: 48px;
  }

  .chat-float-button {
    left: 12px;
    bottom: 12px;
    min-width: 48px;
  }

  .friends-panel {
    right: 10px;
    bottom: 128px;
    height: calc(100vh - 150px);
  }

  .chat-panel {
    left: 10px;
    bottom: 70px;
    height: calc(100vh - 92px);
  }
}

@media (max-width: 650px) {
  .discord-float {
    right: 12px;
    bottom: 12px;

    padding: 8px;
  }

  .discord-float-text {
    display: none;
  }
}

/* =========================================================
   SOCIAL PANELS: NEVER COVER MAIN NAV
   Header/nav height is measured in JS because TV/browser
   scaling can make it taller than the normal desktop height.
   ========================================================= */
.social-panel {
  top: calc(var(--tacd-header-bottom, 78px) + 8px) !important;
  height: auto !important;
  max-height: none !important;
}

.friends-panel {
  bottom: 150px !important;
}

.chat-panel {
  bottom: 78px !important;
}

@media (max-width: 650px) {
  .friends-panel {
    top: calc(var(--tacd-header-bottom, 120px) + 6px) !important;
    bottom: 128px !important;
    height: auto !important;
  }

  .chat-panel {
    top: calc(var(--tacd-header-bottom, 120px) + 6px) !important;
    bottom: 70px !important;
    height: auto !important;
  }
}

.steam-avatar {
  width: 64px;
  height: 64px;

  object-fit: cover;

  border-radius: 8px;

  border:
    2px solid rgba(102, 192, 244, .65);

  box-shadow:
    0 0 18px rgba(102, 192, 244, .18);
}

.steam-id {
  margin: 5px 0 0 !important;

  color: var(--muted) !important;

  font-size: 11px !important;

  opacity: .75;
}

/* =========================================================
   LIVE DINO ECG PULSE
   ========================================================= */

.live-dino {
  gap: 10px;
}

.ecg {
  width: 48px;
  height: 24px;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.ecg svg {
  width: 48px;
  height: 24px;
}

.ecg polyline {
  fill: none;

  stroke: #737d87;
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: 90;
  stroke-dashoffset: 90;

  animation: ecgPulse 1.5s infinite linear;
}

.live-text {
  animation: liveTextPulse 1.5s infinite ease-in-out;
}


@keyframes ecgPulse {

  0% {
    stroke: #737d87;
    stroke-dashoffset: 90;
    filter: none;
  }

  15% {
    stroke: #737d87;
  }

  35% {
    stroke: #ff3c4d;
    filter:
      drop-shadow(0 0 4px rgba(255,60,77,.9));
  }

  65% {
    stroke: #ff3c4d;
    stroke-dashoffset: 0;
    filter:
      drop-shadow(0 0 5px rgba(255,60,77,.8));
  }

  80% {
    stroke: #737d87;
    stroke-dashoffset: 0;
    filter: none;
  }

  100% {
    stroke: #737d87;
    stroke-dashoffset: -90;
    filter: none;
  }

}


@keyframes liveTextPulse {

  0%,
  25%,
  80%,
  100% {
    color: #89939d;
  }

  40%,
  65% {
    color: #ff4b5b;
  }

}

  0%,
  35%,
  100% {
    color: #89939d;
  }

  42% {
    color: #ff5665;
  }

  57% {
    color: #ff4253;
  }

  66% {
    color: #89939d;
  }

}


/* =========================================================
   MAIN
   ========================================================= */

main {
  min-height: calc(100vh - 150px);
}


.page-shell {
  width: min(1400px, calc(100% - 40px));

  margin: 0 auto;
}


/* =========================================================
   HOME HERO
   ========================================================= */

.home-hero {
  min-height: 810px;

  padding:
    88px 0
    75px;

  display: grid;

  grid-template-columns:
    minmax(380px, .9fr)
    minmax(430px, 1.1fr);

  align-items: center;

  gap: 55px;

  position: relative;
}


.home-hero::before {
  content: "";

  position: absolute;

  inset: 45px -20px 50px;

  border:
    1px solid rgba(77,166,255,.07);

  border-radius: 28px;

  background:
    linear-gradient(
      135deg,
      rgba(10,17,24,.50),
      rgba(3,7,10,.18)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 30px 100px rgba(0,0,0,.38);

  z-index: -1;
}


.hero-copy {
  padding-left: 24px;
}


.eyebrow {
  color: var(--blue);

  font-size: .78rem;

  font-weight: 950;

  letter-spacing: .22em;

  margin-bottom: 17px;
}


h1 {
  margin: 0;

  font-size:
    clamp(3.2rem, 6vw, 6.1rem);

  line-height: .93;

  letter-spacing: -.055em;
}


h1 span {
  display: block;

  color: var(--blue2);
}


.lead {
  margin: 30px 0 0;

  max-width: 680px;

  color: #a2b2c1;

  font-size:
    clamp(1.02rem, 1.4vw, 1.24rem);

  line-height: 1.75;
}


/* =========================================================
   HERO DINO IMAGE
   ========================================================= */

.dino-stage {
  min-height: 600px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}


.dino-glow {
  position: absolute;

  width: 78%;
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(77,166,255,.26),
      rgba(31,93,140,.08) 52%,
      transparent 72%
    );

  filter: blur(28px);

  animation:
    glowPulse 5s infinite ease-in-out;
}


.hero-dinos {
  width: min(570px, 93%);

  aspect-ratio: 1;

  position: relative;

  object-fit: cover;

  border-radius: 50%;

  border:
    2px solid rgba(77,166,255,.34);

  box-shadow:
    0 0 0 8px rgba(77,166,255,.025),
    0 0 70px rgba(77,166,255,.13),
    0 35px 90px rgba(0,0,0,.70);

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}


.hero-dinos:hover {
  transform:
    scale(1.025)
    rotate(-.5deg);

  box-shadow:
    0 0 0 8px rgba(77,166,255,.035),
    0 0 90px rgba(77,166,255,.20),
    0 40px 100px rgba(0,0,0,.76);
}


@keyframes glowPulse {

  0%,
  100% {
    opacity: .65;
    transform: scale(.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }

}


/* =========================================================
   QUICK CARDS
   ========================================================= */

.quick-grid {
  grid-column: 1 / -1;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 15px;

  margin:
    4px
    24px
    0;
}

.quick-grid.single-card {
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
}

.events-card {
  width: 100%;
}


.quick-card {
  min-height: 94px;

  padding: 18px 21px;

  display: flex;
  align-items: center;

  gap: 17px;

  border:
    1px solid var(--line);

  border-radius: 14px;

  color: var(--text);

  text-decoration: none;

  background:
    linear-gradient(
      135deg,
      rgba(16,28,40,.88),
      rgba(6,12,18,.76)
    );

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}


.quick-card:hover {
  transform: translateY(-3px);

  border-color: var(--line-bright);

  background:
    linear-gradient(
      135deg,
      rgba(17,39,59,.94),
      rgba(8,18,28,.86)
    );
}


.quick-icon {
  width: 43px;
  height: 43px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  color: var(--blue2);

  border:
    1px solid rgba(77,166,255,.30);

  background:
    rgba(77,166,255,.07);

  border-radius: 10px;

  font-size: 1.2rem;
}


.quick-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
}


.quick-card small {
  color: var(--blue);

  font-size: .67rem;

  font-weight: 900;

  letter-spacing: .15em;
}


.quick-card strong {
  font-size: 1rem;
}


/* =========================================================
   INNER PAGES
   ========================================================= */

.page-panel {
  max-width: 900px;

  margin: 85px 0;

  padding: 55px;

  border:
    1px solid var(--line);

  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(15,27,39,.88),
      rgba(5,10,15,.82)
    );

  box-shadow:
    0 35px 100px rgba(0,0,0,.42);
}


.page-panel h1 {
  color: var(--text);
}


.page-panel p {
  max-width: 700px;

  color: var(--muted);

  font-size: 1.12rem;

  line-height: 1.75;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  border-top:
    1px solid rgba(77,166,255,.14);

  background:
    rgba(2,5,8,.76);

  color: #768795;

  padding:
    25px 0
    30px;

  font-size: .88rem;
}


.footer-inner {
  width: min(1400px, calc(100% - 40px));

  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}


.footer-mark {
  color: var(--blue);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1120px) {

  /* Mobile header: keep the top bar above the page and make the
     navigation row independently swipeable left/right. */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50000;
    isolation: isolate;
  }

  .header-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: block;
    overflow: visible;
  }

  .brand {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 0 14px;
    position: relative;
    z-index: 2;
    background: rgba(3, 7, 11, .98);
  }

  .main-nav {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
    gap: 0;
    position: relative;
    z-index: 2;
    background: rgba(3, 7, 11, .98);
    border-top:
      1px solid rgba(255,255,255,.04);
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  /* Mobile dropdowns are moved to <body> while open so the
     horizontally-scrollable nav cannot clip them. */
  .nav-drop-menu.mobile-floating-menu {
    display: block;
    position: fixed !important;
    left: 8px;
    top: 8px;
    margin: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 999999 !important;
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }

  .main-nav > .nav-link,
  .main-nav > .nav-dropdown,
  .main-nav > .top-icon,
  .main-nav > .coin-display,
  .main-nav > .account-dropdown {
    flex: 0 0 auto;
  }

  .nav-link {
    min-height: 54px;
    flex: 0 0 auto;
  }

  main {
    position: relative;
    z-index: 0;
  }

  .home-hero {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .hero-copy {
    padding:
      20px
      24px
      0;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .dino-stage {
    min-height: 500px;
  }

}


@media (max-width: 760px) {

  .page-shell {
    width: min(100% - 24px, 1400px);
  }

  .home-hero {
    padding-top: 55px;
  }

  .home-hero::before {
    inset:
      25px
      -4px
      30px;
  }

  .quick-grid {
    grid-template-columns: 1fr;

    margin:
      0
      15px;
  }

  .dino-stage {
    min-height: 390px;
  }

  .hero-dinos {
    width: min(390px, 92%);
  }

  .page-panel {
    padding:
      38px
      26px;
  }

  .footer-inner {
    display: block;
  }

}



/* TΛÇĐ low-memory rendering containment */
.market-dino-card,
.garage-slot-card,
.tacd-game-card,
.booster-showcase-card,
.booster-tier-card,
.booster-preview-card,
.profile-pm-friend,
.chat-message,
.friend-row {
  content-visibility:auto;
  contain-intrinsic-size:auto 320px;
}

/* Avoid keeping expensive compositor layers around unnecessarily. */
.market-dino-card,
.garage-slot-card,
.tacd-game-card {
  will-change:auto !important;
}


/* Chat + Friends may remain open together. */
#chat-panel.social-panel.open,
#friends-panel.social-panel.open{
  z-index:2147483646 !important;
}

/* Keep left Chat and right Friends independent instead of forcing one closed. */
#chat-panel{
  left:0 !important;
  right:auto !important;
}
#friends-panel{
  right:0 !important;
  left:auto !important;
}


/* Private Messages: online/offline alphabetical sections */
.profile-pm-separator{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:8px 2px 2px;
  padding:7px 8px 5px;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:#71879a;
  font-size:9px;
  font-weight:950;
  letter-spacing:.13em;
}
.profile-pm-separator small{
  font-size:9px;
  font-weight:950;
  letter-spacing:0;
}
.profile-pm-separator.online{
  color:#4ade80;
}
.profile-pm-separator.offline{
  color:#71879a;
}


/* =========================================================
   MARKETPLACE HEADER / SORT OVERHAUL
   ========================================================= */
.market-title-row.market-title-row-clean{
  align-items:start !important;
}

.market-title-copy-clean{
  padding-top:4px;
}

.market-subtitle-line-clean{
  margin-top:0;
}

.market-balance-clean{
  gap:6px !important;
}

.market-balance-clean small{
  display:none !important;
}

.market-filter-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  width:max-content;
  max-width:100%;
}

.market-filter-row label{
  color:#6f8497;
  font-size:9px;
  font-weight:950;
  letter-spacing:.12em;
  white-space:nowrap;
}

.market-filter-row select{
  min-width:220px;
  max-width:100%;
  padding:8px 34px 8px 11px;
  border:1px solid rgba(77,166,255,.24);
  border-radius:9px;
  background:#08141e;
  color:#dce9f4;
  font-size:11px;
  font-weight:800;
  outline:none;
  cursor:pointer;
}

.market-filter-row select:hover,
.market-filter-row select:focus{
  border-color:rgba(77,166,255,.58);
}

.market-art-clean{
  width:230px !important;
  height:230px !important;
  align-self:start !important;
  justify-self:end !important;
  margin:-58px 0 0 0 !important;
  object-fit:contain !important;
}

.market-notice{
  margin-top:14px !important;
}

@media(max-width:1050px){
  .market-art-clean{
    width:170px !important;
    height:170px !important;
    margin:0 !important;
  }
  .market-filter-row{
    width:100%;
  }
}

@media(max-width:620px){
  .market-filter-row{
    align-items:stretch;
    flex-direction:column;
    gap:6px;
  }
  .market-filter-row select{
    width:100%;
    min-width:0;
  }
}


/* TΛÇĐ teleport warmup visual — real MP4 forward for requester, reversed for accepter. */
.taco-tp-modal-card:has(.taco-tp-countdown:not([hidden])) {
  width: min(980px, 96vw);
  text-align: left;
}

.taco-tp-countdown {
  margin: 10px 0 20px;
  padding: 18px;
}

.taco-tp-warmup-layout {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.taco-tp-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(77,166,255,.18),
    0 0 30px rgba(33,145,255,.08);
}

.taco-tp-visual video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.taco-tp-warmup-info {
  min-width: 0;
}

.taco-tp-countdown-label {
  margin-bottom: 18px;
  color: #eef6ff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .055em;
}

.taco-tp-countdown-line,
.taco-tp-destination-line {
  margin: 12px 0;
  color: #d9e8f5;
  font-size: 19px;
  line-height: 1.45;
}

.taco-tp-countdown-line strong,
.taco-tp-destination-line strong {
  color: #159bff;
  font-weight: 950;
}

.taco-tp-warning-box {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(77,166,255,.42);
  border-radius: 10px;
  background: rgba(77,166,255,.055);
  color: #c9d8e5;
  font-size: 15px;
  line-height: 1.4;
}

.taco-tp-countdown-track {
  height: 5px;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .taco-tp-modal-card:has(.taco-tp-countdown:not([hidden])) {
    width: min(520px, 96vw);
  }
  .taco-tp-warmup-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .taco-tp-visual {
    min-height: 0;
  }
  .taco-tp-countdown-label {
    font-size: 17px;
  }
  .taco-tp-countdown-line,
  .taco-tp-destination-line {
    font-size: 16px;
  }
}


/* TΛÇĐ animated parking window */
.taco-parking-animation-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,4,10,.72);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,visibility .16s ease}
.taco-parking-animation-modal.open{opacity:1;visibility:visible;pointer-events:auto}
.taco-parking-animation-card{width:min(680px,94vw);overflow:hidden;border:1px solid rgba(0,174,255,.55);border-radius:18px;background:#030914;box-shadow:0 0 42px rgba(0,145,255,.22),0 24px 70px rgba(0,0,0,.65)}
.taco-parking-animation-video{display:block;width:100%;aspect-ratio:1/1;max-height:min(60vh,560px);object-fit:cover;background:#000}
.taco-parking-animation-copy{padding:16px 22px 20px;text-align:center;border-top:1px solid rgba(0,174,255,.28)}
.taco-parking-animation-kicker{color:#168fff;font-size:10px;font-weight:900;letter-spacing:.22em}
.taco-parking-animation-title{margin-top:5px;color:#f4f8ff;font-size:23px;font-weight:1000;letter-spacing:.08em}
.taco-parking-animation-status,.taco-parking-animation-countdown{margin-top:7px;color:#aebed0;font-size:14px}
.taco-parking-animation-countdown strong{color:#eaf6ff}
.taco-parking-animation-bar{height:4px;margin-top:14px;overflow:hidden;border-radius:999px;background:rgba(0,132,255,.18)}
.taco-parking-animation-bar span{display:block;width:100%;height:100%;transform-origin:left center;background:linear-gradient(90deg,#00d9ff,#087cff);box-shadow:0 0 12px rgba(0,195,255,.8)}
@media(max-width:600px){.taco-parking-animation-card{width:min(94vw,500px)}.taco-parking-animation-video{max-height:54vh}.taco-parking-animation-copy{padding:13px 15px 17px}.taco-parking-animation-title{font-size:19px}}


/* =========================================================
   DESKTOP HEADER RE-CENTER AFTER DINO SHOP TAB
   ========================================================= */
@media (min-width: 1121px) {
  .header-inner {
    width: min(1600px, calc(100% - 24px));
  }

  .brand {
    min-width: 220px;
    padding-right: 18px;
  }

  .main-nav {
    gap: 0;
  }

  .main-nav > .nav-link {
    min-width: 0;
    padding-left: 11px;
    padding-right: 11px;
  }

  .nav-drop-button {
    min-width: 88px;
    padding-left: 11px;
    padding-right: 11px;
  }

  .nav-spacer {
    flex: 0 0 4px;
    min-width: 4px;
  }
}


/* =========================================================
   TΛÇĐ COMMUNITY FEED — HOME SHORTCUTS + FEED PAGES
   Clean rebuild from current CSS baseline.
   ========================================================= */
.feed-shortcuts {
  grid-template-columns: repeat(2, minmax(280px, 460px));
  justify-content: center;
}

.events-card,
.patch-notes-card {
  width: 100%;
}

.patch-notes-card .quick-icon {
  border-color: rgba(113, 232, 180, .32);
  background: rgba(113, 232, 180, .07);
}

/* IMPORTANT: badge is a third span inside .quick-card.
   Keep it hidden unless the Worker explicitly marks the card unread. */
.feed-shortcuts .quick-card > .tacd-feed-new-pip {
  display: none !important;
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 3;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .16em;
  line-height: 1.15;
  color: #061019;
  background: #7ee7ff;
  box-shadow: 0 0 12px rgba(87,210,255,.9), 0 0 26px rgba(44,154,255,.5);
  white-space: nowrap;
}

.feed-shortcuts .quick-card {
  position: relative;
  overflow: hidden;
}

.feed-shortcuts .quick-card.tacd-feed-is-new > .tacd-feed-new-pip {
  display: inline-flex !important;
}

.feed-shortcuts .quick-card.tacd-feed-is-new {
  border-color: rgba(71,199,255,.95);
  box-shadow: 0 0 0 1px rgba(74,201,255,.32), 0 0 24px rgba(0,157,255,.34), inset 0 0 24px rgba(0,139,255,.08);
  animation: tacdFeedCardPulse 1.35s ease-in-out infinite;
}

.feed-shortcuts .quick-card.tacd-feed-is-new::after {
  content: "";
  position: absolute;
  inset: -60% -25%;
  pointer-events: none;
  background: linear-gradient(105deg,transparent 38%,rgba(255,255,255,.18) 48%,rgba(111,220,255,.34) 50%,transparent 62%);
  transform: translateX(-75%);
  animation: tacdFeedSweep 2.2s ease-in-out infinite;
}

.feed-shortcuts .quick-card.tacd-feed-is-new small {
  color: #6fdcff;
  text-shadow: 0 0 10px rgba(65,194,255,.65);
}

.feed-shortcuts .quick-card.tacd-feed-is-new strong {
  color: #f4fbff;
  text-shadow: 0 0 8px rgba(255,255,255,.28), 0 0 16px rgba(60,190,255,.72);
}

.feed-shortcuts .patch-notes-card.tacd-feed-is-new {
  border-color: rgba(93,255,181,.82);
  box-shadow: 0 0 0 1px rgba(84,255,176,.24), 0 0 24px rgba(38,214,150,.28), inset 0 0 24px rgba(38,214,150,.07);
}

.feed-shortcuts .patch-notes-card.tacd-feed-is-new small {
  color: #7dffc5;
  text-shadow: 0 0 10px rgba(69,255,180,.5);
}

.feed-shortcuts .patch-notes-card.tacd-feed-is-new > .tacd-feed-new-pip {
  background: #82ffd0;
  box-shadow: 0 0 12px rgba(90,255,193,.8), 0 0 26px rgba(44,230,166,.4);
}

.feed-shortcuts .patch-notes-card > .tacd-patch-new-pip {
  padding: 5px 11px;
  font-size: 9px;
  letter-spacing: .08em;
}

@keyframes tacdFeedCardPulse {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.012); }
}

@keyframes tacdFeedSweep {
  0% { transform: translateX(-85%); }
  55%,100% { transform: translateX(85%); }
}

/* =========================================================
   TΛÇĐ DISCORD COMMUNITY FEED PAGES
   ========================================================= */
.discord-feed-page {
  max-width: 1100px;
}

.discord-feed-lead {
  max-width: 820px;
  margin-bottom: 24px;
}

.discord-feed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.discord-feed-tabs a {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .04em;
  background: rgba(7,15,23,.72);
}

.discord-feed-tabs a:hover,
.discord-feed-tabs a.active {
  color: var(--text);
  border-color: var(--line-bright);
  background: rgba(77,166,255,.10);
}

.discord-feed-list {
  display: grid;
  gap: 18px;
}

.discord-feed-card {
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(77,166,255,.22);
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(13,27,40,.94),rgba(5,10,15,.92));
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

.discord-feed-card.patch-note-card {
  border-color: rgba(113,232,180,.22);
}

.discord-feed-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.discord-feed-meta > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.discord-feed-meta small {
  color: var(--muted);
  font-size: .78rem;
}

.discord-feed-avatar,
.discord-feed-avatar-fallback {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77,166,255,.32);
  background: rgba(77,166,255,.10);
  font-size: .68rem;
  font-weight: 950;
}

.discord-feed-badge {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(77,166,255,.25);
  color: var(--blue);
  font-size: .63rem;
  font-weight: 950;
  letter-spacing: .13em;
}

.patch-note-card .discord-feed-badge {
  border-color: rgba(113,232,180,.25);
}

.discord-feed-card h2 {
  margin: 0 0 13px;
  font-size: clamp(1.25rem,2.4vw,1.85rem);
}

.discord-feed-copy {
  color: var(--text);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.discord-feed-copy + .discord-feed-copy {
  margin-top: 12px;
}

.discord-feed-copy code,
.discord-feed-field code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(0,0,0,.34);
}

.discord-feed-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 10px;
  margin-top: 16px;
}

.discord-feed-field {
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}

.discord-feed-field > strong {
  display: block;
  margin-bottom: 5px;
  color: var(--blue2);
}

.discord-feed-image {
  display: block;
  width: min(100%,760px) !important;
  height: auto !important;
  max-height: 620px;
  margin-top: 18px;
  object-fit: contain;
  object-position: left center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
}

.discord-feed-discord-link {
  display: inline-flex;
  margin-top: 17px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--blue2);
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(77,166,255,.24);
  background: rgba(77,166,255,.06);
}

.discord-feed-discord-link:hover {
  border-color: var(--line-bright);
  background: rgba(77,166,255,.12);
}

.discord-feed-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.discord-patch-page .discord-feed-scroll-window {
  max-height: min(68vh,720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(113,232,180,.55) rgba(5,12,18,.72);
}

.discord-patch-page .discord-feed-scroll-window::-webkit-scrollbar { width: 10px; }
.discord-patch-page .discord-feed-scroll-window::-webkit-scrollbar-track {
  background: rgba(5,12,18,.72);
  border-radius: 999px;
}
.discord-patch-page .discord-feed-scroll-window::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,rgba(113,232,180,.72),rgba(77,166,255,.52));
  border: 2px solid rgba(5,12,18,.72);
  border-radius: 999px;
}

@media (max-width: 700px) {
  .feed-shortcuts {
    grid-template-columns: 1fr;
  }
  .feed-shortcuts .patch-notes-card > .tacd-patch-new-pip {
    font-size: 8px;
    right: 9px;
    top: 8px;
    padding: 4px 8px;
  }
  .discord-patch-page .discord-feed-scroll-window {
    max-height: 66vh;
    padding-right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-shortcuts .quick-card.tacd-feed-is-new,
  .feed-shortcuts .quick-card.tacd-feed-is-new::after {
    animation: none;
  }
}

/* =========================================================
   TΛÇĐ ACCOUNT HISTORY v0.2 — merged into existing account CSS
   ========================================================= */
.tacd-history-card{margin-top:18px}
.tacd-history-filters{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 10px}
.tacd-history-filters button{padding:8px 10px;border:1px solid rgba(77,166,255,.18);border-radius:8px;background:rgba(77,166,255,.04);color:#7890a3;font-size:9px;font-weight:950;letter-spacing:.07em;cursor:pointer}
.tacd-history-filters button.active{border-color:rgba(77,166,255,.55);background:rgba(77,166,255,.13);color:#ddecf8}
.tacd-history-list{max-height:520px;overflow-y:auto;overscroll-behavior:contain;border:1px solid rgba(77,166,255,.12);border-radius:10px;background:rgba(0,0,0,.13);scrollbar-gutter:stable}
.tacd-history-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border-bottom:1px solid rgba(255,255,255,.045)}
.tacd-history-item:last-child{border-bottom:0}
.tacd-history-item.unread{background:rgba(77,166,255,.055)}
.tacd-history-icon{font-size:18px}
.tacd-history-main{min-width:0}
.tacd-history-main strong{display:block;color:#dfeaf2;font-size:11px}
.tacd-history-main small{display:block;margin-top:3px;color:#71879a;font-size:9px;white-space:normal;overflow-wrap:anywhere}
.tacd-history-amount{text-align:right;font-weight:1000;font-size:12px}
.tacd-history-amount.positive{color:#79e6aa}
.tacd-history-amount.negative{color:#ff909d}
.tacd-history-balance{display:block;margin-top:3px;color:#607789;font-size:8px;font-weight:850}
.tacd-history-empty{padding:24px;text-align:center;color:#70869a;font-size:10px}
.tacd-history-more{display:block;margin:10px auto 0}
@media(max-width:620px){.tacd-history-item{grid-template-columns:auto minmax(0,1fr)}.tacd-history-amount{grid-column:2;text-align:left}}


/* =========================================================
   DINO JOURNAL v0.1
   ========================================================= */
.tacd-dino-journal-card{margin-top:18px}.tacd-dino-journal-current{margin-top:14px}.tacd-dino-current-card{border:1px solid rgba(77,166,255,.22);border-radius:12px;background:rgba(5,14,22,.78);padding:14px}.tacd-dino-current-card.live{border-color:rgba(74,222,128,.34);box-shadow:inset 0 0 30px rgba(74,222,128,.025)}.tacd-dino-current-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.tacd-dino-current-top small{color:#62d98d;font-size:9px;font-weight:950;letter-spacing:.12em}.tacd-dino-current-card.stale .tacd-dino-current-top small{color:#8fa3b7}.tacd-dino-current-top h4{margin:5px 0 0;font-size:20px}.tacd-dino-current-top>b{font-size:18px;color:#79bdff}.tacd-dino-vitals{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:12px}.tacd-dino-vitals span{padding:9px;border:1px solid rgba(255,255,255,.07);border-radius:8px;background:rgba(255,255,255,.02)}.tacd-dino-vitals small{display:block;color:#71879a;font-size:8px;font-weight:950;letter-spacing:.1em}.tacd-dino-vitals strong{display:block;margin-top:4px;color:#e8f2fa;font-size:12px}.tacd-dino-meta{margin-top:10px;color:#71879a;font-size:10px}.tacd-dino-journal-headrow{display:flex;justify-content:space-between;align-items:center;margin:18px 2px 8px}.tacd-dino-journal-headrow strong{font-size:10px;letter-spacing:.12em;color:#9cb1c2}.tacd-dino-journal-headrow small{font-size:9px;color:#63788a}.tacd-dino-journal-deaths{max-height:480px;overflow-y:auto;padding-right:4px}.tacd-dino-death{border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.018);margin-bottom:8px;overflow:hidden}.tacd-dino-death summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px}.tacd-dino-death summary::-webkit-details-marker{display:none}.tacd-dino-death summary div{display:grid;gap:2px}.tacd-dino-death summary small{color:#7fd89f;font-size:8px;font-weight:950;letter-spacing:.1em}.tacd-dino-death summary strong{font-size:13px;color:#e4eef6}.tacd-dino-death summary span{font-size:9px;color:#71879a}.tacd-dino-death summary>b{font-size:9px;color:#79bdff}.tacd-dino-death-body{border-top:1px solid rgba(255,255,255,.06);padding:0 12px 12px}.tacd-dino-death-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.tacd-dino-death-grid span{min-width:0;padding:8px;border-radius:8px;background:rgba(255,255,255,.02)}.tacd-dino-death-grid small{display:block;color:#71879a;font-size:8px}.tacd-dino-death-grid strong,.tacd-dino-death-grid code{display:block;margin-top:3px;color:#cfe0ec;font-size:10px;overflow-wrap:anywhere}.tacd-dino-empty{padding:16px;border:1px dashed rgba(255,255,255,.1);border-radius:10px;color:#71879a;font-size:11px;text-align:center}@media(max-width:760px){.tacd-dino-vitals{grid-template-columns:repeat(2,minmax(0,1fr))}.tacd-dino-death-grid{grid-template-columns:1fr}}

.tacd-recovery-code-row{margin-top:12px;padding:12px 14px;border:1px solid rgba(74,222,128,.22);border-radius:10px;background:rgba(74,222,128,.045);display:flex;align-items:center;justify-content:space-between;gap:14px}
.tacd-recovery-code-row small{display:block;color:#7ca1bb;font-size:9px;font-weight:900;letter-spacing:.12em}
.tacd-recovery-code-row strong{display:block;margin-top:3px;color:#9ff5bd;font-size:16px;letter-spacing:.08em}
.tacd-recovery-code-row span{display:block;margin-top:4px;color:#7f93a6;font-size:10px}
.tacd-recovery-admin-search{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;margin:18px 0}
.tacd-recovery-admin-search input{min-height:42px;padding:10px 12px;border:1px solid rgba(77,166,255,.24);border-radius:8px;background:#07121b;color:#dbeaf7}
.tacd-recovery-admin-results{display:grid;gap:12px}
.tacd-recovery-admin-card{padding:16px;border:1px solid rgba(77,166,255,.18);border-radius:12px;background:rgba(7,15,23,.8)}
.tacd-recovery-admin-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.tacd-recovery-admin-head small{color:#7894a9;font-size:9px;font-weight:900;letter-spacing:.09em}
.tacd-recovery-admin-head h3{margin:5px 0 0}
.tacd-recovery-admin-code{margin:12px 0;padding:10px 12px;border:1px solid rgba(74,222,128,.22);border-radius:8px;color:#9ff5bd;font-weight:950;letter-spacing:.1em;background:rgba(74,222,128,.04)}
.tacd-recovery-admin-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.tacd-recovery-admin-grid>div{padding:9px;border:1px solid rgba(255,255,255,.06);border-radius:8px;background:rgba(255,255,255,.02)}
.tacd-recovery-admin-grid small{display:block;color:#73899c;font-size:8px;font-weight:900}
.tacd-recovery-admin-grid strong{display:block;margin-top:4px}
.tacd-recovery-admin-foot{display:flex;flex-wrap:wrap;gap:14px;margin:10px 0;color:#708496;font-size:9px}
@media(max-width:900px){.tacd-recovery-admin-search{grid-template-columns:1fr}.tacd-recovery-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.tacd-recovery-restore-row{display:grid;grid-template-columns:minmax(110px,.35fr) minmax(220px,1fr);gap:10px;margin-top:12px}
.tacd-recovery-slot-input{min-height:42px;padding:10px 12px;border:1px solid rgba(77,166,255,.24);border-radius:8px;background:#07121b;color:#dbeaf7;font-weight:900}
@media(max-width:700px){.tacd-recovery-restore-row{grid-template-columns:1fr}}

/* TΛÇĐ responsive TacoCoin profile value — scales down with viewport/zoom. */
.tacd-tacocoin-value {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(16px, 2vw, 31px);
}
.tacd-tacocoin-value .tacd-tacocoin-number {
  min-width: 0;
  white-space: nowrap;
  font-size: inherit;
  line-height: 1.05;
}

/* =========================================================
   TΛÇĐ PROFILE STAT FIT v0.2
   Keep long values inside cards at browser zoom / narrower viewports.
   ========================================================= */
.profile-stat-card {
  min-width: 0;
  padding: clamp(13px, 1.35vw, 17px);
}

.profile-stat-value.long {
  min-width: 0;
  white-space: nowrap;
  font-size: clamp(15px, 1.7vw, 22px);
  letter-spacing: -0.02em;
}

.tacd-tacocoin-value {
  width: 100%;
  max-width: 100%;
  gap: clamp(4px, .45vw, 7px) !important;
  font-size: clamp(17px, 1.85vw, 27px);
  overflow: visible;
}

.tacd-tacocoin-value img {
  width: clamp(18px, 1.8vw, 27px) !important;
  height: clamp(18px, 1.8vw, 27px) !important;
  flex: 0 0 auto;
}

.tacd-tacocoin-value .tacd-tacocoin-number {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-size: inherit;
  letter-spacing: -0.025em;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .profile-stats-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

/* =========================================================
   TΛÇĐ PROFILE STAT FIT v0.3
   Long profile values must fit inside their own card.
   ========================================================= */
.profile-stat-value.long {
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-size: clamp(16px, 1.45vw, 20px);
  letter-spacing: -0.035em;
}

/* At cramped desktop/zoom widths, give long values a little more room. */
@media (min-width: 901px) and (max-width: 1400px) {
  .profile-stat-card {
    padding-left: 14px;
    padding-right: 14px;
  }
  .profile-stat-value.long {
    font-size: 18px;
  }
}
