@font-face {
  font-family: "SF Rounded Local";
  src: local("SF Pro Rounded Semibold"), local("SFProRounded-Semibold");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Display Local";
  src: local("SF Pro Display Regular"), local("SFProDisplay-Regular");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #060606;
  --yellow: #ffe32c;
  --viewport-height: 100vh;
  --nav-top: max(clamp(1rem, 2.2vw, 2rem), calc(env(safe-area-inset-top, 0px) + .75rem));
  --nav-height: 3.25rem;
  --nav-reserve: calc(var(--nav-top) + var(--nav-height) + 1rem);
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --intro-size: clamp(1.5rem, calc(1rem + 1.25vw), 2rem);
  --graphic-size: clamp(5rem, calc(4.5rem + 2vw), 6.25rem);
  --ball-size: min(clamp(96px, calc(72px + 12.5vw), 320px), max(48px, calc((var(--viewport-height) - var(--nav-reserve) - env(safe-area-inset-bottom, 0px)) * .3)), calc((100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)) / 3.1));
  --rounded: "SF Rounded Local", "SF Pro Rounded", ui-rounded, "Arial Rounded MT Bold", sans-serif;
  font-family: "SF Display Local", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
html { scrollbar-gutter: stable both-edges; }
body { background: var(--paper); overflow-x: hidden; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.panel { min-width: 0; }
.about-panel { min-height: var(--viewport-height); display: flex; align-items: center; flex-direction: column; background: var(--paper); padding: var(--nav-reserve) max(var(--page-gutter), env(safe-area-inset-right, 0px)) calc(var(--nav-reserve) + env(safe-area-inset-bottom, 0px)) max(var(--page-gutter), env(safe-area-inset-left, 0px)); }
.intro { width: min(100%, 14.3125em); margin-block: auto; display: flex; align-items: center; flex-direction: column; gap: 2.25rem; font-size: var(--intro-size); }
.intro-graphic { display: block; flex: none; }
.shaka-graphic { width: calc(var(--graphic-size) * 1.13849); height: var(--graphic-size); display: flex; align-items: center; justify-content: center; }
.shaka-graphic img { display: block; flex: none; width: var(--graphic-size); height: calc(var(--graphic-size) * 1.13849); object-fit: contain; transform: rotate(90deg); }
h1 { width: 100%; margin: 0; color: #afb1b5; font-size: 1em; line-height: 1.15; font-weight: 400; letter-spacing: -.25px; text-align: center; overflow-wrap: break-word; }
.intro-line { display: block; }
.is-entering .intro-graphic { animation: graphic-appear 2000ms cubic-bezier(.23,.98,.56,1) 200ms both; }
.is-entering .intro-line { animation: text-appear 1000ms linear 400ms both; }
@keyframes graphic-appear { from { opacity: .001; } to { opacity: 1; } }
@keyframes text-appear { from { opacity: .001; } to { opacity: 1; } }

.segments {
  position: absolute;
  z-index: 10;
  top: var(--nav-top);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 4.4375rem 3.6875rem;
  padding: .25rem;
  height: var(--nav-height);
  border-radius: 999px;
  background: #f5f5f7;
  transition: background 240ms ease;
}
.segment-indicator { position: absolute; left: .25rem; top: .25rem; width: 4.4375rem; height: 2.75rem; border: .5px solid rgb(0 0 0 / 10%); border-radius: 999px; background: #fff; box-shadow: 0 2px 5px rgb(0 0 0 / 6%), 0 9px 9px rgb(0 0 0 / 1%); transition: transform 300ms cubic-bezier(.22,.8,.25,1), width 300ms cubic-bezier(.22,.8,.25,1), background 240ms ease; pointer-events: none; }
.segment { position: relative; z-index: 1; display: grid; place-items: center; min-width: 44px; height: 2.75rem; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #616367; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .875rem; line-height: 1.25rem; letter-spacing: -.18px; cursor: pointer; transition: color 240ms ease; }
.segment:focus-visible { outline: 2px solid #6b6b70; outline-offset: 3px; }
body[data-view="play"] { background: var(--ink); color-scheme: dark; overflow: hidden; }
body[data-view="play"] .segments { position: fixed; background: #161616; }
body[data-view="play"] .segment { color: #e2e2e2; }
body[data-view="play"] .segment-indicator { transform: translateX(4.4375rem); width: 3.6875rem; background: var(--ink); }

.play-panel { position: fixed; inset: 0; height: var(--viewport-height); background: var(--ink); overflow: hidden; overflow: clip; isolation: isolate; }
.panel:focus-visible { outline: 2px solid #707378; outline-offset: -6px; }
.play-panel:focus-visible { outline-color: var(--yellow); }
.balls { position: absolute; inset: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); pointer-events: none; }
.ball { position: absolute; top: 0; left: 0; display: block; width: var(--ball-size); height: var(--ball-size); padding: 0; border: 0; margin: 0; border-radius: 50%; background: transparent; color: #000; font-family: var(--rounded); font-weight: 600; font-size: calc(var(--ball-size) * .44); line-height: 1.4; letter-spacing: -.25px; touch-action: none; user-select: none; cursor: grab; pointer-events: auto; will-change: transform; }
.ball-face { display: grid; place-items: center; width: 100%; height: 100%; border: .5px solid rgb(0 0 0 / 10%); border-radius: 50%; background: #fff; transition: background 90ms ease; }
.ball-glyph { display: block; transform: translateY(-.015em); pointer-events: none; }
.ball.is-lit .ball-face { background: var(--yellow); }
.ball.is-dragging { cursor: grabbing; z-index: 2; }
.ball:focus-visible { outline: 2px solid var(--yellow); outline-offset: 6px; }
.play-panel[data-layout="static"] .balls { display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; padding: var(--nav-reserve) 0 0; }
.play-panel[data-layout="static"] .ball { position: relative; transform: none !important; flex: none; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@supports (height: 100svh) { :root { --viewport-height: 100svh; } }
@supports (height: 100dvh) { :root { --viewport-height: 100dvh; } }
@media (max-width: 600px) { .intro { gap: 1.5rem; } }
@media (max-height: 480px) {
  :root { --nav-top: max(.5rem, calc(env(safe-area-inset-top, 0px) + .25rem)); --nav-reserve: calc(var(--nav-top) + var(--nav-height) + .75rem); --graphic-size: 4.5rem; }
  .about-panel { padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px)); }
  .intro { gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
