/* ═══════════════════════════════════════
   GAMING PAGE — additional styles
   (loaded after style.css)
═══════════════════════════════════════ */

/* Show the mobile banner earlier than index.html — gaming page needs more width */
@media (max-width: 950px) {
  .mobile-banner { display: block; }
}
:root {
  --tf2:        #cf6a32;
  --tf2-dark:   #8c3f0f;
  --tf2-light:  #f7d5b5;
  --unusual:    #8650ac;
  --strange:    #cf6a32;
  --genuine:    #4d7455;
  --collector:  #aa0000;
  --unique:     #ffd700;
}

/* ═══════════════════════════════════════
   FLOATING SOCIAL BAR
═══════════════════════════════════════ */
.social-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 2.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 3px 3px 0;
}

.float-btn:hover {
  transform: translate(-2px, -3px);
  box-shadow: 5px 5px 0;
}

.float-discord {
  background: #5865f2;
  color: #fff;
  border-color: #3a47c9;
  box-shadow: 3px 3px 0 #3a47c9;
}
.float-discord:hover { box-shadow: 5px 5px 0 #3a47c9; }

.float-steam {
  background: #1b2838;
  color: #c7d5e0;
  border-color: #c7d5e0;
  box-shadow: 3px 3px 0 #4a6a8a;
}
.float-steam:hover { box-shadow: 5px 5px 0 #4a6a8a; }

.float-steam i {
  transition: filter 0.6s ease;
}

/* ═══════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════ */
.gaming-header {
  text-align: center;
  margin-bottom: 22px;
}

.gaming-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2.4rem;
  color: var(--tf2-dark);
  text-shadow: 2px 3px 0 var(--tf2-light);
}

.gaming-subtitle {
  font-size: 0.9rem;
  color: #6b2a2a;
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   STEAM PROFILE CARD
═══════════════════════════════════════ */
.steam-profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 2.5px solid var(--tf2);
  box-shadow: 4px 5px 0 var(--tf2-dark);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
  min-width: 0;
  position: relative; /* anchors the group-bookmark */
}

.steam-avatar-wrap { position: relative; flex-shrink: 0; }

.steam-avatar {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  border: 3px solid var(--tf2);
  display: block;
}

.steam-level-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: var(--tf2);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 1px 2px 3px rgba(0,0,0,0.25);
}

.steam-info { min-width: 0; }

.steam-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--tf2-dark);
  margin-bottom: 2px;
}

.steam-url {
  font-size: 0.78rem;
  color: var(--tf2);
  text-decoration: underline;
  display: block;
  margin-bottom: 6px;
  overflow-wrap: break-word;
  word-break: break-all;
}

.profile-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1.5px solid;
  padding: 3px 10px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

/* Yellow — Steam profile */
.btn-steam-profile {
  background: #c79a00;
  color: #1b2838;
  border-color: #f5c842;
  box-shadow: 2px 2px 0 #8a6800;
}
.btn-steam-profile:hover {
  background: #f5c842;
  box-shadow: 3px 3px 0 #8a6800;
}

/* backpack.tf blue */
.btn-bptf {
  background: #23272b;
  color: #c7d5e0;
  border-color: #428bca;
  box-shadow: 2px 2px 0 #1a3d5c;
}
.btn-bptf:hover {
  background: #428bca;
  color: #fff;
  box-shadow: 3px 3px 0 #1a3d5c;
}

/* Steam dark — trade URL */
.btn-trade {
  background: #1b2838;
  color: #c7d5e0;
  border-color: #66c0f4;
  box-shadow: 2px 2px 0 #0d1926;
}
.btn-trade:hover {
  background: #66c0f4;
  color: #1b2838;
  box-shadow: 3px 3px 0 #0d1926;
}

.steam-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.steam-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--tf2-light);
  border: 2px solid var(--tf2);
  border-radius: 8px;
  padding: 6px 14px;
  box-shadow: 2px 2px 0 var(--tf2-dark);
}

.stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--tf2-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: #6b3a1a;
  margin-top: 2px;
}

/* ═══════════════════════════════════════
   TF2 SECTION
═══════════════════════════════════════ */
.tf2-section {
  background: #fff;
  border: 2.5px solid var(--tf2);
  box-shadow: 4px 5px 0 var(--tf2-dark);
  border-radius: 14px;
  padding: 18px 18px 22px;
  margin-bottom: 22px;
  min-width: 0;
}

.tf2-header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--tf2);
  min-width: 0;
}

.tf2-logo {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  object-fit: cover;
  clip-path: circle(43% at center);
  animation: tf2-spin 18s linear infinite;
}

@keyframes tf2-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.tf2-header-info {
  flex: 1;
  min-width: 0;
}

.tf2-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.7rem;
  color: var(--tf2-dark);
  margin-bottom: 6px;
}

.tf2-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* badge expand text — invisible at rest, fades in on hover.
   No width change = no layout shift = no jitter between adjacent badges. */
.badge-expand {
  display: inline-block;
  opacity: 0;
  white-space: nowrap;
  vertical-align: middle;
  transition: opacity 0.25s ease;
}

.tf2-badge:hover .badge-expand {
  opacity: 1;
}

.tf2-badge {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tf2-light);
  border: 2px solid var(--tf2);
  color: var(--tf2-dark);
  box-shadow: 2px 2px 0 var(--tf2-dark);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── Mercenary Badge (far right of TF2 header) ── */
.merc-badge-display {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  border-left: 2px dashed var(--tf2-light);
  padding-left: 14px;
  margin-left: auto;
}

.merc-badge-img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.2));
  transition: transform 0.25s ease;
}

/* Three.js badge canvas */
#badge-3d {
  display: block;
}

.merc-badge-img:hover { transform: scale(1.1) rotate(-3deg); }

.merc-badge-label {
  font-family: 'Fredoka One', cursive;
  font-size: 0.72rem;
  color: var(--tf2-dark);
  line-height: 1.2;
}

.merc-hire-date {
  font-size: 0.68rem;
  color: #8b5a2a;
  font-weight: 700;
  font-style: italic;
}

/* ── Subsection headings ── */
.subsection-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: var(--tf2-dark);
  text-align: center;
  margin: 0 0 6px;
}

.subsection-hint {
  font-size: 0.78rem;
  color: #8b5a2a;
  text-align: center;
  margin-bottom: 14px;
  font-style: italic;
}

/* ── Item cards grid ── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.item-card {
  background: #fff;
  border: 2.5px solid;
  border-radius: 10px;
  box-shadow: 3px 3px 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.item-card:hover {
  transform: translate(-2px, -3px);
}

.q-unusual  { border-color: var(--unusual);   box-shadow: 3px 3px 0 #5c3478;  }
.q-unusual:hover  { box-shadow: 5px 5px 0 #5c3478;  }
.q-strange  { border-color: var(--strange);   box-shadow: 3px 3px 0 var(--tf2-dark); }
.q-strange:hover  { box-shadow: 5px 5px 0 var(--tf2-dark); }
.q-genuine  { border-color: var(--genuine);   box-shadow: 3px 3px 0 #2e4e34;  }
.q-genuine:hover  { box-shadow: 5px 5px 0 #2e4e34;  }
.q-collector{ border-color: var(--collector); box-shadow: 3px 3px 0 #700000;  }
.q-collector:hover{ box-shadow: 5px 5px 0 #700000;  }
.q-unique   { border-color: var(--unique);    box-shadow: 3px 3px 0 #9a8000;  }
.q-unique:hover   { box-shadow: 5px 5px 0 #9a8000;  }

.item-img-wrap {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1e;
  border-radius: 8px;
  padding: 6px;
  position: relative;
  overflow: hidden;
}

.q-unusual  .item-img-wrap { background: linear-gradient(135deg, #1a0e2e, #281540); }
.q-genuine  .item-img-wrap { background: linear-gradient(135deg, #0a1c0e, #162b19); }
.q-strange  .item-img-wrap { background: linear-gradient(135deg, #291408, #3b2010); }
.q-collector .item-img-wrap { background: linear-gradient(135deg, #200808, #350e0e); }

.item-img-wrap img {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  image-rendering: pixelated;
}

.item-img-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a0606, #2d0d0d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #5a1a1a;
  font-family: 'Fredoka One', cursive;
}

.item-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  min-width: 0;
}

.item-quality-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.unusual-label   { background: #e8d4ff; color: var(--unusual);   border: 1.5px solid var(--unusual);   }
.strange-label   { background: var(--tf2-light); color: var(--tf2-dark); border: 1.5px solid var(--tf2); }
.genuine-label   { background: #d4efd8; color: var(--genuine);   border: 1.5px solid var(--genuine);   }
.collector-label { background: #ffd4d4; color: var(--collector); border: 1.5px solid var(--collector); }
.unique-label      { background: #fff8cc; color: #8a6800;  border: 1.5px solid var(--unique);  }
.killstreak-label  { background: #fff0cc; color: #6a5200;  border: 1.5px solid #d4a000;        }

.item-name {
  font-family: 'Fredoka One', cursive;
  font-size: 0.88rem;
  color: #2a0a0a;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.item-effect  { font-size: 0.72rem; color: var(--unusual); font-weight: 700; }

.item-subname {
  font-size: 0.68rem;
  color: #888;
  font-style: italic;
}

.item-grade {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.grade-civilian { background: #b0c3d9; color: #1a2a3a; }

.item-kills {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--tf2-dark);
}

.item-secondary-kills {
  font-size: 0.68rem;
  font-weight: 700;
  color: #888;
}

.item-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a2a00;
  background: var(--tf2-light);
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 2px;
}

/* ═══════════════════════════════════════
   HOURS CHART
═══════════════════════════════════════ */
.hours-section {
  background: #fff;
  border: 2.5px solid var(--pink-dark);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 18px 18px 22px;
  margin-bottom: 22px;
  min-width: 0;
}

.hours-total {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--red-deep);
  margin-top: 2px;
  margin-bottom: 0;
}

.hours-updated {
  font-size: 0.72rem;
  color: #a07070;
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 14px;
}

.hours-bars { display: flex; flex-direction: column; gap: 13px; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bar-game-link {
  flex-shrink: 0;
  display: block;
  border-radius: 4px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.bar-game-link:hover {
  opacity: 0.8;
  transform: scale(1.06);
}

.bar-game-img {
  width: 60px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1.5px solid var(--pink-dark);
  display: block;
}

.bar-info { flex: 1; min-width: 0; }

.bar-game-name {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 4px;
  min-width: 0;
}

.bar-game-name-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.bar-achiev {
  font-size: 0.67rem;
  color: #b08888;
  font-weight: 600;
  flex-shrink: 0;
}

.bar-track {
  width: 100%;
  height: 14px;
  background: var(--pink-light);
  border-radius: 7px;
  border: 1.5px solid var(--pink-dark);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 7px;
  width: var(--pct, 0%);
  min-width: 4px;
}

.tf2-bar     { background: linear-gradient(90deg, var(--tf2-dark), var(--tf2)); }
.payday-bar  { background: linear-gradient(90deg, #3a1a00, #c8520a); }
.rdr2-bar    { background: linear-gradient(90deg, #2a1a00, #8b5e2a); }
.diva-bar    { background: linear-gradient(90deg, #1a6e6a, var(--teal)); }
.miku-bar    { background: linear-gradient(90deg, #1a8f8b, var(--teal)); }

.bar-hours {
  font-family: 'Fredoka One', cursive;
  font-size: 0.88rem;
  color: var(--red-deep);
  flex-shrink: 0;
  width: 44px;
  text-align: right;
}

/* ═══════════════════════════════════════
   HIGHLIGHTS (Steam + Misc)
═══════════════════════════════════════ */
.highlights-section {
  background: #fff;
  border: 2.5px solid var(--pink-dark);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 18px 18px 22px;
  margin-bottom: 22px;
  min-width: 0;
}

/* Divider + secondary sub-title inside a combined highlights section */
.steam-section-divider {
  border: none;
  border-top: 2px solid var(--pink-dark);
  margin: 20px 0 14px;
  opacity: 0.5;
}

.subsection-subtitle {
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  color: var(--text-muted, #888);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
}

/* Steam game cards — Steam colour palette */
.steam-card {
  border: 2.5px solid #2a475e;
  box-shadow: 3px 3px 0 #0d1926;
  border-radius: 10px;
  background: #1b2838;
  overflow: hidden;
  background: #1a0a00;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.steam-card:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 #0d1926;
}

.steam-card img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}

/* Show "TEAM FORTRESS 2" title text — keep top of banner visible */
.tf2-card-wrap .steam-card img {
  object-position: top center;
}

.steam-card .highlight-note {
  font-size: 0.75rem;
  padding: 7px 10px;
  color: #c7d5e0;
  font-style: italic;
}

/* ── Character peek effect (TF2 / Miku / HL2) ── */
.char-card-wrap {
  position: relative;
  clip-path: inset(0px 0px 0px 0px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              clip-path 0s 0.6s;
}

.char-card-wrap:hover {
  clip-path: inset(-240px -160px 0px -160px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              clip-path 0s 0s;
}

.char-card-wrap .steam-card {
  position: relative;
  z-index: 2;
}

.char-peek {
  position: absolute;
  bottom: 0;
  right: 8px;
  height: 230px;
  width: auto;
  z-index: 1;
  transform-origin: bottom center;
  transform: translateY(120%);
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Miku — straight up */
.char-card-wrap:hover .char-peek {
  transform: translateY(-15%);
}

/* Scout — pivot centred on card, 11-o'clock lean */
.tf2-card-wrap .char-peek {
  left: 50%; right: auto;
  transform: translateX(-50%) translateY(120%) rotate(-30deg);
}
.tf2-card-wrap:hover .char-peek {
  transform: translateX(-50%) translateY(-15%) rotate(-30deg);
}

/* Freeman — pivot centred on card, 1-o'clock lean */
.hl2-card-wrap .char-peek {
  left: 50%; right: auto;
  transform: translateX(-50%) translateY(120%) rotate(30deg);
}
.hl2-card-wrap:hover .char-peek {
  transform: translateX(-50%) translateY(-15%) rotate(30deg);
}

/* ── Lean reactions ── */

/* TF2 hovered → Miku and HL2 lean right */
.highlights-grid:has(.tf2-card-wrap:hover) .miku-card-wrap,
.highlights-grid:has(.tf2-card-wrap:hover) .hl2-card-wrap {
  transform: translateX(14px) rotate(8deg);
}

/* Miku hovered → TF2 leans left, HL2 leans right */
.highlights-grid:has(.miku-card-wrap:hover) .tf2-card-wrap {
  transform: translateX(-14px) rotate(-8deg);
}
.highlights-grid:has(.miku-card-wrap:hover) .hl2-card-wrap {
  transform: translateX(14px) rotate(8deg);
}

/* HL2 hovered → TF2 and Miku lean left */
.highlights-grid:has(.hl2-card-wrap:hover) .tf2-card-wrap,
.highlights-grid:has(.hl2-card-wrap:hover) .miku-card-wrap {
  transform: translateX(-14px) rotate(-8deg);
}

/* ── Misc character peeks (Mystery Dungeon / Mario Maker) ── */
.char-card-wrap .misc-card {
  position: relative;
  z-index: 2;
}

/* Cancel misc-card's own lift — char-peek provides the hover feedback */
.char-card-wrap .misc-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* Misc chars are smaller to suit the compact cards */
.misc-highlights .char-peek {
  height: 180px;
}

/* Flex so partial last rows center instead of left-aligning */
.misc-highlights .highlights-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.misc-highlights .highlights-grid > * {
  flex: 0 1 calc(33.333% - 8px);
  min-width: 175px;
}

/* Misc (non-Steam) game cards */
.misc-card {
  border: 2.5px solid var(--pink-dark);
  box-shadow: var(--shadow-sm);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.misc-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 5px 0 var(--red-deep);
}

.misc-card-img {
  width: 100%;
  height: 110px;
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.misc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.misc-platform-tag {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-family: 'Fredoka One', cursive;
  font-size: 0.65rem;
  background: rgba(0,0,0,0.62);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  backdrop-filter: blur(2px);
}

/* ── Platform colour tints (DS / 3DS / PC / Switch) ── */
.ds-img::after,
.tds-img::after,
.pc-img::after,
.switch-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}
.ds-img::after     { background: rgba(180, 110, 20, 0.13); } /* warm amber — vintage DS feel    */
.tds-img::after    { background: rgba(20,  90, 210, 0.11); } /* cool blue  — 3DS feel           */
.pc-img::after     { background: rgba(0,  180,  80, 0.10); } /* green      — PC/Windows feel    */
.switch-img::after { background: rgba(230,  20,  60, 0.10); } /* red        — Nintendo Switch feel */

/* Tomodachi Life — centre the logo a bit higher in the crop window */
.tomodachi-img img { object-position: center 20%; }

.misc-card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 0.82rem;
  color: var(--red-deep);
  padding: 6px 10px 2px;
  line-height: 1.3;
}

.misc-card .highlight-note {
  font-size: 0.72rem;
  padding: 2px 10px 8px;
  color: #6b2a2a;
  font-style: italic;
}

/* ═══════════════════════════════════════
   GAMING PAGE STICKERS
═══════════════════════════════════════ */

/* TF2 class icon backing — orange so the white silhouettes show up */
.sticker-tf2 { background: #cf6a32; }

/* All gaming sticker images use contain so nothing gets squashed */
.gaming-stickers .sticker-backing img { object-fit: contain; }

/* ── Clip-path shapes (one per sticker) ── */
.gs1  .sticker-backing { clip-path: polygon(15% 2%, 85% 0%, 100% 15%, 97% 85%, 83% 100%, 14% 98%, 0% 83%, 3% 13%); }
.gs2  .sticker-backing { clip-path: polygon(2% 5%, 98% 0%, 92% 100%, 12% 100%); }
.gs3  .sticker-backing { clip-path: polygon(50% 0%, 100% 28%, 85% 100%, 15% 100%, 0% 30%); }
.gs4  .sticker-backing { clip-path: polygon(8% 0%, 100% 6%, 92% 100%, 0% 92%); }
.gs5  .sticker-backing { clip-path: polygon(25% 0%, 76% 3%, 100% 26%, 96% 75%, 72% 100%, 20% 97%, 0% 71%, 4% 24%); }
.gs6  .sticker-backing { clip-path: polygon(12% 0%, 88% 4%, 100% 100%, 0% 96%); }
.gs7  .sticker-backing { clip-path: polygon(20% 0%, 80% 3%, 100% 20%, 100% 80%, 78% 100%, 18% 98%, 0% 78%, 0% 20%); }
.gs8  .sticker-backing { clip-path: polygon(5% 8%, 96% 0%, 100% 94%, 6% 100%); }
.gs9  .sticker-backing { clip-path: polygon(10% 0%, 90% 5%, 100% 45%, 55% 100%, 0% 45%); }
.gs10 .sticker-backing { clip-path: polygon(14% 0%, 86% 3%, 100% 16%, 97% 87%, 84% 100%, 12% 98%, 0% 85%, 3% 14%); }
.gs11 .sticker-backing { clip-path: polygon(0% 0%, 100% 6%, 96% 100%, 4% 94%); }
.gs12 .sticker-backing { clip-path: polygon(30% 0%, 70% 2%, 100% 35%, 95% 80%, 65% 100%, 28% 98%, 0% 78%, 5% 33%); }
.gs13 .sticker-backing { clip-path: polygon(3% 6%, 97% 0%, 94% 97%, 0% 100%); }
.gs14 .sticker-backing { clip-path: polygon(26% 0%, 74% 0%, 100% 48%, 74% 100%, 26% 100%, 0% 48%); }
.gs15 .sticker-backing { clip-path: polygon(0% 12%, 45% 0%, 100% 8%, 98% 100%, 5% 92%); }
.gs16 .sticker-backing { clip-path: polygon(6% 0%, 94% 4%, 100% 98%, 0% 96%); }
.gs17 .sticker-backing { clip-path: polygon(25% 5%, 75% 0%, 100% 25%, 98% 75%, 75% 100%, 22% 97%, 0% 73%, 3% 23%); }
.gs18 .sticker-backing { clip-path: polygon(10% 0%, 100% 5%, 90% 100%, 0% 94%); }
.gs19 .sticker-backing { clip-path: polygon(22% 0%, 78% 4%, 100% 22%, 96% 78%, 76% 100%, 20% 97%, 0% 76%, 4% 20%); }
.gs20 .sticker-backing { clip-path: polygon(50% 4%, 95% 22%, 90% 100%, 8% 98%, 4% 20%); }
.gs21 .sticker-backing { clip-path: polygon(15% 0%, 100% 8%, 86% 100%, 0% 90%); }
.gs22 .sticker-backing { clip-path: polygon(8% 12%, 40% 0%, 92% 5%, 100% 55%, 85% 100%, 15% 98%, 0% 60%); }
.gs23 .sticker-backing { clip-path: polygon(18% 0%, 82% 3%, 100% 18%, 98% 82%, 80% 100%, 16% 98%, 0% 80%, 2% 16%); }
.gs24 .sticker-backing { clip-path: polygon(5% 0%, 95% 4%, 100% 95%, 2% 100%); }
.gs25 .sticker-backing { clip-path: polygon(30% 2%, 70% 0%, 100% 32%, 97% 70%, 68% 100%, 28% 98%, 2% 68%, 5% 28%); }
.gs26 .sticker-backing { clip-path: polygon(12% 0%, 88% 4%, 100% 88%, 85% 100%, 10% 96%, 0% 80%); }
.gs27 .sticker-backing { clip-path: polygon(22% 0%, 78% 2%, 100% 22%, 98% 78%, 76% 100%, 20% 98%, 0% 76%, 2% 20%); }
.gs28 .sticker-backing { clip-path: polygon(50% 0%, 97% 26%, 84% 100%, 14% 98%, 3% 22%); }
.gs29 .sticker-backing { clip-path: polygon(6% 6%, 94% 0%, 100% 94%, 4% 100%); }
.gs30 .sticker-backing { clip-path: polygon(18% 0%, 82% 3%, 100% 18%, 100% 82%, 80% 100%, 16% 97%, 0% 80%, 0% 18%); }
.gs31 .sticker-backing { clip-path: polygon(28% 0%, 72% 4%, 100% 30%, 94% 72%, 70% 100%, 26% 96%, 0% 68%, 6% 26%); }

/* ── Left side (roam freely, up to ~20% inward) ── */
.gs1  { top:  5%;  left:  4%;  --rot: -14deg; animation-delay: 0s;   }  /* Scout       */
.gs26 { top: 14%;  left: 15%;  --rot:  11deg; animation-delay: 0.3s; }  /* :kaitoDIVA: */
.gs3  { top: 26%;  left:  5%;  --rot:   8deg; animation-delay: 0.5s; }  /* Pyro        */
.gs28 { top: 34%;  left: 18%;  --rot:  -6deg; animation-delay: 0.9s; }  /* :mikuDIVA:  */
.gs23 { top: 43%;  left: 10%;  --rot:  20deg; animation-delay: 2.3s; }  /* :alyx:      */
.gs30 { top: 51%;  left: 20%;  --rot:   4deg; animation-delay: 1.3s; }  /* :mikuDIVA:  */
.gs11 { top: 57%;  left:  5%;  --rot:  10deg; animation-delay: 0.8s; }  /* :sentry:    */
.gs5  { top: 63%;  left: 16%;  --rot:  -6deg; animation-delay: 1.0s; }  /* Heavy       */
.gs13 { top: 69%;  left:  4%;  --rot: -12deg; animation-delay: 2.0s; }  /* :sticky:    */
.gs15 { top: 75%;  left: 14%;  --rot:   5deg; animation-delay: 0.4s; }  /* :demoticon: */
.gs7  { top: 80%;  left:  5%;  --rot:  16deg; animation-delay: 0.3s; }  /* Medic       */
.gs17 { top: 85%;  left: 18%;  --rot: -18deg; animation-delay: 1.2s; }  /* :mikuDIVA:  */
.gs19 { top: 89%;  left:  7%;  --rot:  12deg; animation-delay: 0.7s; }  /* :lenDIVA:   */
.gs9  { top: 94%;  left: 13%;  --rot: -20deg; animation-delay: 1.5s; }  /* Spy         */
.gs21 { top: 98%;  left:  4%;  --rot:  -8deg; animation-delay: 1.8s; }  /* :gordon:    */

/* ── Right side — CLEAR ZONE top 28%–68% (sticky note + psst area) ── */
/* Above zone (top < 28%) */
.gs10 { top:  7%;  right: 16%;  --rot:  -8deg; animation-delay: 2.2s; }  /* :medicon:    */
.gs29 { top: 13%;  right:  6%;  --rot:  20deg; animation-delay: 2.5s; }  /* :mikuDIVA:   */
.gs14 { top: 18%;  right: 20%;  --rot:  -5deg; animation-delay: 1.4s; }  /* :balloonicorn*/
.gs2  { top: 22%;  right:  8%;  --rot:  12deg; animation-delay: 0.4s; }  /* Soldier      */
.gs22 { top: 26%;  right: 20%;  --rot: -24deg; animation-delay: 1.6s; }  /* :headcrab:   */
/* Below zone (top > 68%) */
.gs4  { top: 70%;  right: 18%;  --rot: -16deg; animation-delay: 1.1s; }  /* Demoman      */
.gs12 { top: 73%;  right:  4%;  --rot:  14deg; animation-delay: 0.2s; }  /* :spycon:     */
.gs27 { top: 76%;  right: 22%;  --rot:  -8deg; animation-delay: 1.9s; }  /* :meikoDIVA:  */
.gs31 { top: 79%;  right:  9%;  --rot: -18deg; animation-delay: 0.5s; }  /* :mikuDIVA:   */
.gs16 { top: 82%;  right: 18%;  --rot:  19deg; animation-delay: 0.9s; }  /* :missing:    */
.gs6  { top: 85%;  right:  5%;  --rot:   7deg; animation-delay: 0.6s; }  /* Engineer     */
.gs18 { top: 88%;  right: 14%;  --rot: -11deg; animation-delay: 2.6s; }  /* :rinDIVA:    */
.gs8  { top: 91%;  right: 20%;  --rot: -22deg; animation-delay: 1.7s; }  /* Sniper       */
.gs20 { top: 95%;  right:  5%;  --rot:   8deg; animation-delay: 0.1s; }  /* :lukaDIVA:   */
.gs24 { top: 98%;  right: 16%;  --rot:  15deg; animation-delay: 2.1s; }  /* :health:     */
.gs25 { top:104%;  right:  6%;  --rot:  -9deg; animation-delay: 0.6s; }  /* :witch:      */

/* ── Progressive blur as viewport closes in (mirrors index page behaviour) ── */
@media (max-width: 1100px) {
  .gs2, .gs4, .gs6, .gs8, .gs10, .gs12, .gs14, .gs16, .gs18, .gs20, .gs22, .gs24, .gs25,
  .gs27, .gs29, .gs31 {
    filter: blur(1px) drop-shadow(2px 3px 4px rgba(0,0,0,0.14));
    opacity: 0.7;
  }
}
@media (max-width: 950px) {
  .gs2, .gs4, .gs6, .gs8, .gs10, .gs12, .gs14, .gs16, .gs18, .gs20, .gs22, .gs24, .gs25,
  .gs27, .gs29, .gs31 {
    filter: blur(3.5px) drop-shadow(1px 2px 2px rgba(0,0,0,0.06));
    opacity: 0.35;
  }
  .gs1, .gs3, .gs5, .gs7, .gs9, .gs11, .gs13, .gs15, .gs17, .gs19, .gs21, .gs23,
  .gs26, .gs28, .gs30 {
    filter: blur(0.8px) drop-shadow(2px 3px 4px rgba(0,0,0,0.15));
    opacity: 0.65;
  }
  .group-sticky { display: none; }
}

/* ═══════════════════════════════════════
   TF2 STATS SPLIT
═══════════════════════════════════════ */
.tf2-stats-split {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 4px;
}

.tf2-class-col,
.tf2-stats-col {
  flex: 1;
  min-width: 0;
}

.class-col-label {
  font-family: 'Fredoka One', cursive;
  font-size: 0.8rem;
  color: var(--tf2-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.class-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.class-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.class-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--tf2);
  border-radius: 50%;
  padding: 3px;
}

.class-label {
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  color: var(--tf2-dark);
  width: 68px;
  flex-shrink: 0;
}

.class-bar-track {
  flex: 1;
  height: 12px;
  background: var(--tf2-light);
  border-radius: 6px;
  border: 1.5px solid var(--tf2);
  overflow: hidden;
}

.class-bar-hours {
  font-family: 'Fredoka One', cursive;
  font-size: 0.8rem;
  color: var(--tf2-dark);
  width: 44px;
  text-align: right;
  flex-shrink: 0;
}

/* Statistics column */
.tf2-stat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tf2-stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  border-bottom: 1px dashed var(--tf2-light);
  padding-bottom: 5px;
}

.stat-key { color: var(--tf2-dark); font-weight: 700; }
.stat-val  { font-family: 'Fredoka One', cursive; color: var(--tf2); font-size: 0.95rem; }

/* ── Foil badge — TF2 main-menu style ── */
.foil-badge-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tf2-light);
  border: 2px solid var(--tf2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 4px;
}

/* 3-D scene */
.badge-scene {
  position: relative;
  perspective: 260px;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

/* per-badge glow orb sitting behind the card */
.badge-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  pointer-events: none;
  animation: glow-pulse 2.5s ease-in-out infinite;
  z-index: 0;
}
.badge-scene-regular .badge-glow {
  background: radial-gradient(circle, rgba(207,106,50,0.55) 0%, transparent 68%);
}
.badge-scene-foil .badge-glow {
  background: radial-gradient(circle, rgba(247,200,110,0.6) 0%, transparent 68%);
  animation-delay: -1.25s; /* offset so they pulse out of sync */
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1);    }
  50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.22); }
}

.badge-card {
  width: 64px;
  height: 64px;
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  cursor: pointer;
  animation: badge-idle 5s ease-in-out infinite;
  transition: filter 0.2s ease;
}
/* offset the two badges so they rock out of phase */
.badge-card-foil { animation-delay: -2.5s; }

.badge-card:hover {
  filter: drop-shadow(0 4px 14px rgba(247,200,110,0.55));
}

/* front & back faces */
.badge-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.badge-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.badge-back {
  transform: rotateY(180deg);
}

/* idle: gentle rocking + float */
@keyframes badge-idle {
  0%   { transform: rotateY(-9deg)  rotateX( 3deg) translateY(0px);  }
  25%  { transform: rotateY( 4deg)  rotateX(-2deg) translateY(-5px); }
  50%  { transform: rotateY( 9deg)  rotateX( 3deg) translateY(-7px); }
  75%  { transform: rotateY(-3deg)  rotateX(-1deg) translateY(-3px); }
  100% { transform: rotateY(-9deg)  rotateX( 3deg) translateY(0px);  }
}

/* plink: snappy spin with spring bounce */
.badge-card.badge-plink {
  animation: badge-plink 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes badge-plink {
  0%   { transform: rotateY(0deg)   scale(1)    translateY(0px);  }
  20%  { transform: rotateY(90deg)  scale(1.08) translateY(-6px); }
  45%  { transform: rotateY(200deg) scale(1.12) translateY(-9px); }
  65%  { transform: rotateY(320deg) scale(1.05) translateY(-5px); }
  80%  { transform: rotateY(360deg) scale(0.94) translateY( 2px); }
  90%  { transform: rotateY(360deg) scale(1.03) translateY(-1px); }
  100% { transform: rotateY(360deg) scale(1)    translateY(0px);  }
}

.foil-badge-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: auto;
  text-align: right;
}

.foil-badge-shimmer {
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  background: linear-gradient(90deg, var(--tf2-dark), var(--tf2), #f7c86e, var(--tf2), var(--tf2-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: foil-sweep 3s linear infinite;
}

.foil-badge-level {
  font-family: 'Fredoka One', cursive;
  font-size: 0.8rem;
  color: var(--tf2-dark);
}

.foil-badge-hint {
  font-size: 0.62rem;
  color: #a07050;
  font-style: italic;
}

@keyframes foil-sweep { to { background-position: 200% center; } }

/* Dynamic bar for non-TF2 games in hours chart */
.dynamic-bar { background: linear-gradient(90deg, #2e1a4a, #7c4aac); }

/* ═══════════════════════════════════════
   PRIZED COLLECTION
═══════════════════════════════════════ */
.prized-collection {
  border-radius: 14px;
  overflow: hidden;
  border: 2.5px solid var(--pink-dark);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.prized-collection-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--tf2-dark);
  text-align: center;
  padding: 14px 20px;
  margin: 0;
  background: #fff;
  border-bottom: 2.5px solid var(--tf2);
}

.prized-group { padding: 16px 18px; }

.prized-tf2   { background: var(--tf2-light); border-bottom: 2px solid var(--tf2); border-left: 2.5px solid var(--tf2); border-right: 2.5px solid var(--tf2); }
.prized-steam { background: #fff; }

.prized-group-label {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--tf2-dark);
  margin: 0 0 12px;
  text-align: center;
}

.prized-items-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* compact item cards inside prized grid */
.prized-items-grid .item-card       { padding: 7px; }
.prized-items-grid .item-img-wrap   { height: 70px; }
.prized-items-grid .item-img-wrap img { max-height: 62px; }
.prized-items-grid .item-name         { font-size: 0.7rem; }
.prized-items-grid .item-quality-label { font-size: 0.58rem; padding: 1px 5px; }
.prized-items-grid .item-effect        { font-size: 0.62rem; }
.prized-items-grid .item-kills          { font-size: 0.62rem; }
.prized-items-grid .item-secondary-kills{ font-size: 0.62rem; }
.prized-items-grid .item-grade         { font-size: 0.58rem; }

.item-placeholder {
  border-color: #ccc !important;
  box-shadow: 2px 2px 0 #aaa !important;
  opacity: 0.45;
}

/* ═══════════════════════════════════════
   GAMING FOOTER
═══════════════════════════════════════ */
.gaming-footer a {
  color: var(--red-deep);
  text-decoration: underline;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
/* Elevate the page content above the sticky note so psst lines go underneath */
body.gaming-body .page-wrap { position: relative; z-index: 1; }

/* ═══════════════════════════════════════
   GROUP BOOKMARK (mobile ≤950px)
═══════════════════════════════════════ */
.group-bookmark {
  display: none; /* desktop: group-sticky handles this */
}

@media (max-width: 950px) {
  .group-bookmark {
    display: block;
    position: absolute;
    top: 0;
    right: 22px;
    width: 40px;
    height: 68px;
    background: var(--red-deep);
    /* double-tip bookmark shape */
    clip-path: polygon(0 0, 100% 0, 100% 82%, 75% 100%, 50% 82%, 25% 100%, 0 82%);
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3;
    transform-origin: top center;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1),
                filter 0.3s ease;
  }

  /* subtle shine stripe */
  .group-bookmark::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 9px;
    width: 5px;
    height: 34px;
    background: rgba(255,255,255,0.22);
    border-radius: 3px;
    pointer-events: none;
  }

  /* gentle idle wiggle to invite a tap */
  .group-bookmark:not(.bookmark-pulled) {
    animation: bookmark-idle 3.5s ease-in-out 1.8s infinite;
  }

  .group-bookmark:hover {
    filter: drop-shadow(2px 5px 10px rgba(0,0,0,0.4)) brightness(1.1);
    animation: none;
  }

  /* pulled state — bookmark yanked downward + slight twist */
  .group-bookmark.bookmark-pulled {
    transform: translateY(52px) rotate(-10deg) scale(1.08);
    filter: drop-shadow(4px 8px 14px rgba(0,0,0,0.35));
  }
}

@keyframes bookmark-idle {
  0%, 100% { transform: rotate(0deg)    translateY(0);    }
  20%       { transform: rotate(-1.5deg) translateY(-1px); }
  60%       { transform: rotate(1deg)   translateY(-1px); }
}

/* ═══════════════════════════════════════
   GROUP STICKY NOTE
═══════════════════════════════════════ */
.group-sticky {
  position: fixed;
  right: -152px;
  top: 44%;
  transform: translateY(-50%) rotate(4deg);
  z-index: 0; /* sits below page content — see body.gaming-body .page-wrap */
  width: 206px;
  filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.2));
  transition: right 0.4s ease, transform 0.4s ease, filter 0.4s ease;
  animation: sticky-idle 4s ease-in-out 1.5s infinite;
}

.group-sticky:hover {
  right: 6px;
  transform: translateY(-50%) rotate(1.5deg);
  filter: drop-shadow(5px 8px 16px rgba(0,0,0,0.28));
  animation: none;
}

@keyframes sticky-idle {
  0%, 100% { transform: translateY(-50%) rotate(4deg);   }
  50%       { transform: translateY(-50%) rotate(2.5deg); }
}

.sticky-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 20px;
  background: rgba(252, 232, 240, 0.82);
  border: 1.5px solid #e8728a;
  border-radius: 3px;
  z-index: 1;
  pointer-events: none;
}

.group-sticky-inner {
  position: relative;
  display: block;
  background: #fffdf8;
  padding: 28px 16px 40px;
  color: #5a2a00;
  cursor: default;
  border-radius: 2px 2px 0 0;
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 100%,
    96% 96%, 91% 100%, 86% 94%, 81% 99%, 76% 95%,
    71% 100%, 66% 94%, 61% 99%, 56% 95%, 51% 100%,
    46% 95%, 41% 100%, 36% 94%, 31% 99%, 26% 95%,
    21% 100%, 16% 95%, 11% 99%, 6% 94%, 1% 99%, 0% 95%
  );
}

/* faint hare watermark imprinted on the note */
.group-sticky-inner::before {
  content: '𓃹';
  position: absolute;
  top: 12%;
  right: 8%;
  font-size: 5.5rem;
  line-height: 1;
  color: #8c3f0f;
  opacity: 0.13;
  transform: rotate(-22deg) scaleX(-1);
  pointer-events: none;
  user-select: none;
}

.sticky-psst {
  font-size: 0.72rem;
  font-style: italic;
  color: #a07070;
  margin: 0 0 6px;
}

.sticky-main {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  color: var(--tf2-dark);
  margin: 0 0 7px;
  line-height: 1.3;
}

.sticky-sub {
  font-size: 0.74rem;
  color: #7a5a5a;
  font-style: italic;
  margin: 0 0 4px;
}

/* ── Bunny-ear button ── */
.sticky-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;          /* room for ears above */
  padding: 10px 18px;
  background: var(--pink-dark);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 0.92rem;
  border-radius: 50px;       /* pill */
  text-decoration: none;
  box-shadow: 0 4px 0 #c45070;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* left ear */
.sticky-btn::before,
.sticky-btn::after {
  content: '';
  position: absolute;
  top: -18px;
  width: 13px;
  height: 22px;
  border-radius: 50% 50% 40% 40%;
  background: var(--pink-dark);
  /* inner ear highlight */
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.35);
  transition: transform 0.18s ease;
}
.sticky-btn::before { left:  26%; transform: rotate(-14deg); }
.sticky-btn::after  { right: 26%; transform: rotate( 14deg); }

.sticky-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 #c45070;
}
.sticky-btn:hover::before { transform: rotate(-18deg) translateY(-2px); }
.sticky-btn:hover::after  { transform: rotate( 18deg) translateY(-2px); }

/* ═══════════════════════════════════════
   PSST WHISPER EFFECT
═══════════════════════════════════════ */
.psst-wrapper {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.psst-text {
  font-family: 'Special Elite', cursive;
  font-size: 1rem;
  color: var(--tf2-dark);
  opacity: 0.9;
  white-space: nowrap;
  animation: psst-float 2s ease-in-out infinite;
}

.psst-text-b {
  animation-delay: 0.45s;
  animation-duration: 2.6s;
}

.psst-line {
  display: block;
  overflow: visible;
}

/* Each line draws itself from right (sticky note) → left (reader), then fades */
.psst-line path {
  stroke-dasharray: 115;
  stroke-dashoffset: 115;
  opacity: 0;
  animation: psst-pulse 1.4s ease-in-out infinite;
}

.psst-l1 path { animation-delay: 0s;    }
.psst-l2 path { animation-delay: 0.35s; }
.psst-l3 path { animation-delay: 0.7s;  }
.psst-l4 path { animation-delay: 1.05s; }

@keyframes psst-float {
  0%   { transform: translateY(0)    rotate(0deg);    }
  20%  { transform: translateY(-5px) rotate(1.5deg);  }
  50%  { transform: translateY(3px)  rotate(-1deg);   }
  80%  { transform: translateY(-4px) rotate(1deg);    }
  100% { transform: translateY(0)    rotate(0deg);    }
}

@keyframes psst-pulse {
  0%   { stroke-dashoffset: 115; opacity: 0;   }
  12%  { opacity: 1;                            }
  75%  { opacity: 0.85;                         }
  100% { stroke-dashoffset: 0;   opacity: 0;   }
}

.group-sticky.psst-gone .psst-wrapper {
  opacity: 0;
}

/* ── Mobile: overlay backdrop for sticky-note modal ── */
.sticky-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 0, 20, 0);
  z-index: 9999;
  transition: background 0.35s ease;
}
.sticky-modal-overlay.active {
  background: rgba(10, 0, 20, 0.78);
}

/* ── Mobile: sticky note as centred modal ── */
@media (max-width: 950px) {
  .group-sticky.sticky-modal-open {
    display: block;
    right: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-1.5deg);
    z-index: 10000;
    animation: none;
    filter: drop-shadow(5px 10px 24px rgba(0,0,0,0.5));
  }
  .group-sticky.sticky-modal-open .psst-wrapper {
    display: none;
  }
}

@media (max-width: 600px) {
  .steam-profile-card  { flex-direction: column; text-align: center; }
  .steam-stats-row     { justify-content: center; }
  .tf2-header-bar      { flex-wrap: wrap; justify-content: center; text-align: center; }
  .merc-badge-display  { border-left: none; border-top: 2px dashed var(--tf2-light); padding-left: 0; padding-top: 12px; margin-left: 0; width: 100%; }
  .tf2-meta-row        { justify-content: center; }
  .items-grid          { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid     { grid-template-columns: 1fr; }
  .misc-highlights .highlights-grid > * { flex: 1 1 100%; }
  .tf2-stats-split     { flex-direction: column; }
  .prized-items-grid   { grid-template-columns: repeat(3, 1fr); }
  /* group-sticky hidden at ≤950px — see that media query */
}

/* ═══════════════════════════════════════
   LARGE SCREENS — 1440p+  (scale ≈ 1.26×)
═══════════════════════════════════════ */
@media (min-width: 1440px) {

  /* ── Section headers ── */
  .gaming-title    { font-size: 3rem; }
  .tf2-title       { font-size: 2.1rem; }
  .subsection-title { font-size: 1.5rem; }
  .prized-collection-title { font-size: 1.6rem; padding: 18px 26px; }
  .prized-group-label      { font-size: 1.2rem; }

  /* ── Steam highlight cards (TF2 / Miku / HL2) — lock to 3 cols, taller art ── */
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .highlights-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .steam-card img { height: 110px; }

  /* ── Misc game cards — 4 per row, taller image, tighter titles ── */
  .misc-highlights .highlights-grid {
    gap: 14px;
  }
  .misc-highlights .highlights-grid > * {
    flex: 0 1 calc(25% - 10.5px);
  }
  .misc-card-img   { height: 145px; }
  .misc-card-title { font-size: 0.75rem; }

  /* ── Popup characters — scale height + open the clip-path to match ── */
  .char-peek { height: 290px; }
  .misc-highlights .char-peek { height: 220px; }

  .char-card-wrap:hover {
    clip-path: inset(-300px -200px 0px -200px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                clip-path 0s 0s;
  }

  /* ── Hours bars ── */
  .bar-game-img       { width: 75px; height: 35px; }
  .bar-game-name-text { font-size: 0.95rem; }
  .bar-track          { height: 18px; border-radius: 9px; }
  .bar-fill           { border-radius: 9px; }
  .bar-hours          { font-size: 1.05rem; width: 54px; }

  /* ── TF2 prized collection — taller item cards ── */
  .prized-group { padding: 20px 22px; }

  .prized-items-grid .item-card       { padding: 10px; }
  .prized-items-grid .item-img-wrap   { height: 88px; }
  .prized-items-grid .item-img-wrap img { max-height: 78px; }
  .prized-items-grid .item-name         { font-size: 0.82rem; }
  .prized-items-grid .item-quality-label { font-size: 0.7rem;  padding: 2px 7px; }
  .prized-items-grid .item-effect        { font-size: 0.74rem; }
  .prized-items-grid .item-kills         { font-size: 0.74rem; }
  .prized-items-grid .item-secondary-kills { font-size: 0.74rem; }
  .prized-items-grid .item-grade         { font-size: 0.7rem; }
}
