@font-face {
  font-family: "Rosario";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/rosario-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Rosario";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/rosario-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Rosario";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/rosario-latin-700-normal.woff2") format("woff2");
}

:root {
  --ice: #eef4f7;
  --navy: #12121e;
  --blue: #1f4e9c;
  --red: #c8102e;
  --ink-soft: #2b3445;
  --press: 18px;      /* how far the puck travels */
  --wall: 10px;       /* puck wall still showing when fully pressed */
}

* { box-sizing: border-box; }

html { background: var(--ice); }

body {
  margin: 0;
  background: var(--ice);
  color: var(--navy);
  font-family: Rosario, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  font-variant-numeric: lining-nums;
}

.rink {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px 16px 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.club {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}

.center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.stage {
  position: relative;
  width: 320px;
  height: 330px;
  margin-top: 78px;  /* keeps the top of the face-off circle clear of the club name */
}

.red-line {
  position: absolute;
  left: 50%;
  top: 168px;
  width: 4000px;
  height: 18px;
  margin: -9px 0 0 -2000px;
  background: var(--red);
  pointer-events: none;
}

.faceoff-circle {
  position: absolute;
  left: 50%;
  top: 168px;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border: 6px solid var(--blue);
  border-radius: 50%;
  pointer-events: none;
}

/* The button's hit area is the whole face-off circle, not just the puck. */
.puck {
  position: absolute;
  left: 50%;
  top: 168px;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.puck:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 6px;
}

/* Labels that overlap the circle let presses through to the button. */
.club,
h1 {
  pointer-events: none;
}

.cap {
  display: block;
  position: absolute;
  left: 130px;
  top: 102px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #12121e 0%, #12121e 60%, #0c0b11 88%, #0c0b11 100%);
  transform: translateY(0);
  box-shadow:
    0 calc(var(--press) + var(--wall)) 0 #1b1b21,
    0 calc(var(--press) + var(--wall) + 2px) 0 #000000,
    0 calc(var(--press) + var(--wall) + 16px) 26px rgba(20, 45, 80, 0.45);
  transition: transform 70ms ease-out, box-shadow 70ms ease-out;
}

.puck.pressed .cap {
  transform: translateY(var(--press));
  box-shadow:
    0 var(--wall) 0 #1b1b21,
    0 calc(var(--wall) + 2px) 0 #000000,
    0 calc(var(--wall) + 16px) 26px rgba(20, 45, 80, 0.45);
}

.cap img {
  display: block;
  position: absolute;
  left: 30px;
  top: 30px;
  width: 200px;
  height: 200px;
  pointer-events: none;
}

.rim {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 7px #17171c,
    inset 0 0 0 9px #33333d,
    inset 0 12px 20px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 28px 12px;
  background: var(--navy);
  color: #ffffff;
  font-family: Rosario, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 9vw, 68px);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
}

.counter {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  border: 3px solid var(--navy);
  background: var(--ice);
}

.counter-label {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.counter-value {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  background: var(--navy);
  color: #ffffff;
  font-family: Rosario, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.08em;
  font-variant-numeric: lining-nums tabular-nums;
}

.about {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: center;
}

.about h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}

.about p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

.credit {
  position: relative;
  z-index: 2;
  max-width: 600px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: #636f7e;
}

.credit a {
  color: inherit;
  text-underline-offset: 2px;
}

/* Phones: the puck, circle, headline and counter are 25% smaller. */
@media (max-width: 600px) {
  .center,
  .counter { zoom: 0.75; }
}

@media (max-width: 420px) {
  .club { font-size: 14px; letter-spacing: 0.22em; }
  .rink { gap: 24px; padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .cap { transition: none; }
}
