/* =====================================================================
   Ryan F. Nutt — Résumé (golf-themed)
   - 6 outdoor "narrative" panels + 1 finale (full scorecard, same theme)
   - Persistent golfer + ball at viewport bottom
   - Each forward panel transition fires a full swing
   - Final transition lands the ball in the cup; ball stays in cup
   - On finale: all course chrome (clouds, golfer, footer, hud, hint) hides
     so nothing covers the resume content
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Special+Elite&family=VT323&display=swap');

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

html, body { height: 100%; overflow: hidden; background: #1a3a1f; }

body {
  font-family: 'Special Elite', 'Courier New', monospace;
  color: #2a2a2a;
}

/* ------------ HUD (top progress bar) ------------ */
.hud {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; z-index: 60;
  background: rgba(13, 31, 20, 0.85);
  border: 2px solid #c4ad7f;
  padding: 8px 16px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #f4ecd8;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  letter-spacing: 0.06em;
}
.hud .bar-wrap {
  width: 180px; height: 8px;
  background: rgba(244,236,216,0.2);
  border: 1px solid #c4ad7f;
  position: relative;
}
.hud i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #ffd54f, #ff9800);
  width: 0%; transition: width 0.18s ease;
}
.hud .skip {
  color: #ffd54f; text-decoration: none;
  border-left: 1px solid #c4ad7f; padding-left: 12px; margin-left: 4px;
  cursor: pointer;
}
.hud .skip:hover { color: #fff; }

.hint {
  position: fixed; bottom: 14px; right: 18px; z-index: 60;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; color: rgba(244,236,216,0.65);
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* ------------ Sky / clouds — STATIC, low z-index, behind content ------------ */
.sky-clouds {
  position: fixed; top: 0; left: 0; right: 0; height: 28vh;
  pointer-events: none; z-index: 1; overflow: hidden;
}
.cloud {
  position: absolute; top: 6vh;
  width: 120px; height: 38px;
  background: #f4ecd8; opacity: 0.55;
  border-radius: 50px;
  filter: blur(0.4px);
}
.cloud::before, .cloud::after {
  content: ''; position: absolute; background: inherit; border-radius: 50%;
}
.cloud::before { width: 50px; height: 50px; top: -22px; left: 18px; }
.cloud::after  { width: 38px; height: 38px; top: -16px; right: 22px; }
.cloud.c1 { left: 8%;  top: 4vh;  transform: scale(0.85); }
.cloud.c2 { left: 42%; top: 9vh;  transform: scale(1.15); }
.cloud.c3 { left: 74%; top: 5vh;  transform: scale(0.95); }

/* ------------ Course ground line + persistent golfer ------------ */
.course-footer {
  position: fixed; left: 0; right: 0; bottom: 0; height: 18px;
  background: repeating-linear-gradient(
    90deg,
    #2d5a31 0px, #2d5a31 6px,
    #3a6f3f 6px, #3a6f3f 12px
  );
  border-top: 3px solid #1a3a1f;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  z-index: 5;
}
.golfer-wrap {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: 170px; height: 150px; pointer-events: none; z-index: 6;
  filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.4));
  overflow: visible;
}
.golfer-svg { width: 100%; height: 100%; display: block; overflow: visible; }

.body-sway {
  transform-origin: 70px 95px;
  animation: sway 1.6s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(-1.2deg); }
  50%      { transform: rotate( 1.2deg); }
}

/* Yoke+arms+club: pivot at sternum (not wrists) so shoulders stay “in the shirt” */
body:not(.shot-playing) .swing-unit {
  transform-origin: 70px 66px;
  transform-box: view-box;
  animation: waggle 1.2s ease-in-out infinite;
}
@keyframes waggle {
  0%, 100% { transform: rotate(3deg); }
  50%      { transform: rotate(-3.3deg); }
}
.putter-club { visibility: hidden; }
.iron-club  { visibility: visible; }
body.shot-playing.putt-shot .putter-club { visibility: visible; }
body.shot-playing.putt-shot .iron-club  { visibility: hidden; }

/* Full swing: pause torso sway, run one stroke on the whole “grip + arms + club” */
body.shot-playing .body-sway { animation: none; }
body.shot-playing:not(.putt-shot) .swing-unit {
  transform-origin: 70px 66px;
  transform-box: view-box;
  animation: swingOnce 1.1s cubic-bezier(0.38, 0, 0.2, 1) forwards;
}
/* Backswing screen-left, downswing through the ball to the right (right-handed) */
@keyframes swingOnce {
  0%   { transform: rotate(0deg); }
  32%  { transform: rotate(120deg); }
  50%  { transform: rotate(-6deg); }
  70%  { transform: rotate(-32deg); }
  100% { transform: rotate(-22deg); }
}

/* Putting — mallet, short back / through; no big lift */
body.shot-playing.putt-shot .swing-unit {
  transform-origin: 70px 66px;
  transform-box: view-box;
  animation: puttOnce 1.1s cubic-bezier(0.35, 0, 0.2, 1) forwards;
}
@keyframes puttOnce {
  0%   { transform: rotate(0deg) translate(0, 0); }
  22%  { transform: rotate(10deg) translate(0, 0.5px); }
  50%  { transform: rotate(-4deg) translate(0, 0); }
  80%  { transform: rotate(-0.5deg) translate(0, 0); }
  100% { transform: rotate(0deg) translate(0, 0); }
}

/* ------------ The (live) ball — fixed at golfer's feet ------------ */
.ball {
  position: fixed;
  left: calc(50% + 24px);
  bottom: 24px;
  width: 12px; height: 12px;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #fff 60%, #d4d4d4 100%);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), inset -1px -1px 2px rgba(0,0,0,0.15);
  z-index: 7;
  pointer-events: none;
}

/* Fairway — arcing drive */
body.shot-playing:not(.putt-shot) .ball {
  animation: ballFly 1.1s cubic-bezier(0.25, 0.5, 0.5, 1) 0.42s forwards;
}
@keyframes ballFly {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  35%  { transform: translate(40vw, -32vh) scale(0.6); opacity: 1; }
  100% { transform: translate(85vw, -10vh) scale(0.3); opacity: 0; }
}
/* On the green — low roll into the flag / cup, no pop-up */
body.shot-playing.putt-shot .ball {
  animation: ballRoll 1.05s cubic-bezier(0.3, 0, 0.1, 1) 0.4s forwards;
  z-index: 8;
}
@keyframes ballRoll {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  20%  { transform: translate(4vw, 0) scale(1) rotate(45deg); opacity: 1; }
  70%  { transform: translate(32vw, -1px) scale(0.98) rotate(280deg); opacity: 1; }
  100% { transform: translate(40vw, 0) scale(0.85) rotate(420deg); opacity: 0; }
}

/* After a shot completes, hide the in-flight ball briefly so JS can reset */
body.shot-done .ball { opacity: 0; }

/* Once the ball is in the hole, stop showing the live ball entirely;
   the cup-ball (inside the green panel) is now the ball. */
body.in-hole .ball { display: none; }

/* ------------ Scroller ------------ */
.scroller {
  height: 100vh; width: 100vw; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }

.stage { display: flex; height: 100%; }

.panel {
  flex: 0 0 100vw; height: 100vh;
  scroll-snap-align: start;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 8vw 80px;
}

/* Outdoor (golf course) backgrounds */
.panel.outdoor {
  background: linear-gradient(
    to bottom,
    #87ceeb 0%,
    #b8dff0 25%,
    #c4e8a8 55%,
    #7cb352 80%,
    #5a8f3d 100%
  );
}
/* subtle fairway texture */
.panel.outdoor::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      85deg,
      transparent 0px, transparent 28px,
      rgba(255,255,255,0.04) 28px, rgba(255,255,255,0.04) 30px
    );
  pointer-events: none; z-index: 0;
}

.panel-inner {
  position: relative; z-index: 2;
  max-width: 880px; width: 100%;
  background: rgba(244, 236, 216, 0.94);
  border: 3px solid #0d1f14;
  padding: 36px 40px;
  box-shadow: 8px 8px 0 rgba(13, 31, 20, 0.45);
  max-height: 78vh;
  overflow-y: auto;
}

.scoreline {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; color: #2d5a31;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.scoreline span { color: #b8741a; }

.panel-inner h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(20px, 3vw, 30px);
  color: #1a3a1f;
  margin-bottom: 14px;
  line-height: 1.25;
}
.panel-inner h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 2.4vw, 22px);
  color: #1a3a1f;
  margin-bottom: 14px;
  line-height: 1.3;
}
.panel-inner h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; color: #b8741a;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  line-height: 1.4;
}
.panel-inner p {
  font-size: 16px; line-height: 1.55; margin-bottom: 12px;
}
.panel-inner p.small { font-size: 13px; opacity: 0.8; }
.panel-inner ul { margin: 8px 0 6px 22px; }
.panel-inner ul li { font-size: 14px; line-height: 1.5; margin-bottom: 6px; }
.typewriter {
  font-style: italic; color: #5a4a3a;
  border-left: 3px solid #b8741a; padding-left: 12px;
}
.play-hint {
  margin-top: 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; color: #2d5a31; letter-spacing: 0.1em;
}
/* Small but legible; same size on hole 2 + finale (panel p was forcing 16px on hole 2) */
.panel-inner p.ghin-note,
.finale-inner > p.ghin-note {
  font-size: 10px;
  line-height: 1.45;
  color: #5a4a3a;
  letter-spacing: 0.05em;
  font-family: 'Press Start 2P', monospace;
  opacity: 0.88;
  text-align: left;
  margin-top: 10px;
  margin-bottom: 0;
  user-select: text;
}
.ghin-note--finale {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(90, 74, 58, 0.1);
  max-width: 100%;
}

/* Pin-card (a "hole" data card) */
.pin-card {
  background: #fff8e7;
  border: 2px solid #0d1f14;
  padding: 14px 16px;
  margin: 10px 0;
  box-shadow: 4px 4px 0 rgba(13,31,20,0.35);
}
.pin-card .meta {
  font-size: 12px; color: #5a4a3a; margin-bottom: 8px;
}
.career-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 10px;
}
@media (max-width: 720px) { .career-grid { grid-template-columns: 1fr; } }

.skills-legend {
  font-size: 12px; color: #5a4a3a; margin: 4px 0 10px;
  line-height: 1.45;
}
.skills-legend .leg-ex { color: #1b5e20; font-weight: bold; }
.skills-legend .leg-adv { color: #b8741a; font-weight: bold; }
.skills-legend .leg-pr { color: #5d4e37; font-weight: bold; }
.skills-legend .leg-in { color: #8a4a1b; font-weight: bold; }
.skills-legend .leg-off { color: #5c2d7a; font-weight: bold; }
.skills-bars {
  margin-top: 6px;
  padding: 14px 16px;
  background: #fff8e7;
  border: 2px solid #0d1f14;
  box-shadow: 4px 4px 0 rgba(13, 31, 20, 0.35);
}
.skills-bars--finale { margin-top: 0; }
.skill-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(52%, 220px);
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 10px;
}
.skill-bar-row--offcharts {
  padding: 8px 0 4px;
  border-bottom: 1px dashed rgba(92, 45, 122, 0.35);
  margin-bottom: 12px;
}
.skill-bar-row:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .skill-bar-row {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
  }
  .skill-bar-row--offcharts { grid-template-columns: 1fr; }
}
.skill-bar-label {
  font-size: 13px;
  line-height: 1.4;
  color: #2a2a2a;
}
.skill-bar-labelcol { min-width: 0; }
.offcharts-tag {
  display: inline-block;
  margin-top: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  letter-spacing: 0.04em;
  color: #5c2d7a;
  text-transform: uppercase;
}
.skill-bar-track {
  height: 16px;
  background: #e4dcc8;
  border: 2px solid #0d1f14;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.skill-bar-track--offcharts {
  overflow: visible;
  height: 18px;
  border: 2px solid #4a2a6a;
  background: linear-gradient(90deg, #f3ece8, #e4dcc8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 1px rgba(255, 213, 79, 0.35);
}
.skill-bar-fill {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(90deg, #1b5e20, #2d5a31 55%, #3d7a44);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  transition: width 0.2s ease;
}
.skill-bar-fill[data-tier="advanced"] {
  background: linear-gradient(90deg, #8d5a0e, #b8741a 50%, #c9a02a);
}
.skill-bar-fill[data-tier="proficient"] {
  background: linear-gradient(90deg, #5d4e37, #8a7248 60%, #a88a55);
}
.skill-bar-fill[data-tier="intermediate"] {
  background: linear-gradient(90deg, #8a4a1b, #b86a2a 55%, #c97a3a);
}
.skill-bar-fill--offcharts {
  max-width: none;
  width: calc(var(--p) * 1%);
  min-width: 8px;
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #4a1f6b, #7b4ab0 40%, #c9a64a 75%, #ffd54f);
  box-shadow: 0 0 8px rgba(123, 74, 176, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  border-radius: 0 1px 1px 0;
}
.offcharts-burst {
  position: absolute;
  right: -4px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: radial-gradient(circle, #ffd54f 0%, #f9a825 100%);
  border: 1px solid #4a1f6b;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffd54f;
  z-index: 2;
  pointer-events: none;
}
.skills-bars--finale .skill-bar-label { font-size: 12px; }
.skills-bars--finale .skill-bar-row { margin-bottom: 8px; }
.skill-tile {
  background: #fff8e7; border: 2px solid #0d1f14;
  padding: 14px 16px;
  box-shadow: 4px 4px 0 rgba(13,31,20,0.35);
}
.skill-tile h3 { color: #2d5a31; margin-bottom: 6px; }
.skill-tile p  { font-size: 14px; line-height: 1.55; }

.cert-list {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px;
}
.cert-pill {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; color: #1a3a1f; background: #ffd54f;
  border: 2px solid #0d1f14; padding: 6px 10px;
  box-shadow: 2px 2px 0 rgba(13,31,20,0.4);
  letter-spacing: 0.04em;
}

/* ------------ Green panel (putt for the cup) ------------ */
#greenPanel.panel.outdoor {
  /* Slightly more “short game” / putting surface vs full fairway */
  background: linear-gradient(
    to bottom,
    #7ec8e3 0%,
    #a7dbe8 20%,
    #b6e0a0 40%,
    #6fbf6a 68%,
    #2f7a3a 100%
  );
}
.putt-callout {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #0d3d12;
  background: rgba(255, 250, 230, 0.9);
  border: 2px solid #0d1f14;
  padding: 8px 10px;
  display: inline-block;
  box-shadow: 3px 3px 0 rgba(13, 31, 20, 0.3);
  margin-bottom: 12px;
}
.green-stage {
  position: absolute; left: 0; right: 0; bottom: 38px; height: 36px;
  z-index: 6; pointer-events: none;
}
.putt-lawn {
  position: absolute; left: 0; right: 0; bottom: 0; height: 20px;
  background: linear-gradient(
    to bottom,
    rgba(30, 120, 50, 0.35),
    rgba(15, 80, 32, 0.55)
  );
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1);
}
.putt-path {
  position: absolute; left: 12%; bottom: 8px; right: 14%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.2));
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
.putt-path::after {
  content: '';
  position: absolute; right: -2px; top: 50%;
  width: 0; height: 0;
  margin-top: -4px;
  border-left: 6px solid rgba(255, 255, 255, 0.5);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0.7;
}
.pin-flag {
  position: absolute; right: 13%; bottom: 0;
  width: 4px; height: 80px; background: #2a2a2a;
}
.pin-flag::before {
  content: ''; position: absolute; left: 4px; top: 0;
  width: 0; height: 0;
  border-left: 22px solid #d2392f;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.cup {
  position: absolute; right: calc(13% - 12px); bottom: -2px;
  width: 28px; height: 8px;
  background: #1a1a1a; border-radius: 50%;
  box-shadow: 0 2px 0 #000, inset 0 2px 4px rgba(0,0,0,0.7);
}
/* Cup-ball: lives inside the green panel; visible after sink */
.cup-ball {
  position: absolute; right: calc(13% - 5px); bottom: 1px;
  width: 10px; height: 5px;
  background: radial-gradient(ellipse at 35% 30%, #fff 0%, #d4d4d4 100%);
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.25s ease 0.6s;
}
body.in-hole .cup-ball { opacity: 1; }

.chip-msg {
  margin-top: 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; color: #2d5a31; letter-spacing: 0.06em;
  opacity: 0; transition: opacity 0.4s ease;
}
body.in-hole .chip-msg { opacity: 1; }

/* ===================================================================
   FINALE — same golf-course theme, full scorecard one-pager
   =================================================================== */

.panel.finale {
  background: linear-gradient(
    to bottom,
    #87ceeb 0%,
    #b8dff0 18%,
    #c4e8a8 38%,
    #7cb352 100%
  );
  align-items: flex-start;
  justify-content: center;
  padding: 40px 6vw 60px;
  overflow: hidden;
}
.panel.finale::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    85deg,
    transparent 0px, transparent 28px,
    rgba(255,255,255,0.04) 28px, rgba(255,255,255,0.04) 30px
  );
  z-index: 0; pointer-events: none;
}

.finale-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1080px;
  background: #fbf6e7;
  border: 3px solid #0d1f14;
  padding: 30px 38px 36px;
  box-shadow: 10px 10px 0 rgba(13, 31, 20, 0.45);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2d5a31 #fbf6e7;
}

.finale-header {
  display: flex; align-items: center; gap: 22px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 3px double #2d5a31;
}
.finale-photo {
  width: 110px; height: 110px;
  object-fit: cover;
  border: 3px solid #0d1f14;
  box-shadow: 4px 4px 0 rgba(13,31,20,0.45);
  background: #fff;
}
.finale-id { flex: 1; }
.finale-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; color: #2d5a31;
  letter-spacing: 0.1em; margin-bottom: 8px;
}
.finale-id h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(20px, 2.6vw, 28px);
  color: #1a3a1f; line-height: 1.2; margin-bottom: 6px;
}
.finale-title {
  font-size: 16px; color: #b8741a; font-weight: bold;
  margin-bottom: 2px;
}
.finale-sub  { font-size: 14px; color: #5a4a3a; margin-bottom: 6px; }
.finale-contact { font-size: 13px; color: #2a2a2a; }
.finale-contact a {
  color: #1a3a1f; text-decoration: none;
  border-bottom: 1px dotted #2d5a31;
}
.finale-contact a:hover { color: #b8741a; }
.finale-contact .dot { margin: 0 8px; color: #b8741a; }

.finale-block { margin-top: 18px; }
.finale-section-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; color: #2d5a31;
  letter-spacing: 0.1em; margin-bottom: 10px;
  border-bottom: 2px solid #2d5a31; padding-bottom: 4px;
}
.finale-block p { font-size: 15px; line-height: 1.55; }

.finale-role { margin-bottom: 12px; }
.finale-role h3 { font-size: 11px; }
.finale-role .meta { font-size: 12px; }
.finale-role ul { margin-left: 20px; }
.finale-role li { font-size: 13px; line-height: 1.5; margin-bottom: 4px; }

.finale-mini-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
  margin-top: 8px;
}
@media (max-width: 900px) { .finale-mini-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .finale-mini-grid { grid-template-columns: 1fr; } }
.pin-card.mini { margin: 0; padding: 10px 12px; }
.pin-card.mini h3 { font-size: 10px; margin-bottom: 4px; }
.pin-card.mini .meta { font-size: 11px; margin-bottom: 4px; }
.pin-card.mini p { font-size: 12px; line-height: 1.4; }

.finale-two-col {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px;
}
@media (max-width: 800px) { .finale-two-col { grid-template-columns: 1fr; } }

.skill-tile.finale-skill { margin-bottom: 10px; padding: 10px 12px; }
.skill-tile.finale-skill h3 { font-size: 10px; margin-bottom: 4px; }
.skill-tile.finale-skill p  { font-size: 13px; line-height: 1.5; }

.cert-list.finale-certs { margin-top: 0; }

.finale-foot {
  margin-top: 22px; padding-top: 14px;
  border-top: 2px dashed #2d5a31;
  text-align: center;
  font-size: 13px; color: #5a4a3a;
}
.finale-foot a {
  color: #1a3a1f; text-decoration: none;
  border-bottom: 1px dotted #2d5a31;
}
.finale-foot a:hover { color: #b8741a; }
.finale-foot .dot { margin: 0 8px; color: #b8741a; }

/* ===================================================================
   ON FINALE: hide ALL course chrome so nothing covers the resume
   =================================================================== */
body.on-finale .sky-clouds,
body.on-finale .course-footer,
body.on-finale .golfer-wrap,
body.on-finale .ball,
body.on-finale .hint {
  display: none !important;
}
body.on-finale .hud {
  background: rgba(13, 31, 20, 0.7);
}

/* ===================================================================
   PRINT — clean one-page scorecard, no animations
   =================================================================== */
@media print {
  html, body { overflow: visible !important; height: auto !important; background: #fff !important; }
  .scroller { overflow: visible !important; height: auto !important; }
  .stage { display: block !important; }
  .panel:not(.finale) { display: none !important; }
  .panel.finale {
    width: 100% !important; height: auto !important; min-height: 0 !important;
    background: #fff !important; padding: 0 !important;
  }
  .panel.finale::before { display: none !important; }
  .finale-inner {
    box-shadow: none !important; border: none !important;
    background: #fff !important; max-height: none !important;
    padding: 0 !important; overflow: visible !important;
  }
  .hud, .hint, .sky-clouds, .course-footer, .golfer-wrap, .ball, .finale-foot { display: none !important; }
  .pin-card, .skill-tile { box-shadow: none !important; }
  .cert-pill { box-shadow: none !important; }
  .skill-bar-fill,
  .skill-bar-fill--offcharts { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===================================================================
   Reduced motion
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  .body-sway,
  .swing-unit { animation: none !important; }
  body.shot-playing:not(.putt-shot) .swing-unit { transform: rotate(-22deg) !important; }
  body.shot-playing.putt-shot .swing-unit { transform: rotate(0deg) !important; }
  body.shot-playing .ball { animation: none !important; opacity: 0; }
}
