/* Explore 3D terrain — shared by web, iOS and Android (see terrain3d.js). */

.pt-dot {
    position: relative;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
/* A bigger invisible hit area: the dot itself is only 10px. */
.pt-dot::before {
    content: '';
    position: absolute;
    inset: -14px;
}
.pt-dot-core {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #e9fbff;
    box-shadow: 0 0 0 1.5px rgba(34, 211, 238, 0.95), 0 0 10px 2px rgba(34, 211, 238, 0.9);
}
.pt-dot-glow {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.55) 0%, rgba(34, 211, 238, 0.18) 38%, rgba(34, 211, 238, 0) 70%);
    animation: pt-breathe 3.6s ease-in-out infinite;
    pointer-events: none;
}
.pt-dot.is-focused .pt-dot-glow {
    inset: -22px;
}
@keyframes pt-breathe {
    0%, 100% { opacity: 0.65; transform: scale(0.9); }
    50%      { opacity: 1;    transform: scale(1.1); }
}

/* Dot + small caps name + depth. No boxed pill (design rule). */
.pt-dot-label {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
    text-align: left;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
    font-family: var(--font-app-rounded, ui-rounded, -apple-system, system-ui, sans-serif);
}
.pt-dot-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}
.pt-dot-depth {
    font-size: 13px;
    font-weight: 700;
    color: #22d3ee;
}
.pt-dot-depth:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
    .pt-dot-glow { animation: none; }
}

/* Compact attribution so it doesn't fight the host's glass chrome. */
.pt-host .maplibregl-ctrl-attrib {
    background: rgba(13, 17, 23, 0.55);
    color: rgba(139, 148, 158, 0.9);
    font-size: 9px;
}
.pt-host .maplibregl-ctrl-attrib a { color: inherit; }
.pt-host .maplibregl-ctrl-attrib-button { filter: invert(0.8); }

/* Focused resort: a waypoint, like an open-world quest marker. When the
   camera lands (.is-arrived) a measured stem rises from the summit dot, a
   diamond drops onto it with a little overshoot, and the name + total slide
   out beside it, toward the roomier side (.is-left mirrors). The summit's
   elevation sits at the stem's foot. It plays once per arrival; after
   that only the diamond bobs gently. */
.pt-dot-stem,
.pt-dot-ticks,
.pt-dot-diamond,
.pt-dot-elev {
    position: absolute;
    pointer-events: none;
    visibility: hidden;
}
.pt-dot-stem {
    left: calc(50% - 1px);
    bottom: 50%;
    width: 2px;
    height: 66px;
    transform-origin: bottom;
    background: linear-gradient(0deg, rgba(34, 211, 238, 0.2), #22d3ee);
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.6);
}
.pt-dot-ticks {
    left: calc(50% + 5px);
    bottom: 50%;
    width: 6px;
    height: 62px;
    transform-origin: bottom;
    background: repeating-linear-gradient(0deg, rgba(165, 243, 252, 0.55) 0 1px, transparent 1px 11px);
}
.pt-dot.is-left .pt-dot-ticks { left: auto; right: calc(50% + 5px); }
.pt-dot-diamond {
    left: calc(50% - 13px);
    bottom: calc(50% + 58px);
    width: 26px;
    height: 26px;
}
.pt-dot-diamond::before {
    /* A snowflake, not a diamond (user, 2026-11-08): six arms with little
       branches, glowing cyan, on every page's callout. */
    content: '';
    position: absolute;
    inset: 1px;
    background: #22d3ee;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><g id='a'><path d='M12 2v20'/><path d='M9 4.5l3 2.5 3-2.5'/><path d='M9 19.5l3-2.5 3 2.5'/></g><use href='%23a' transform='rotate(60 12 12)'/><use href='%23a' transform='rotate(120 12 12)'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><g id='a'><path d='M12 2v20'/><path d='M9 4.5l3 2.5 3-2.5'/><path d='M9 19.5l3-2.5 3 2.5'/></g><use href='%23a' transform='rotate(60 12 12)'/><use href='%23a' transform='rotate(120 12 12)'/></svg>") center / contain no-repeat;
    filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.9)) drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
}

.pt-dot-elev {
    left: calc(50% + 16px);
    bottom: calc(50% + 6px);
    font: 600 10px/1 var(--font-app-rounded, ui-rounded, -apple-system, system-ui, sans-serif);
    letter-spacing: 0.08em;
    color: #a5f3fc;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    font-variant-numeric: tabular-nums;
}
.pt-dot-elev:empty { display: none; }
.pt-dot.is-left .pt-dot-elev { left: auto; right: calc(50% + 16px); }

.pt-dot.is-arrived .pt-dot-stem,
.pt-dot.is-arrived .pt-dot-ticks { visibility: visible; animation: pt-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pt-dot.is-arrived .pt-dot-diamond {
    visibility: visible;
    animation: pt-drop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) 0.35s both, pt-bob 2.6s ease-in-out 1.2s infinite;
}
.pt-dot.is-arrived .pt-dot-elev { visibility: visible; animation: pt-fade-up 0.4s ease-out 1.05s both; }
@keyframes pt-rise { from { transform: scaleY(0); opacity: 0; } }
@keyframes pt-drop { from { transform: translateY(-40px) scale(0.6); opacity: 0; } }
@keyframes pt-bob { 50% { transform: translateY(-4px); } }
@keyframes pt-fade-up { from { opacity: 0; transform: translateY(3px); } }

/* Name above the total, beside the diamond, behind a short accent rule. */
.pt-dot.is-focused .pt-dot-label { visibility: hidden; }
.pt-dot.is-arrived .pt-dot-label {
    visibility: visible;
    left: calc(50% + 22px);
    top: auto;
    bottom: calc(50% + 52px);
    gap: 3px;
    padding-left: 10px;
    border-left: 2px solid #22d3ee;
    transform: none;
    align-items: flex-start;
    text-align: left;
    animation: pt-label-in 0.4s ease-out 0.75s both;
}
.pt-dot.is-arrived.is-left .pt-dot-label {
    left: auto;
    right: calc(50% + 22px);
    padding-left: 0;
    padding-right: 10px;
    border-left: 0;
    border-right: 2px solid #22d3ee;
    align-items: flex-end;
    text-align: right;
    animation-name: pt-label-in-left;
}
.pt-dot.is-focused .pt-dot-name { font-size: 12px; line-height: 14px; }
.pt-dot.is-focused .pt-dot-depth { font-size: 20px; line-height: 22px; }
@keyframes pt-label-in {
    from { opacity: 0; transform: translateX(-10px); clip-path: inset(0 100% 0 0); }
    to   { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); }
}
@keyframes pt-label-in-left {
    from { opacity: 0; transform: translateX(10px); clip-path: inset(0 0 0 100%); }
    to   { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); }
}

/* Arrival ping: one ring out of the dot as the stem starts to rise. */
.pt-dot-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid #22d3ee;
    opacity: 0;
    pointer-events: none;
}
.pt-dot.is-arrived .pt-dot-ping { animation: pt-ping 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 1 both; }
@keyframes pt-ping {
    from { opacity: 0.9; transform: scale(0.5); }
    to   { opacity: 0;   transform: scale(3.2); }
}
@media (prefers-reduced-motion: reduce) {
    .pt-dot.is-arrived .pt-dot-stem,
    .pt-dot.is-arrived .pt-dot-ticks,
    .pt-dot.is-arrived .pt-dot-diamond,
    .pt-dot.is-arrived .pt-dot-elev,
    .pt-dot.is-arrived .pt-dot-label,
    .pt-dot.is-arrived .pt-dot-ping { animation: none; }
}

/* On the globe the storms carry the story: resort dots shrink to points
   and drop their names, which would otherwise pile up (four Washington
   resorts in one spot). */
.pt-on-globe .pt-dot-label,
.pt-on-globe .pt-dot-ping { display: none; }
.pt-on-globe .pt-dot-glow { inset: -6px; }

/* Storm swirls on the globe (storm-globe-spec.md). The page sets the body's
   size and limb squash every frame; spin and breathe are CSS. */
.pt-swirl {
    position: relative;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: #ffffff;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s linear;
}
.pt-swirl-body {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
}
.pt-swirl-glow {
    position: absolute;
    left: -30%;
    top: -30%;
    width: 160%;
    height: 160%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 225, 255, 0.42) 0%, rgba(34, 211, 238, 0.14) 40%, rgba(34, 211, 238, 0) 68%);
    animation: pt-swirl-breathe 6s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes pt-swirl-breathe {
    from { opacity: 0.72; transform: scale(0.94); }
    to   { opacity: 1;    transform: scale(1.05); }
}
.pt-swirl-arms {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 3px rgba(170, 230, 255, 0.9));
    /* Cyclones: counter-clockwise in the north, clockwise in the south. */
    animation: pt-swirl-ccw 44s linear infinite;
}
.pt-swirl-arms.is-south { animation-name: pt-swirl-cw; }
@keyframes pt-swirl-ccw { to { transform: rotate(-360deg); } }
@keyframes pt-swirl-cw  { to { transform: rotate(360deg); } }
.pt-swirl-arms path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pt-arm-haze { stroke: #9fdcff; stroke-opacity: 0.22; stroke-width: 11; }
.pt-arm      { stroke: #dff6ff; stroke-opacity: 0.55; stroke-width: 4.2; }
.pt-arm-line { stroke: #ffffff; stroke-opacity: 0.95; stroke-width: 1.5; }
.pt-arm-core { stroke: #ffffff; stroke-opacity: 0.8;  stroke-width: 2; }
.pt-arm-eye  { fill: #ffffff; filter: drop-shadow(0 0 4px #a5f3fc); }
.pt-swirl-label {
    position: absolute;
    left: 20px;
    top: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 0, 0, 0.6);
    font-family: var(--font-app-rounded, ui-rounded, -apple-system, system-ui, sans-serif);
}
.pt-swirl-name {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    opacity: 0.85;
}
.pt-swirl-amt {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.1;
    color: #22d3ee;
    font-variant-numeric: tabular-nums;
}
.pt-swirl-amt:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
    .pt-swirl-glow, .pt-swirl-arms { animation: none; }
}
.pt-swirl-inner { position: absolute; left: 0; top: 0; }
.pt-swirl-label.is-left { align-items: flex-end; text-align: right; }

/* A dusky grade that is always on, with day and night as subtle layers
   over it that cross-fade, so a change is a dissolve rather than a cut. */
.pt-daylight, .pt-daylight > div {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.pt-daylight > div {
    opacity: 0;
    transition: opacity 0.9s ease;
}
/* The resting dusk grade, always on: cool blue, a little dimmer. */
.pt-daylight > .pt-dusk {
    opacity: 1;
    background: linear-gradient(rgba(22, 34, 84, 0.42), rgba(12, 18, 48, 0.32));
    mix-blend-mode: multiply;
}
/* Day lifts the dusk a touch with a soft cool glow, no warm sun. */
.pt-day {
    background: radial-gradient(ellipse at 70% 0%, rgba(170, 196, 255, 0.22), rgba(150, 180, 240, 0.06) 65%);
    mix-blend-mode: screen;
}
/* Night deepens it to navy, never black. */
.pt-night {
    background: linear-gradient(rgba(8, 14, 44, 0.32), rgba(4, 8, 26, 0.24));
    mix-blend-mode: multiply;
}
.pt-daylight.is-day .pt-day,
.pt-daylight.is-night .pt-night { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .pt-daylight > div { transition: none; }
}

/* Snow columns (overview): a beam of light rising from each resort's dot,
   as tall as its 72-hour snowfall (--beam, set in terrain3d.js). Grows in
   when the camera pulls back, sinks away when a resort opens. */
.pt-dot-beam {
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 8px;
    height: var(--beam, 40px);
    margin-left: -4px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(to top, rgba(165, 243, 252, 0.95), rgba(34, 211, 238, 0.75) 35%, rgba(34, 211, 238, 0.0));
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.55), 0 0 32px rgba(34, 211, 238, 0.25);
    transform-origin: 50% 100%;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
    pointer-events: none;
}
.pt-dot-beam::after {
    /* A soft core line, brighter than the glow around it. */
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0));
}
.pt-overview .pt-dot.has-snow .pt-dot-beam {
    transform: scaleY(1);
    opacity: 1;
}
.pt-overview .pt-dot:not(.has-snow) .pt-dot-beam { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .pt-dot-beam { transition: none; }
}

/* One callout style on every page (user, 2026-11-08): the overview gives
   each resort the resort view's waypoint (terrain3d.js _arriveAll), so the
   snow columns are retired. Labels that would collide are hidden. */
.pt-dot-beam { display: none; }
.pt-overview .pt-dot.pt-label-off .pt-dot-label,
.pt-overview .pt-dot.pt-label-off .pt-dot-elev { visibility: hidden; }
.pt-overview .pt-dot.is-arrived .pt-dot-name { font-size: 12px; line-height: 14px; }
.pt-overview .pt-dot.is-arrived .pt-dot-depth { font-size: 20px; line-height: 22px; }

/* Falling snow (terrain3d.js setSnowfall): over the map, under the dots
   and callouts, fades in and out. */
.pt-snowfall {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.pt-snowfall.is-on { opacity: 1; }

/* Off screen or under the card (terrain3d.js _cullMarkers): hidden, so a
   label never hangs at the edge behind the glass after a pan. */
.maplibregl-marker.pt-off { visibility: hidden; pointer-events: none; }
