:root {
  --bg: #ff3d7f;          /* logo hot pink */
  --bg-2: #ff6ba0;
  --navy: #1b2450;        /* logo banner navy */
  --navy-soft: #2a3568;
  --surface: #ffffff;
  --surface-soft: #fff3f8;
  --surface-border: rgba(27, 36, 80, 0.12);
  --text: #1b2450;        /* navy text on light surfaces */
  --on-pink: #ffffff;     /* text on pink background */
  --muted: #5a6488;
  --muted-pink: rgba(255, 255, 255, 0.9);
  --ice: #5ec8ff;
  --gold: #ffcf5c;        /* unicorn horn */
  --pink: #ff3d7f;
  --silver: #c7cdd9;
  --grad: linear-gradient(100deg, #ff2d2d 0%, #ff7a00 17%, #ffce00 34%, #1fc950 51%, #009dff 68%, #6b4bff 85%, #b026ff 100%);
  --rainbow: linear-gradient(100deg, #ff2d2d 0%, #ff7a00 17%, #ffce00 34%, #1fc950 51%, #009dff 68%, #6b4bff 85%, #b026ff 100%);
  --radius: 24px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.1; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(27, 36, 80, 0.4)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.25));
}

/* Playful floating background shapes */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(120% 110% at 50% -10%, var(--bg-2), var(--bg) 65%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; animation: float 16s var(--ease) infinite alternate; }
.blob-1 { width: 480px; height: 480px; background: var(--gold); top: -140px; left: -100px; }
.blob-2 { width: 420px; height: 420px; background: var(--ice); top: 30%; right: -130px; animation-delay: -5s; }
.blob-3 { width: 380px; height: 380px; background: #fff; bottom: -160px; left: 35%; animation-delay: -9s; opacity: 0.22; }
@keyframes float { to { transform: translate3d(40px, 60px, 0) scale(1.12); } }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: rgba(255, 61, 127, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px -10px rgba(27, 36, 80, 0.5);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: var(--on-pink); }
.brand-logo { height: 44px; width: 44px; object-fit: cover; border-radius: 12px; box-shadow: 0 3px 8px rgba(27,36,80,0.35); }
.brand-text strong { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 1px rgba(27, 36, 80, 0.45)); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 15px; border-radius: 999px; font-size: 0.96rem; font-weight: 700; color: var(--on-pink); transition: color 0.2s, background 0.2s, transform 0.2s var(--bounce); }
.nav a:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.nav .nav-cta { background: var(--gold); color: var(--navy); }
.nav .nav-cta:hover { filter: brightness(1.05); background: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 3px; background: var(--on-pink); border-radius: 3px; transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; border-radius: 999px; font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.02rem; cursor: pointer; border: 0; transition: transform 0.2s var(--bounce), filter 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 12px 28px -8px rgba(255,207,92,0.7); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: rgba(255,255,255,0.16); border: 2px solid rgba(255,255,255,0.55); color: var(--on-pink); }
.btn-ghost:hover { background: rgba(255,255,255,0.28); }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 90px; }
.hero-inner { text-align: center; max-width: 840px; }
.hero-logo { width: clamp(170px, 26vw, 250px); height: auto; margin: 0 auto 8px; border-radius: 28px; box-shadow: 0 18px 40px -14px rgba(27,36,80,0.45); animation: bobble 4s var(--ease) infinite alternate; }
@keyframes bobble { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-12px) rotate(1.5deg); } }
.eyebrow { display: inline-block; padding: 8px 18px; background: rgba(255,255,255,0.16); border: 2px solid rgba(255,255,255,0.4); border-radius: 999px; font-size: 0.85rem; font-weight: 700; color: var(--on-pink); margin-bottom: 22px; }
.hero-title { font-size: clamp(2.7rem, 7.5vw, 5.2rem); font-weight: 800; letter-spacing: -0.01em; color: var(--on-pink); text-shadow: 0 4px 18px rgba(27,36,80,0.25); }
.hero-lead { margin: 24px auto 0; max-width: 620px; font-size: 1.16rem; color: var(--muted-pink); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Baloo 2", sans-serif; font-size: 2.2rem; color: var(--gold); }
.hero-stats span { font-size: 0.85rem; color: var(--muted-pink); font-weight: 700; }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.6); border-radius: 14px; display: flex; justify-content: center; }
.scroll-cue span { width: 4px; height: 8px; background: var(--gold); border-radius: 2px; margin-top: 8px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } }

/* Sections */
.section { padding: 100px 0; position: relative; }
/* Light band breaks up the pink */
.section-alt { background: var(--surface); border-radius: 48px; margin: 0 16px; }
.section-alt .kicker { color: var(--pink); }
.section-alt .section-head h2, .section-alt .section-sub { color: var(--text); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.kicker { display: inline-block; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 800; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; color: var(--on-pink); }
.section-sub { margin-top: 14px; color: var(--muted-pink); font-size: 1.06rem; font-weight: 600; }
/* Default (on-pink) headings use white-ish gradient highlight */

/* About */
.about-lead { font-size: 1.3rem; text-align: center; max-width: 720px; margin: 0 auto 50px; color: var(--text); font-weight: 700; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface-soft); border: 2px solid var(--surface-border); border-radius: var(--radius); padding: 32px; transition: transform 0.3s var(--bounce), box-shadow 0.3s, border-color 0.3s; }
.card:hover { transform: translateY(-8px) rotate(-1deg); border-color: var(--pink); box-shadow: 0 18px 36px -16px rgba(255,61,127,0.45); }
.card-icon { font-size: 2.4rem; margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--text); }
.card p { color: var(--muted); font-size: 0.99rem; font-weight: 600; }

/* Work (on light band) */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-item { background: var(--surface-soft); border: 2px solid var(--surface-border); border-radius: var(--radius); padding: 34px; transition: transform 0.3s var(--bounce), box-shadow 0.3s, border-color 0.3s; }
.work-item:hover { transform: translateY(-8px) rotate(1deg); border-color: var(--pink); box-shadow: 0 18px 36px -16px rgba(255,61,127,0.45); }
.work-num { font-family: "Baloo 2", sans-serif; font-size: 3.2rem; font-weight: 800; -webkit-text-fill-color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.work-item h3 { font-size: 1.25rem; margin: 8px 0; color: var(--text); }
.work-item p { color: var(--muted); font-weight: 600; }

/* Gallery (on pink) */
.gallery-grid { columns: 3 250px; column-gap: 16px; }
.g-item { break-inside: avoid; margin: 0 0 16px; display: block; border-radius: 20px; border: 3px solid rgba(255,255,255,0.45); background: rgba(255,255,255,0.14); overflow: hidden; transition: transform 0.3s var(--bounce), box-shadow 0.3s; cursor: pointer; }
.g-item img { width: 100%; height: auto; display: block; }
.g-item:hover { transform: scale(1.02); box-shadow: 0 18px 36px -14px rgba(27,36,80,0.5); }
.gallery-note { text-align: center; color: var(--muted-pink); margin-top: 26px; font-size: 0.95rem; font-weight: 600; }

/* Team (on light band) */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.player { text-align: center; background: var(--surface-soft); border: 2px solid var(--surface-border); border-radius: var(--radius); padding: 28px 16px; transition: transform 0.3s var(--bounce), border-color 0.3s; }
.player:hover { transform: translateY(-8px) rotate(-1.5deg); border-color: var(--pink); }
.avatar { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.5rem; background: var(--navy); color: #fff; box-shadow: 0 6px 16px -6px rgba(27,36,80,0.5); }
.player h4 { font-size: 1.08rem; color: var(--text); }
.player span { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.player.join .avatar { background: var(--gold); color: var(--navy); }

/* OB4D banner */
.ob4d-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--navy); border-radius: 32px; padding: 50px; box-shadow: 0 24px 48px -20px rgba(27,36,80,0.6); }
.ob4d-banner .kicker { color: var(--gold); }
.ob4d-banner h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 4px 0 12px; color: #fff; }
.ob4d-banner p { color: rgba(255,255,255,0.82); max-width: 540px; font-weight: 600; }

/* Contact (on light band) */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info .kicker { color: var(--pink); }
.contact-info h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: var(--text); }
.contact-info > p { color: var(--muted); margin: 14px 0 26px; font-weight: 600; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); }
.contact-list span { font-size: 1.3rem; }
.contact-list a:hover { color: var(--pink); }
.contact-form { background: var(--surface-soft); border: 2px solid var(--surface-border); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; margin-bottom: 7px; color: var(--text); font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 13px 16px; background: #fff; border: 2px solid var(--surface-border); border-radius: 14px; color: var(--text); font-family: inherit; font-size: 0.98rem; font-weight: 600; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,61,127,0.15); }
.form-status { margin-top: 14px; font-size: 0.92rem; text-align: center; min-height: 1.2em; font-weight: 700; }
.form-status.ok { color: #1aa86b; }
.form-status.err { color: #e8417a; }

/* Footer */
.site-footer { padding: 54px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-tag { color: var(--on-pink); font-weight: 700; font-family: "Baloo 2", sans-serif; }
.copyright { font-size: 0.86rem; color: var(--muted-pink); }

/* Active nav link */
.nav a.active { background: rgba(255,255,255,0.22); color: #fff; }
.nav a.nav-cta.active { background: var(--gold); color: var(--navy); }

/* Page hero (subpages) */
.page-hero { position: relative; padding: 160px 0 56px; text-align: center; }
.page-hero .kicker { color: #fff; opacity: 0.85; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; color: var(--on-pink); text-shadow: 0 4px 18px rgba(27,36,80,0.25); }
.page-hero p { color: var(--muted-pink); max-width: 640px; margin: 16px auto 0; font-weight: 600; font-size: 1.1rem; }
.page-section { padding: 20px 0 100px; }

/* Long-form prose (Rólunk / Munkánk) */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { color: var(--text); font-size: 1.07rem; line-height: 1.75; margin-bottom: 18px; font-weight: 500; }
.prose p:last-child { margin-bottom: 0; }
.prose .lead { font-size: 1.22rem; font-weight: 700; color: var(--text); }
.prose h3 { color: var(--text); font-size: 1.3rem; margin: 32px 0 14px; }

/* Name chips */
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px auto 0; max-width: 780px; }
.tag { background: #fff; border: 2px solid var(--surface-border); color: var(--text); padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 0.96rem; transition: transform 0.2s var(--bounce), border-color 0.2s; }
.tag:hover { transform: translateY(-3px) rotate(-2deg); border-color: var(--pink); }

/* Auto-fit card grid (e.g. 4 categories) */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Home quick links */
.quicklinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
a.card { display: block; color: inherit; }
a.card .card-arrow { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--pink); font-family: "Baloo 2", sans-serif; }
a.card:hover .card-arrow { transform: translateX(4px); }

/* ===== Team rink ===== */
.rink-wrap { max-width: 1010px; margin: 0 auto; }
.rink {
  position: relative;
  border-radius: 110px / 80px;
  background: linear-gradient(180deg, #e9f6ff 0%, #ffffff 55%, #e9f6ff 100%);
  border: 10px solid #fff;
  box-shadow: 0 0 0 3px var(--navy), 0 30px 60px -22px rgba(27, 36, 80, 0.5);
  padding: 46px 26px;
  overflow: hidden;
}
.rink-line { position: absolute; left: 5%; right: 5%; height: 4px; border-radius: 4px; z-index: 0; }
.rink-line.red { top: 50%; background: #e63950; }
.rink-line.blue.top { top: 27%; background: #2f6bff; opacity: 0.7; }
.rink-line.blue.bottom { top: 73%; background: #2f6bff; opacity: 0.7; }
.rink-circle { position: absolute; left: 50%; top: 50%; width: 158px; height: 158px; transform: translate(-50%, -50%); border: 4px solid #2f6bff; border-radius: 50%; opacity: 0.45; z-index: 0; }
.rink-crease { position: absolute; left: 50%; transform: translateX(-50%); width: 124px; height: 52px; border: 4px solid #e63950; background: rgba(47, 107, 255, 0.08); z-index: 0; }
.rink-crease.top { top: -3px; border-top: none; border-radius: 0 0 90px 90px; }
.rink-crease.bottom { bottom: -3px; border-bottom: none; border-radius: 90px 90px 0 0; }
.rink-zones { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 30px; }
.rink-zone { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 18px 26px; }
.rink-zones > div { text-align: center; }
.zone-label { display: inline-block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: #2f6bff; margin-bottom: 14px; position: relative; z-index: 2; background: rgba(255, 255, 255, 0.82); padding: 4px 16px; border-radius: 999px; box-shadow: 0 2px 8px -3px rgba(27, 36, 80, 0.25); }

.skater { background: rgba(255, 255, 255, 0.62); border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; padding: 10px 6px 8px; border-radius: 18px; font-family: inherit; backdrop-filter: blur(3px); transition: background 0.25s, transform 0.25s var(--bounce); }
.skater:hover { background: rgba(255, 255, 255, 0.85); }
.skater .puck { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.35rem; border: 3px solid #fff; box-shadow: 0 8px 18px -6px rgba(27, 36, 80, 0.6); position: relative; transition: transform 0.25s var(--bounce), box-shadow 0.25s; }
.skater:hover .puck, .skater:focus-visible .puck { transform: translateY(-6px) scale(1.09); box-shadow: 0 14px 26px -8px rgba(255, 61, 127, 0.65); }
.skater.captain .puck { background: var(--rainbow); }
.skater.staff .puck { background: #fff; color: var(--navy); border-color: var(--navy); font-size: 1.5rem; }
.skater .cbadge { position: absolute; top: -7px; right: -7px; width: 23px; height: 23px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.skater .puck img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.skater .puck.has-photo { background: #fff; }
.skater .puck.has-photo .num { position: absolute; bottom: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; z-index: 2; }
.skater .sk-name { font-weight: 800; font-size: 0.92rem; color: var(--text); line-height: 1.1; }
.skater .sk-role { font-size: 0.74rem; color: var(--muted); font-weight: 700; }

/* Pálya + oldalsó cserepad (kispad) */
.rink-stage { display: flex; align-items: stretch; gap: 16px; }
.rink-stage .rink { flex: 1; min-width: 0; }

.bench-side {
  flex: 0 0 172px; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 38px 14px 16px;
  background: linear-gradient(180deg, #f3eee2 0%, #e6dfcd 100%);
  border: 6px solid #fff; border-left: 5px solid var(--navy);
  border-radius: 26px;
  box-shadow: 0 0 0 3px var(--navy), 0 22px 46px -22px rgba(27, 36, 80, 0.55);
}
/* Nyílás a palánkon (kapu, ahonnan beugranak) */
.bench-side::before {
  content: ""; position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 70px; background: #f3eee2; z-index: 2;
}
.bench-label {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-family: "Baloo 2", sans-serif; font-weight: 700;
  font-size: 0.92rem; padding: 6px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 16px -7px rgba(27, 36, 80, 0.7);
}
.bench { display: flex; flex-direction: column; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 14px; position: relative; z-index: 1; width: 100%; }
.bench-gatelabel { margin-top: auto; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-align: center; opacity: 0.75; }

/* ===== Player modal ===== */
.pm-overlay { position: fixed; inset: 0; background: rgba(27, 36, 80, 0.55); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease); }
.pm-overlay.open { opacity: 1; pointer-events: auto; }
.pm-card { position: relative; display: flex; width: min(700px, 100%); background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px -18px rgba(27, 36, 80, 0.65); transform: translateY(24px) scale(0.9); transition: transform 0.4s var(--bounce); }
.pm-overlay.open .pm-card { transform: none; }

/* Left: full-height photo with outline */
.pm-photo { flex: 0 0 240px; align-self: stretch; position: relative; display: flex; align-items: center; justify-content: center; font-size: 4.5rem; background: linear-gradient(160deg, #5ec8ff, #c77dff); overflow: hidden; }
.pm-photo img { width: 100%; height: 100%; object-fit: cover; }
.pm-photo::after { content: ""; position: absolute; inset: 12px; border: 3px solid rgba(255, 255, 255, 0.75); border-radius: 18px; pointer-events: none; }

/* Right: content column */
.pm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pm-head {
  position: relative; padding: 26px 26px 20px; color: #fff;
  background:
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.06) 0 16px, transparent 16px 42px),
    linear-gradient(135deg, #1b2450 0%, #38427e 100%);
}
.pm-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--rainbow); }
.pm-num { font-family: "Baloo 2", sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--ice); }
.pm-head h3 { color: #fff; font-size: 1.6rem; line-height: 1.1; margin: 3px 0 2px; }
.pm-civil { font-size: 0.92rem; opacity: 0.9; }
.pm-role { font-weight: 800; font-size: 0.82rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 8px; }
.pm-body { padding: 20px 26px 26px; flex: 1; }
.pm-meta { display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.pm-tag { background: var(--surface-soft); border: 2px solid var(--surface-border); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.84rem; color: var(--text); }
.pm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.pm-stat { background: var(--surface-soft); border: 2px solid var(--surface-border); border-radius: 14px; padding: 11px 4px; text-align: center; }
.pm-stat strong { display: block; font-family: "Baloo 2", sans-serif; font-size: 1.35rem; color: var(--pink); line-height: 1; }
.pm-stat span { font-size: 0.66rem; color: var(--muted); font-weight: 700; }
.pm-bio { color: var(--muted); font-weight: 600; text-align: left; font-size: 0.97rem; }
.pm-hint { text-align: left; font-size: 0.78rem; color: var(--muted); opacity: 0.7; margin-top: 12px; }
.pm-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.32); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 3; transition: background 0.2s; }
.pm-close:hover { background: rgba(255, 255, 255, 0.5); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--bounce); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .feature-cards, .work-grid, .quicklinks { grid-template-columns: 1fr; }
  .card-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .gallery-grid { columns: 2 200px; }
}

@media (max-width: 720px) {
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: rgba(255,61,127,0.97); backdrop-filter: blur(16px); box-shadow: 0 12px 24px -10px rgba(27,36,80,0.5); padding: 16px 24px 28px; transform: translateY(-130%); transition: transform 0.35s var(--ease); }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 14px; font-size: 1.05rem; }
  .nav .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .section { padding: 76px 0; }
  .section-alt { margin: 0 8px; border-radius: 32px; }
  .hero-stats { gap: 32px; }
  .ob4d-banner { padding: 34px; }
  .rink { padding: 34px 14px; border-radius: 70px / 54px; }
  .rink-zone { gap: 14px 16px; }
  .rink-stage { flex-direction: column; gap: 0; }
  .bench-side { flex: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; border-left: 6px solid #fff; border-top: 5px solid var(--navy); margin-top: 14px; padding: 30px 14px 14px; }
  .bench-side::before { left: 50%; top: -5px; transform: translateX(-50%); width: 70px; height: 5px; }
  .bench { flex-direction: row; flex-wrap: wrap; gap: 14px 16px; }
  .bench-gatelabel { display: none; }
  .skater { width: 74px; }
  .skater .puck { width: 56px; height: 56px; font-size: 1.15rem; }
  .pm-card { flex-direction: column; }
  .pm-photo { flex: 0 0 200px; align-self: stretch; }
  .pm-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
