.home-stats-panel {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 42, 50, 0.94), rgba(4, 24, 31, 0.97));
  border: 1px solid rgba(116, 237, 229, 0.22);
  border-radius: 10px;
  box-shadow:
    0 13px 28px rgba(0, 12, 16, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-stats-panel .home-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.home-stats-panel .home-summary-stats > .stat {
  min-height: 62px;
  display: grid;
  align-content: center;
  padding: 9px 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-stats-panel .home-summary-stats > .stat + .stat {
  border-left: 1px solid rgba(116, 237, 229, 0.15);
}

.home-stats-panel .home-summary-stats > .stat span {
  color: rgba(213, 244, 241, 0.66);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
}

.home-stats-panel .home-summary-stats > .stat strong {
  margin-top: 5px;
  color: #f5fffd;
  font-size: clamp(12px, 3.7vw, 15px);
  font-weight: 900;
  line-height: 1.1;
}

.tg-home-entry {
  height: 80px;
  min-height: 72px;
  max-height: 84px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 8px 12px;
  color: #f3fffd;
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(2, 24, 30, 0.98) 0%, rgba(4, 39, 45, 0.94) 48%, rgba(3, 31, 36, 0.72) 100%),
    url("/assets/team-giveaway/team-giveaway-hero.jpg?v=2") right 44% / 420px auto no-repeat;
  border: 0;
  border-top: 1px solid rgba(104, 247, 233, 0.22);
  border-radius: 0 0 9px 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  -webkit-tap-highlight-color: transparent;
}

.tg-home-entry::before,
.tg-home-entry::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.tg-home-entry::before {
  width: 128px;
  height: 128px;
  right: -18px;
  top: -72px;
  border: 1px solid rgba(109, 255, 239, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 16px rgba(71, 237, 218, 0.035),
    0 0 0 34px rgba(71, 237, 218, 0.025);
}

.tg-home-entry::after {
  inset: 0;
  background:
    linear-gradient(105deg, transparent 58%, rgba(184, 255, 93, 0.1) 74%, transparent 75%),
    radial-gradient(circle at 74% 50%, rgba(54, 244, 218, 0.14), transparent 34%);
}

.tg-home-entry:hover {
  background-color: rgba(12, 63, 67, 0.55);
}

.tg-home-entry:focus-visible {
  outline: 3px solid rgba(255, 226, 117, 0.88);
  outline-offset: 2px;
}

.tg-home-energy {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(132, 255, 110, 0.24), rgba(10, 97, 94, 0.3) 48%, rgba(2, 27, 33, 0.9) 70%);
  border: 1px solid rgba(106, 249, 229, 0.5);
  border-radius: 50%;
  box-shadow:
    0 0 18px rgba(44, 239, 219, 0.22),
    inset 0 0 14px rgba(96, 255, 231, 0.12);
}

.tg-home-energy::before,
.tg-home-energy::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(111, 255, 239, 0.24);
  border-radius: 50%;
}

.tg-home-energy::before {
  inset: 4px;
}

.tg-home-energy::after {
  width: 3px;
  height: 3px;
  top: 2px;
  background: #b9ff64;
  border: 0;
  box-shadow: 0 35px 0 #2ee9d6, 17px 17px 0 #2ee9d6, -17px 17px 0 #b9ff64;
}

.tg-home-energy i {
  width: 13px;
  height: 23px;
  display: block;
  background: linear-gradient(180deg, #dfff72, #39e6c5);
  clip-path: polygon(54% 0, 100% 0, 67% 38%, 96% 38%, 28% 100%, 43% 55%, 12% 55%);
  filter: drop-shadow(0 0 5px rgba(178, 255, 91, 0.8));
}

.tg-home-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.tg-home-copy small,
.tg-home-copy em {
  overflow: hidden;
  color: rgba(201, 244, 239, 0.72);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-home-copy small {
  color: #aef9ee;
}

.tg-home-copy strong {
  overflow: hidden;
  color: #f5fffd;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-shadow: 0 0 12px rgba(53, 227, 216, 0.28);
  white-space: nowrap;
}

.tg-home-ready {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  color: #0b312d;
  background: linear-gradient(135deg, #e9ff87, #5fe5a7);
  border: 1px solid rgba(237, 255, 170, 0.85);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 0 14px rgba(163, 255, 110, 0.28);
}

.tg-home-arrow {
  color: #dcff7b;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.tg-page {
  --tg-bg: #03171d;
  --tg-panel: rgba(6, 37, 44, 0.94);
  --tg-panel-soft: rgba(8, 48, 55, 0.78);
  --tg-line: rgba(103, 237, 226, 0.22);
  --tg-cyan: #35e3d8;
  --tg-lime: #b6ff62;
  --tg-gold: #f5c85e;
  --tg-text: #f3fffd;
  --tg-muted: rgba(211, 242, 239, 0.69);
  width: 100%;
  min-height: 100%;
  position: relative;
  padding: 10px 10px 112px;
  box-sizing: border-box;
  color: var(--tg-text);
}

.tg-page,
.tg-page * {
  box-sizing: border-box;
}

.tg-page button,
.tg-page a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.tg-page button:focus-visible,
.tg-page a:focus-visible {
  outline: 2px solid var(--tg-lime);
  outline-offset: 2px;
}

.tg-hero {
  min-height: 190px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(105deg, rgba(3, 26, 32, 0.98) 0%, rgba(4, 40, 47, 0.91) 56%, rgba(2, 26, 31, 0.55) 100%),
    radial-gradient(circle at 90% 22%, rgba(166, 255, 92, 0.16), transparent 38%);
  border: 1px solid rgba(91, 242, 226, 0.32);
  border-radius: 16px;
  box-shadow:
    0 18px 38px rgba(0, 11, 15, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tg-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(67, 235, 218, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(67, 235, 218, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, #000, transparent 86%);
}

.tg-hero-art {
  width: 460px;
  max-width: none;
  height: 230px;
  position: absolute;
  z-index: -2;
  right: -125px;
  top: -18px;
  object-fit: cover;
  object-position: 73% center;
  opacity: 0.62;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.48) 24%, #000 54%);
}

.tg-hero-copy {
  width: 68%;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.tg-live-badge {
  width: max-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 3px 8px;
  color: #071f22;
  background: linear-gradient(135deg, #b8ff70, #55e7bd);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.tg-live-badge i {
  width: 5px;
  height: 5px;
  display: block;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(7, 31, 34, 0.12);
}

.tg-live-badge.is-paused {
  color: #35210b;
  background: linear-gradient(135deg, #ffe2a2, #f2b454);
}

.tg-live-badge.is-draft {
  color: #e3faf7;
  background: rgba(25, 89, 94, 0.88);
  border: 1px solid rgba(106, 235, 224, 0.28);
}

.tg-hero-copy > small {
  display: block;
  color: #8ef5e9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.tg-hero-copy h2 {
  max-width: 270px;
  margin: 4px 0 5px;
  color: #f7fffd;
  font-size: clamp(21px, 6vw, 28px);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.tg-hero-copy p {
  max-width: 270px;
  margin: 0;
  color: rgba(219, 248, 245, 0.72);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.tg-hero-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(2, 23, 29, 0.72);
  border: 1px solid rgba(104, 235, 225, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.tg-hero-summary > div {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 8px 10px;
}

.tg-hero-summary > div + div {
  border-left: 1px solid rgba(104, 235, 225, 0.16);
}

.tg-hero-summary span,
.tg-hero-summary small {
  overflow: hidden;
  color: rgba(197, 239, 234, 0.66);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-hero-summary strong {
  overflow: hidden;
  color: #e7ff8d;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
  padding: 4px;
  background: rgba(3, 23, 29, 0.78);
  border: 1px solid rgba(104, 235, 225, 0.16);
  border-radius: 12px;
}

.tg-tabs button {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 7px 6px;
  color: rgba(213, 242, 239, 0.62);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}

.tg-tabs button > span {
  color: rgba(102, 232, 220, 0.64);
  font-size: 9px;
  font-weight: 950;
}

.tg-tabs button > strong {
  min-width: 0;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
}

.tg-tabs button.active {
  color: #f4fffd;
  background:
    radial-gradient(circle at 10% 0%, rgba(181, 255, 98, 0.15), transparent 48%),
    linear-gradient(135deg, rgba(12, 90, 91, 0.94), rgba(6, 49, 56, 0.95));
  border-color: rgba(117, 240, 229, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tg-tabs button.active > span {
  color: #dfff82;
}

.tg-tier-section {
  margin-top: 10px;
}

.tg-tier-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 2px 9px;
}

.tg-tier-heading > div {
  min-width: 0;
}

.tg-tier-heading small {
  color: #72e9dd;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tg-tier-heading h3 {
  margin: 3px 0 2px;
  color: #f2fffd;
  font-size: 17px;
  font-weight: 930;
  line-height: 1.12;
}

.tg-tier-heading p {
  max-width: 320px;
  margin: 0;
  color: var(--tg-muted);
  font-size: 9px;
  line-height: 1.3;
}

.tg-tier-heading > span {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  color: rgba(212, 243, 239, 0.66);
  font-size: 8px;
  font-weight: 750;
}

.tg-tier-heading > span strong {
  color: #dfff82;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.tg-tier-stack {
  display: grid;
  gap: 8px;
}

.tg-tier-card {
  --tg-ring: #35e3d8;
  min-height: 96px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 10px;
  padding: 10px;
  background:
    linear-gradient(105deg, rgba(8, 48, 55, 0.96), rgba(4, 28, 35, 0.98));
  border: 1px solid rgba(105, 233, 222, 0.2);
  border-radius: 13px;
  box-shadow:
    0 12px 25px rgba(0, 11, 15, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tg-tier-card::after {
  content: "";
  width: 90px;
  height: 90px;
  position: absolute;
  right: -42px;
  top: -48px;
  pointer-events: none;
  border: 1px solid rgba(86, 235, 221, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 15px rgba(65, 229, 213, 0.02);
}

.tg-tier-card.is-ready {
  --tg-ring: #b6ff62;
  background:
    radial-gradient(circle at 100% 0%, rgba(182, 255, 98, 0.12), transparent 38%),
    linear-gradient(105deg, rgba(8, 55, 58, 0.98), rgba(4, 31, 37, 0.98));
  border-color: rgba(183, 255, 103, 0.42);
}

.tg-tier-card.is-claimed {
  --tg-ring: #f5c85e;
  border-color: rgba(245, 200, 94, 0.34);
}

.tg-progress-ring {
  width: 60px;
  height: 60px;
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  background:
    conic-gradient(
      var(--tg-ring) 0 var(--tg-progress),
      rgba(127, 189, 184, 0.14) var(--tg-progress) 100%
    );
  border-radius: 50%;
  box-shadow: 0 0 18px color-mix(in srgb, var(--tg-ring) 17%, transparent);
}

.tg-progress-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  background:
    radial-gradient(circle at 40% 30%, rgba(44, 141, 139, 0.2), transparent 40%),
    #05242b;
  border: 1px solid rgba(125, 237, 226, 0.16);
  border-radius: 50%;
}

.tg-progress-ring strong,
.tg-progress-ring small {
  position: relative;
  z-index: 1;
}

.tg-progress-ring strong {
  color: #f1fffd;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.tg-progress-ring small {
  color: rgba(204, 240, 236, 0.62);
  font-size: 8px;
  font-weight: 800;
}

.tg-tier-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.tg-tier-copy small {
  color: #64e7da;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.tg-tier-copy strong {
  overflow: hidden;
  color: #f4fffd;
  font-size: 15px;
  font-weight: 930;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-tier-copy span {
  color: var(--tg-muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
}

.tg-tier-reward {
  min-width: 0;
  display: grid;
  justify-items: stretch;
  gap: 3px;
  text-align: right;
}

.tg-tier-reward > span {
  color: rgba(203, 239, 235, 0.58);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.tg-tier-reward > strong {
  overflow: hidden;
  color: #f9d873;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-tier-reward button {
  min-width: 88px;
  min-height: 31px;
  padding: 5px 8px;
  color: rgba(221, 247, 244, 0.68);
  background: rgba(10, 61, 67, 0.72);
  border: 1px solid rgba(111, 226, 217, 0.2);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
}

.tg-tier-reward button.is-ready {
  color: #092d28;
  background: linear-gradient(135deg, #e5ff84, #60e6ad);
  border-color: rgba(229, 255, 132, 0.8);
  box-shadow: 0 8px 16px rgba(116, 238, 159, 0.16);
  cursor: pointer;
}

.tg-tier-reward button.is-claimed {
  color: #4a360d;
  background: linear-gradient(135deg, #ffe89e, #eeb64f);
  border-color: rgba(255, 226, 132, 0.64);
}

.tg-tier-reward button.is-vip-required {
  color: #ffe8a5;
  background: rgba(83, 62, 22, 0.7);
  border-color: rgba(245, 200, 94, 0.26);
}

.tg-tier-reward button:disabled {
  cursor: not-allowed;
}

.tg-tier-reward button.is-claiming {
  color: #eafffc;
  background: rgba(15, 111, 110, 0.78);
}

.tg-trial-note,
.tg-inline-error {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 8px 10px;
  background: rgba(67, 50, 16, 0.72);
  border: 1px solid rgba(245, 200, 94, 0.3);
  border-radius: 10px;
}

.tg-trial-note > span {
  color: #dbff75;
}

.tg-trial-note p {
  margin: 0;
  color: rgba(255, 244, 210, 0.74);
  font-size: 9px;
  line-height: 1.3;
}

.tg-trial-note p strong {
  display: block;
  color: #fff0b8;
  font-size: 10px;
}

.tg-trial-note a {
  padding: 6px 8px;
  color: #39290b;
  text-decoration: none;
  background: #f7d36e;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 900;
}

.tg-inline-error {
  grid-template-columns: minmax(0, 1fr) auto;
  color: #ffd7d8;
  background: rgba(96, 33, 40, 0.72);
  border-color: rgba(255, 132, 142, 0.3);
  font-size: 9px;
}

.tg-inline-error button {
  padding: 6px 8px;
  color: #fff;
  background: rgba(149, 59, 68, 0.76);
  border: 1px solid rgba(255, 174, 180, 0.3);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 850;
}

.tg-rule-note {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 10px 11px;
  color: rgba(207, 240, 237, 0.64);
  background: rgba(3, 24, 30, 0.68);
  border: 1px solid rgba(99, 225, 215, 0.13);
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.35;
}

.tg-rule-note strong {
  color: #83e9df;
  font-size: 10px;
}

.tg-empty,
.tg-loading,
.tg-load-error {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 20px;
  color: var(--tg-text);
  text-align: center;
  background: var(--tg-panel);
  border: 1px solid var(--tg-line);
  border-radius: 14px;
}

.tg-loading,
.tg-load-error {
  min-height: 420px;
}

.tg-empty > span,
.tg-error-energy {
  color: var(--tg-lime);
  font-size: 26px;
  filter: drop-shadow(0 0 7px rgba(182, 255, 98, 0.4));
}

.tg-empty strong,
.tg-loading strong,
.tg-load-error strong {
  color: var(--tg-text);
  font-size: 14px;
}

.tg-empty p,
.tg-load-error p,
.tg-loading > span:last-child {
  max-width: 260px;
  margin: 0;
  color: var(--tg-muted);
  font-size: 10px;
  line-height: 1.4;
}

.tg-load-error button {
  min-height: 36px;
  padding: 7px 15px;
  color: #082c28;
  background: linear-gradient(135deg, #dfff7c, #57dfad);
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
}

.tg-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(53, 227, 216, 0.18);
  border-top-color: var(--tg-lime);
  border-radius: 50%;
  animation: tg-spin 0.8s linear infinite;
}

@keyframes tg-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 380px) {
  .tg-home-entry {
    height: 74px;
    grid-template-columns: 39px minmax(0, 1fr) auto 13px;
    gap: 7px;
    padding-inline: 9px;
  }

  .tg-home-energy {
    width: 38px;
    height: 38px;
  }

  .tg-home-energy::after {
    box-shadow: 0 31px 0 #2ee9d6, 15px 15px 0 #2ee9d6, -15px 15px 0 #b9ff64;
  }

  .tg-home-copy strong {
    font-size: 12px;
  }

  .tg-home-copy small,
  .tg-home-copy em {
    font-size: 7px;
  }

  .tg-page {
    padding-inline: 7px;
  }

  .tg-hero {
    min-height: 184px;
    padding: 13px;
  }

  .tg-hero-copy {
    width: 72%;
  }

  .tg-hero-art {
    right: -145px;
  }

  .tg-hero-copy h2 {
    font-size: 21px;
  }

  .tg-tabs button {
    min-height: 50px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1px;
    text-align: center;
  }

  .tg-tabs button > span {
    font-size: 8px;
  }

  .tg-tabs button > strong {
    font-size: 9px;
  }

  .tg-tier-card {
    grid-template-columns: 54px minmax(0, 1fr) minmax(82px, auto);
    gap: 7px;
    padding: 8px;
  }

  .tg-progress-ring {
    width: 52px;
    height: 52px;
  }

  .tg-progress-ring strong {
    font-size: 16px;
  }

  .tg-tier-copy strong {
    font-size: 13px;
  }

  .tg-tier-copy span {
    font-size: 8px;
  }

  .tg-tier-reward > strong {
    font-size: 12px;
  }

  .tg-tier-reward button {
    min-width: 80px;
    min-height: 29px;
    padding-inline: 5px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tg-spinner {
    animation: none;
  }
}
