﻿   25. SKILLS â€” physics playground
   â–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆ */

.sk {
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* Dot-grid: low density, masked to fade to white from all 4 edges */
.sk__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 54% at 50% 46%, rgba(168,112,219,.07) 0%, transparent 60%),
    radial-gradient(circle, rgba(168,112,219,.17) 1px, transparent 1px);
  background-size: auto, 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 86% 82% at 50% 46%, #000 10%, transparent 78%);
  mask-image:         radial-gradient(ellipse 86% 82% at 50% 46%, #000 10%, transparent 78%);
}

.sk__header {
  text-align: center;
  padding-bottom: var(--sp-lg);
}

.sk__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.3rem);
  font-weight: 900;
  color: var(--clr-text);
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: var(--sp-sm);
}

.sk__eq {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sk__sub {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  font-weight: 600;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* â”€â”€ Core skills shelf â€” sits above physics arena, animated â”€â”€ */
.sk__shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: var(--sp-lg);
}

@keyframes sk-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.sk__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.15rem;
  background: #fff;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(168,112,219,.13);
  box-shadow: 0 2px 10px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
  animation: sk-float 3s ease-in-out infinite;
  animation-delay: calc(var(--sk-i, 0) * 0.16s);
  transition: box-shadow .25s var(--ease);
}
.sk__tag:hover {
  animation-play-state: paused;
  box-shadow: 0 8px 28px rgba(168,112,219,.24), 0 2px 6px rgba(0,0,0,.06);
}

/* Tag snapped from arena â€” scale in, then float */
.sk__tag--snap {
  opacity: 0;
  transform: translateY(8px) scale(.84);
  animation: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.sk__tag--in {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: sk-float 3s ease-in-out infinite;
  animation-delay: calc(var(--sk-i, 0) * 0.16s);
}

/* â”€â”€ Physics arena â”€â”€ */
.sk__arena {
  position: relative;
  width: 100%;
  height: 320px;
  max-height: 320px;
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}
.sk__arena:active { cursor: grabbing; }

/* Explosion ring flash */
.sk__arena--boom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(250,61,199,.22) 0%, transparent 60%);
  animation: sk-boom .55s var(--ease-out) forwards;
  pointer-events: none;
  z-index: 6;
}
@keyframes sk-boom {
  0%   { opacity: 1; transform: scale(.3); }
  55%  { opacity: .55; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(2.2); }
}

/* Drop zone â€” empty dashed box at top of physics arena */
.sk__dz {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 80%);
  height: 54px;
  border: 2px dashed rgba(168,112,219,.25);
  border-radius: var(--r-full);
  background: transparent;
  pointer-events: none;
  transition: background .2s var(--ease), border-color .2s var(--ease);
  z-index: 4;
}
.sk__dz--on {
  background: rgba(168,112,219,.09);
  border-color: var(--clr-primary);
}

/* â”€â”€ Physics pills (DOM-synced to Matter.js bodies) â”€â”€ */
.sk__ptag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .52rem 1rem;
  background: #fff;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(168,112,219,.13);
  box-shadow: 0 4px 18px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.07);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
  cursor: grab;
  will-change: transform;
  transform-origin: center center;
  pointer-events: none;
  line-height: 1;
}
.sk__ptag--held {
  box-shadow: 0 14px 44px rgba(168,112,219,.30), 0 4px 12px rgba(0,0,0,.10);
}

/* â”€â”€ Shared dot â”€â”€ */
.sk__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* â–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆâ–ˆ
/* ─── Skills Section responsive ───────────────────────────────── */

@media (max-width: 992px) {
  .sk__arena { height: 380px; }
  .sk__title { letter-spacing: -.025em; }
}

@media (max-width: 768px) {
  .sk__arena { height: 320px; margin-bottom: var(--sp-xl); }
  .sk__tag   { font-size: .82rem; padding: .5rem 1rem; }
  .sk__ptag  { font-size: .78rem; padding: .44rem .85rem; }
}

/* ≤640 px – phones: hide physics arena, show static pills only */
@media (max-width: 640px) {
  .sk__arena { display: none; }
  .sk__hint  { display: none; }
}

@media (max-width: 480px) {
  .sk__title { letter-spacing: -.015em; }
  .sk__shelf { gap: .5rem; }
  .sk__tag   { font-size: .78rem; padding: .45rem .85rem; }
}

