:root {
  color-scheme: dark;
  --bg: #121211;
  --bg-2: #1a1918;
  --panel: #242322;
  --panel-2: #2b2a29;
  --panel-3: #373634;
  --line: rgba(196, 195, 193, 0.14);
  --line-strong: rgba(196, 195, 193, 0.28);
  --text: #f7f7f6;
  --muted: #aaa8a6;
  --faint: #807e7b;
  --green: #31d17c;
  --green-2: #22b964;
  /* Kept blue: this is the GPS dot, matching the player marker on the map. */
  --blue: #2f9dff;
  --red: #ff6570;
  --sand: #f0d79a;
  --shadow: 0 18px 55px rgba(9, 9, 8, 0.42);
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--text);
  /* Keep accidental two-finger gestures on controls from zooming the iOS
     page. The map surface overrides this so MapLibre can handle pinch zoom. */
  touch-action: pan-x pan-y;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(159, 157, 155, 0.95);
  outline-offset: 2px;
}

svg {
  display: block;
}

.is-hidden {
  display: none !important;
}

.app-shell {
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr);
  background:
    radial-gradient(circle at 85% -10%, rgba(34, 185, 100, 0.12), transparent 26%),
    radial-gradient(circle at -10% 110%, rgba(255, 255, 255, 0.04), transparent 28%),
    var(--bg);
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: linear-gradient(180deg, #242322 0%, #1e1e1d 100%);
  border-bottom: 1px solid rgba(186, 185, 184, 0.11);
  box-shadow: 0 8px 30px rgba(9, 9, 8, 0.22);
}

/* During play the map owns the whole screen; the brand bar is home-only. */
.app-shell.in-course {
  grid-template-rows: minmax(0, 1fr);
}

.app-shell.in-course .topbar {
  display: none;
}

.brand {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 13px;
  cursor: pointer;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  /* The source mark is black line art on transparency, so invert it to read
     on the dark header. */
  filter: invert(1) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -1.2px;
  font-size: clamp(20px, 2.1vw, 31px);
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark strong {
  color: var(--green);
  font-weight: 900;
}

.brand-wordmark b {
  color: #ececeb;
  font-weight: 900;
}

.drawer-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  color: #8a8886;
}

.drawer-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.button,
.icon-button,
.map-toolbar button,
.segmented-control button,
.text-button,
.drawer-close,
.drawer-update-card button,
.dialog-close {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  font-size: 13px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button svg,
.icon-button svg,
.map-toolbar svg,
.course-link svg,
.sidebar-tabs svg,
.text-button svg,
.drawer-close svg,
.dialog-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary {
  background: linear-gradient(180deg, #39da82, #21bd65);
  color: #07150e;
  box-shadow: 0 8px 22px rgba(31, 191, 101, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #43e58d, #28c96e);
}

.button--outline {
  color: #dad9d8;
  border: 1px solid rgba(171, 169, 167, 0.42);
  background: rgba(22, 22, 22, 0.35);
}

.button--outline:hover:not(:disabled) {
  border-color: rgba(164, 162, 160, 0.7);
  background: rgba(66, 65, 64, 0.42);
}

.button--danger-outline {
  color: #ff8e96;
  border: 1px solid rgba(255, 101, 112, 0.6);
  background: rgba(113, 31, 42, 0.07);
}

.button--danger-outline:hover {
  background: rgba(113, 31, 42, 0.2);
}

.button--soft-green {
  color: #bdf9d6;
  background: rgba(47, 209, 124, 0.09);
  border: 1px solid rgba(47, 209, 124, 0.27);
}

.button--large {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 14px;
}

.button--full {
  width: 100%;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: transparent;
}

.icon-button--soft {
  background: rgba(124, 122, 119, 0.1);
  color: #b5b4b3;
}

.icon-button--border {
  color: #b7b6b5;
  border: 1px solid rgba(171, 169, 167, 0.28);
  background: rgba(18, 18, 18, 0.24);
}

.icon-button:hover,
.map-toolbar button:hover {
  color: #f7f7f6;
  background: rgba(105, 103, 100, 0.38);
}

.main-area {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.home-view {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #161616;
}

.home-map-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 25%, rgba(70, 175, 107, 0.22), transparent 26%),
    linear-gradient(135deg, #143429 0%, #1a4a34 47%, #0f2d27 100%);
}

.preview-grid {
  position: absolute;
  inset: -10%;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(900px) rotateX(60deg) rotateZ(-18deg) scale(1.6);
  transform-origin: 50% 50%;
}

.preview-course {
  position: absolute;
  inset: -8% -2% -14% 23%;
  width: 85%;
  height: 120%;
  transform: perspective(1100px) rotateX(13deg) rotateZ(-4deg);
  transform-origin: 50% 75%;
  opacity: 0.92;
}

.preview-forest {
  fill: #0d3b2b;
  opacity: 0.78;
}

.preview-rough {
  fill: #1c704c;
  stroke: #0a3b28;
  stroke-width: 4;
}

.preview-green {
  fill: #57dd93;
  stroke: rgba(4, 54, 31, 0.75);
  stroke-width: 4;
}

.preview-tee {
  fill: #82eaaa;
  stroke: rgba(4, 54, 31, 0.7);
  stroke-width: 3;
}

.preview-bunker {
  fill: #efd893;
  stroke: #bca664;
  stroke-width: 3;
}

.preview-water {
  fill: #327da2;
  stroke: #1b566f;
  stroke-width: 4;
}

.preview-line {
  fill: none;
  stroke: white;
  stroke-width: 4;
  stroke-dasharray: 12 13;
  opacity: 0.88;
}

.preview-player {
  fill: #319dff;
  stroke: white;
  stroke-width: 5;
}

.preview-flag-pole {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
}

.preview-flag {
  fill: #fff;
}

.preview-distance rect {
  fill: #1b1b1a;
  stroke: rgba(255, 255, 255, 0.12);
}

.preview-distance text {
  fill: white;
  font-size: 18px;
  font-weight: 850;
}

.preview-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 14, 13, 0.96) 0%, rgba(14, 14, 13, 0.88) 34%, rgba(14, 14, 13, 0.35) 63%, rgba(14, 14, 13, 0.03) 100%),
    linear-gradient(0deg, rgba(14, 14, 13, 0.48), transparent 40%);
}

.home-content {
  position: relative;
  z-index: 2;
  width: min(690px, 61vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 78px);
  padding-bottom: clamp(60px, 8vw, 110px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a6a4a2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--green);
}

.home-content h1 {
  max-width: 650px;
  margin: 20px 0 20px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 880;
}

.home-content > p {
  max-width: 660px;
  margin: 0;
  color: #bbbab8;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.72;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin-top: 34px;
}

.home-metrics > div {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(33, 32, 31, 0.72);
  border: 1px solid rgba(177, 176, 174, 0.13);
  backdrop-filter: blur(12px);
}

.home-metrics strong {
  font-size: 13px;
}

.home-metrics span {
  color: #989694;
  font-size: 11px;
  line-height: 1.4;
}

.workspace-view {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  background: #161616;
}

/* Details sheet: hidden below the map, slides up from the bottom at every
   screen size (desktop is the same caddie layout, just larger). */
.course-sidebar {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 0;
  top: max(52px, calc(env(safe-area-inset-top) + 44px));
  width: min(540px, 100%);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(157, 155, 152, 0.35) transparent;
  padding: 12px;
  background: linear-gradient(180deg, #272726, #21201f 58%, #1d1c1b);
  border: 1px solid rgba(180, 179, 177, 0.18);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, calc(100% + 30px));
  transition: transform 240ms ease;
}

.workspace-view.show-sidebar .course-sidebar {
  transform: translate(-50%, 0);
}

.course-card {
  padding: 15px;
  border-radius: 11px;
  background: linear-gradient(155deg, rgba(53, 52, 50, 0.95), rgba(36, 35, 34, 0.96));
  border: 1px solid rgba(180, 179, 177, 0.11);
  box-shadow: 0 10px 28px rgba(12, 12, 11, 0.24);
}

.course-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.course-card__title-row > div:first-child {
  min-width: 0;
}

.small-label,
.control-section .section-heading > span:first-child,
.distance-section > span,
.location-section .section-heading > span:first-child {
  margin: 0 0 5px;
  color: #9d9c9a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.course-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.status-pill {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill--green {
  color: #b9f7d2;
  background: rgba(47, 209, 124, 0.12);
  border: 1px solid rgba(47, 209, 124, 0.24);
}

.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 11px;
  margin-top: 8px;
  color: #b3b2b0;
  font-size: 10px;
}

.course-card__meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: #7a7876;
}

.course-link {
  margin-top: 12px;
  padding-top: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #47dd91;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid rgba(180, 179, 177, 0.11);
}

.course-sidebar > .button--danger-outline {
  margin-top: 9px;
}

.segmented-control {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 9px;
  background: rgba(22, 22, 22, 0.84);
  border: 1px solid rgba(165, 163, 162, 0.2);
  box-shadow: 0 8px 20px rgba(8, 8, 7, 0.2);
}

.segmented-control--wide {
  margin-top: 9px;
}

.segmented-control button {
  min-height: 33px;
  flex: 1 1 0;
  padding: 0 12px;
  border-radius: 6px;
  white-space: nowrap;
  color: #a8a6a4;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.segmented-control button.is-active {
  color: #07150e;
  background: linear-gradient(180deg, #42da86, #28bf69);
  box-shadow: 0 5px 15px rgba(37, 196, 105, 0.2);
}

.sidebar-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 12px -12px 0;
  border-bottom: 1px solid rgba(173, 171, 169, 0.16);
}

.sidebar-tabs button {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #a7a6a4;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.sidebar-tabs button.is-active {
  color: #f7f7f6;
  border-bottom-color: var(--green);
}

.sidebar-panel {
  padding-top: 12px;
}

.control-section,
.distance-section,
.location-section {
  padding: 13px 2px 15px;
  border-bottom: 1px solid rgba(174, 172, 170, 0.13);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.control-section .section-heading > span:last-child {
  color: #8b8987;
  font-size: 10px;
}

.hole-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  margin-top: 7px;
}

.select-field {
  position: relative;
  display: block;
}

.select-field select {
  width: 100%;
  height: 38px;
  appearance: none;
  border-radius: 8px;
  padding: 0 36px 0 12px;
  color: #f5f4f4;
  background: rgba(18, 18, 18, 0.48);
  border: 1px solid rgba(171, 169, 167, 0.25);
}

.select-field svg {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #9b9996;
  stroke-width: 1.8;
  pointer-events: none;
}

.hole-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: #a7a6a4;
  font-size: 11px;
}

.hole-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #767471;
}

.distance-section > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 3px;
}

.distance-section strong {
  color: var(--green);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.distance-section b {
  color: #7ee7ac;
  font-size: 15px;
}

.distance-section p {
  margin: 7px 0 0;
  color: #8b8986;
  font-size: 10px;
  line-height: 1.45;
}

.text-button {
  padding: 0;
  color: #5fdc9a;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.location-status {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  margin-top: 9px;
}

.location-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(59, 156, 255, 0.16);
}

.location-dot.is-manual {
  background: #ffbd4a;
}

.location-dot.is-error {
  background: var(--red);
}

.location-status > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.location-status strong {
  font-size: 12px;
}

.location-status span {
  color: #92908d;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-section code {
  display: block;
  margin-top: 8px;
  color: #9a9896;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.sidebar-actions-stack {
  display: grid;
  gap: 8px;
  padding: 15px 2px 8px;
}

.info-card {
  padding: 14px;
  margin-bottom: 9px;
  border-radius: 10px;
  background: rgba(48, 47, 46, 0.78);
  border: 1px solid rgba(174, 172, 170, 0.13);
}

.info-card h3 {
  margin: 0 0 7px;
  font-size: 13px;
}

.info-card p {
  margin: 0;
  color: #a8a7a5;
  font-size: 11px;
  line-height: 1.55;
}

.info-card code {
  color: #b8f1ce;
}

.map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #173025;
}

.map-canvas,
.fallback-map {
  position: absolute;
  inset: 0;
  touch-action: none;
}

.map-canvas {
  background:
    radial-gradient(circle at 52% 28%, rgba(74, 179, 111, 0.28), transparent 26%),
    linear-gradient(145deg, #214e36, #1b3c2e 62%, #173127);
}

.maplibregl-canvas {
  outline: 0;
}

.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-top-right,
.maplibregl-ctrl-top-left {
  display: none !important;
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: rgba(17, 17, 17, 0.66);
  backdrop-filter: blur(7px);
  transition: opacity 180ms ease;
}

.map-loading.is-done {
  opacity: 0;
  pointer-events: none;
}

.map-loading strong {
  font-size: 14px;
}

.map-loading small {
  color: #a3a2a0;
  font-size: 11px;
}

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--green);
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mobile-sidebar-button {
  position: absolute;
  z-index: 7;
  left: 10px;
  top: calc(94px + env(safe-area-inset-top));
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(196, 195, 193, 0.22);
  border-radius: 9px;
  color: #ebebea;
  background: rgba(27, 26, 25, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.mobile-sidebar-button:hover {
  background: rgba(47, 47, 46, 0.98);
}

.mobile-sidebar-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.map-toolbar {
  position: absolute;
  z-index: 5;
  top: calc(94px + env(safe-area-inset-top));
  right: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(24, 24, 24, 0.92);
  border: 1px solid rgba(178, 177, 175, 0.18);
  box-shadow: 0 12px 32px rgba(9, 9, 8, 0.32);
  backdrop-filter: blur(8px);
}

.map-toolbar button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #bdbcba;
  background: transparent;
}

.map-toolbar button.is-live,
.map-toolbar button.is-active-mode {
  color: #0b2a18;
  background: var(--green);
}

.map-toolbar button.is-live:hover,
.map-toolbar button.is-active-mode:hover {
  background: var(--green-2);
}

.map-toolbar div {
  height: 1px;
  background: rgba(178, 177, 175, 0.13);
}

.map-attribution {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 6px;
  color: #e7e7e7;
  background: rgba(24, 24, 24, 0.7);
  font-size: 9px;
  backdrop-filter: blur(6px);
}

.map-attribution a {
  color: inherit;
  text-decoration: none;
}

.map-attribution a:hover {
  text-decoration: underline;
}

/* Caddie overlays — the primary in-play UI at every screen size. */
.caddie-stepper,
.caddie-distances {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 20px));
  z-index: 7;
  display: flex;
  align-items: center;
  border-radius: 12px;
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid rgba(180, 179, 177, 0.2);
  box-shadow: 0 12px 32px rgba(9, 9, 8, 0.34);
  backdrop-filter: blur(10px);
}

.caddie-accuracy {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #ffb8b8;
  background: rgba(255, 101, 112, 0.14);
  border: 1px solid rgba(255, 101, 112, 0.25);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.caddie-accuracy--live {
  color: #a9f5c9;
  background: rgba(49, 209, 124, 0.16);
  border-color: rgba(49, 209, 124, 0.35);
}

.caddie-stepper {
  top: calc(10px + env(safe-area-inset-top));
  justify-content: space-between;
  gap: 6px;
  padding: 6px;
}

.caddie-stepper > button {
  width: 46px;
  flex: 0 0 46px;
  align-self: stretch;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #ebebea;
  background: rgba(55, 54, 52, 0.75);
  cursor: pointer;
}

.caddie-stepper > button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.caddie-stepper__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  padding: 2px 0;
}

.caddie-stepper__info span {
  color: #9d9c9a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.caddie-stepper__info strong {
  font-size: 24px;
  font-weight: 900;
}

.caddie-stepper__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.caddie-stepper__meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.caddie-stepper__info small {
  color: #aaa8a6;
  font-size: 10px;
}

.caddie-distances {
  bottom: calc(12px + env(safe-area-inset-bottom));
  justify-content: space-between;
  padding: 10px 20px;
}

.caddie-distance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.caddie-distance span {
  color: #9d9c9a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.caddie-distance strong {
  color: #cfe2d6;
  font-size: 22px;
  font-weight: 850;
}

.caddie-distance--centre div {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.caddie-distance--centre strong {
  color: var(--green);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.caddie-distance--centre b {
  color: #6fdd9f;
  font-size: 14px;
}

.sidebar-close {
  flex: 0 0 auto;
}

.caddie-score {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #0a2a18;
  background: var(--green);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

/* Stroke counter: thumb-reachable on the right edge, clear of the toolbar
   above and the distance bar below. */
.score-stepper {
  position: absolute;
  z-index: 7;
  right: 10px;
  /* Just above the distance bar, within thumb reach. */
  bottom: calc(108px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid rgba(180, 179, 177, 0.2);
  box-shadow: 0 12px 32px rgba(9, 9, 8, 0.34);
  backdrop-filter: blur(10px);
}

.score-stepper button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.score-stepper > button:first-child,
.score-stepper > button:last-child {
  width: 58px;
  height: 48px;
  display: grid;
  place-items: center;
}

.score-stepper > button:first-child {
  color: #9df3c2;
}

.score-stepper > button:first-child:active {
  background: rgba(49, 209, 124, 0.22);
}

.score-stepper > button:last-child:active {
  background: rgba(255, 255, 255, 0.1);
}

.score-stepper svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

#scoreValueButton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 5px 0 7px;
  border-top: 1px solid rgba(180, 179, 177, 0.18);
  border-bottom: 1px solid rgba(180, 179, 177, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

#scoreValue {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

#scoreValue.is-empty {
  color: #8a8886;
}

#scoreParLabel {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.scorecard {
  position: fixed;
  z-index: 95;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 100vw);
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: #171716;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.6);
  animation: scorecardIn 200ms ease both;
}

@keyframes scorecardIn {
  from { transform: translate(-50%, 14px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.scorecard__header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: max(20px, env(safe-area-inset-top)) 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.scorecard__header h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

#scorecardSubtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.scorecard__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  padding: 4px 20px calc(24px + env(safe-area-inset-bottom));
}

.scorecard__section {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.scorecard__section .section-heading > span:first-child {
  color: #8a8886;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#scorecardHint,
#ratingSetHint {
  color: #7c7a78;
  font-size: 10px;
  font-weight: 600;
}

.tee-options--category {
  margin-bottom: 4px;
}

.scorecard__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input {
  min-height: 40px;
  padding: 0 11px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: 0;
  font-size: 14px;
}

.field input:focus {
  border-color: rgba(49, 209, 124, 0.55);
}

.tee-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tee-options button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tee-options button.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.tee-options i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.scorecard__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.scorecard__note strong {
  color: var(--text);
}

.stroke-index-entry {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.stroke-index-entry .field {
  flex: 1 1 auto;
  min-width: 0;
}

.stroke-index-entry .button {
  flex: 0 0 auto;
  min-height: 40px;
}

.scorecard-table {
  margin-top: 10px;
  overflow-x: auto;
}

.scorecard-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.scorecard-table th {
  padding: 6px 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scorecard-table th:first-child {
  text-align: left;
}

.scorecard-table td {
  padding: 8px 4px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scorecard-table td:first-child {
  text-align: left;
  font-weight: 700;
}

.scorecard-table tr.is-current td {
  background: rgba(49, 209, 124, 0.08);
}

.scorecard-table tr.is-subtotal td,
.scorecard-table tr.is-total td {
  font-weight: 850;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.scorecard-table tr.is-total td {
  font-size: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.scorecard-table tbody tr[data-hole-index] {
  cursor: pointer;
}

.scorecard-table .muted {
  color: #7c7a78;
}

.scorecard-table .under {
  color: #6ee7a0;
}

.scorecard-table .over {
  color: #ff9a9a;
}

#deleteRoundButton {
  margin-top: 18px;
}

.player-marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2f9dff;
  border: 4px solid white;
  box-shadow: 0 7px 18px rgba(6, 22, 40, 0.42), 0 0 0 7px rgba(47, 157, 255, 0.18);
  cursor: grab;
}

.player-marker:active {
  cursor: grabbing;
}

.flag-marker {
  position: relative;
  width: 31px;
  height: 52px;
  cursor: grab;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.34));
}

.flag-marker::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 3px;
  height: 43px;
  border-radius: 3px;
  background: white;
}

.flag-marker::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 22px solid white;
}

.flag-marker span {
  position: absolute;
  left: 4px;
  bottom: 1px;
  width: 11px;
  height: 5px;
  border-radius: 50%;
  background: rgba(6, 17, 12, 0.8);
}

.distance-marker {
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: #161615;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 18px rgba(6, 6, 6, 0.32);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  pointer-events: none;
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(8, 8, 8, 0.58);
  backdrop-filter: blur(3px);
}

.course-drawer {
  --drawer-bg: #171716;
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: min(440px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 31px 26px 20px;
  color: var(--text);
  background: var(--drawer-bg);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 22px 0 70px rgba(0, 0, 0, 0.55);
  animation: drawerIn 180ms ease both;
}

@keyframes drawerIn {
  from { transform: translateX(-18px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.drawer-brand {
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.3px;
}

.drawer-brand span {
  color: var(--green);
}

.drawer-header p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.drawer-close,
.dialog-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.drawer-close {
  color: #c9c7c5;
  background: rgba(255, 255, 255, 0.06);
}

.drawer-close svg,
.dialog-close svg {
  width: 18px;
  height: 18px;
}

.drawer-update-card {
  min-height: 66px;
  margin-top: 18px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.drawer-update-card > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawer-update-card strong {
  font-size: 13px;
}

.drawer-update-card span {
  color: var(--muted);
  font-size: 11px;
}

.drawer-update-card button {
  min-width: 75px;
  height: 39px;
  border-radius: 999px;
  color: #07150e;
  background: linear-gradient(180deg, #39da82, #21bd65);
  font-size: 12px;
  font-weight: 750;
}

.drawer-search {
  min-height: 43px;
  margin-top: 10px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.drawer-search input {
  color: var(--text);
}

.drawer-search input::placeholder {
  color: #8a8886;
}

.drawer-message {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #f3d494;
  background: rgba(255, 189, 74, 0.1);
  border: 1px solid rgba(255, 189, 74, 0.22);
  font-size: 11px;
  line-height: 1.45;
}

.course-list {
  min-height: 0;
  flex: 1 1 auto;
  margin-top: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  padding-right: 2px;
}

.course-list__heading {
  margin: 14px 2px 4px;
  color: #8a8886;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-list__heading:first-child {
  margin-top: 2px;
}

.course-row {
  position: relative;
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 2px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  cursor: pointer;
}

.course-row:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
}

.course-row:disabled {
  cursor: default;
  opacity: 0.52;
}

.course-row > span:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
}

.course-row small {
  color: var(--muted);
  font-size: 11px;
}

.course-row__tag {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  color: #7ee7ac;
  background: rgba(49, 209, 124, 0.14);
  border: 1px solid rgba(49, 209, 124, 0.26);
  font-size: 9px;
  font-weight: 800;
}

.course-row__chevron {
  width: 18px;
  height: 18px;
  color: #7c7a78;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.course-row--loading {
  pointer-events: none;
}

.course-row--loading strong,
.course-row--loading small {
  color: transparent;
  border-radius: 999px;
  background: linear-gradient(90deg, #262625 25%, #333332 50%, #262625 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.course-row--loading strong {
  width: 62%;
}

.course-row--loading small {
  width: 37%;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.app-dialog {
  width: min(470px, calc(100vw - 28px));
  padding: 0;
  color: #f5f4f4;
  background: #272625;
  border: 1px solid rgba(181, 180, 179, 0.18);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.app-dialog::backdrop {
  background: rgba(8, 8, 7, 0.7);
  backdrop-filter: blur(5px);
}

.app-dialog form {
  position: relative;
  padding: 26px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #b5b4b3;
  background: rgba(255, 255, 255, 0.05);
}

.dialog-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #7be3ab;
  background: rgba(49, 209, 124, 0.1);
  border: 1px solid rgba(49, 209, 124, 0.21);
}

.dialog-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.app-dialog h2 {
  margin: 18px 0 9px;
  font-size: 22px;
}

.app-dialog p {
  color: #b4b3b1;
  font-size: 13px;
  line-height: 1.65;
}

.app-dialog code {
  color: #b9f4d0;
}

.app-dialog .button {
  margin-top: 9px;
}

.toast-region {
  position: fixed;
  z-index: 120;
  top: 84px;
  right: 16px;
  width: min(340px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 13px;
  border-radius: 10px;
  color: #f5f4f4;
  background: rgba(32, 31, 30, 0.96);
  border: 1px solid rgba(178, 177, 175, 0.2);
  box-shadow: 0 14px 35px rgba(8, 8, 7, 0.35);
  font-size: 12px;
  line-height: 1.45;
  animation: toastIn 180ms ease both;
}

.toast--error {
  border-color: rgba(255, 101, 112, 0.42);
}

.toast--success {
  border-color: rgba(49, 209, 124, 0.35);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

.fallback-map {
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 30%, rgba(53, 135, 78, 0.48), transparent 34%),
    #163629;
  perspective: 1000px;
}

.fallback-map__surface {
  width: 100%;
  height: 100%;
  transform-origin: 50% 70%;
  transition: transform 320ms ease;
}

.fallback-map.is-3d .fallback-map__surface {
  transform: perspective(1200px) rotateX(23deg) scale(1.08) translateY(2%);
}

.fallback-map svg {
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
}

.fallback-bg {
  fill: #1c4a35;
}

.fallback-feature {
  vector-effect: non-scaling-stroke;
}

.fallback-forest {
  fill: url(#fallbackCanopy);
  stroke: #062a1a;
  stroke-width: 2.5;
  opacity: 0.95;
}

.fallback-rough {
  fill: #23734e;
  stroke: #145d3e;
  stroke-width: 2;
  opacity: 0.78;
}

.fallback-fairway {
  fill: #39a96b;
  stroke: #176945;
  stroke-width: 2.2;
  opacity: 0.88;
}

.fallback-green {
  fill: #56dc91;
  stroke: #0f7043;
  stroke-width: 2.5;
}

.fallback-green-selected {
  stroke: white;
  stroke-width: 4;
}

.fallback-tee {
  fill: #f0564d;
  stroke: #a8352e;
  stroke-width: 2;
}

.fallback-bunker {
  fill: #f0d796;
  stroke: #b69f60;
  stroke-width: 2;
}

.fallback-water {
  fill: #3e8fb3;
  stroke: #1e6481;
  stroke-width: 2;
}

.fallback-penalty {
  fill: rgba(239, 99, 96, 0.45);
  stroke: #ff4d4d;
  stroke-width: 3;
}

.fallback-waterway {
  fill: none;
  stroke: #3e8fb3;
  stroke-width: 4;
  stroke-linecap: round;
}

.fallback-oob {
  fill: rgba(8, 11, 16, 0.58);
  stroke: #ffffff;
  stroke-width: 3;
  stroke-dasharray: 6 6;
}

.fallback-boundary {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3;
}

.fallback-building {
  fill: #8f8d8a;
  stroke: #3f3e3c;
  stroke-width: 2;
}

.fallback-range {
  fill: rgba(163, 230, 53, 0.3);
  stroke: #4d7c0f;
  stroke-width: 2;
}

.fallback-cartpath {
  fill: none;
  stroke: #dcd9d4;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.8;
}

.fallback-path {
  fill: none;
  stroke: #a8a28b;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.75;
}

.fallback-hole-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 2;
  stroke-dasharray: 8 8;
}

.fallback-measurement {
  fill: none;
  stroke: white;
  stroke-width: 3;
  stroke-dasharray: 10 10;
  vector-effect: non-scaling-stroke;
}

.fallback-player {
  fill: #2e9dff;
  stroke: white;
  stroke-width: 5;
  cursor: grab;
  vector-effect: non-scaling-stroke;
}

.fallback-flag-pole {
  stroke: white;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.fallback-flag-shape {
  fill: white;
}

.fallback-distance-bg {
  fill: #161615;
  stroke: rgba(255, 255, 255, 0.18);
  vector-effect: non-scaling-stroke;
}

.fallback-distance-text {
  fill: white;
  font-size: 18px;
  font-weight: 850;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

@media (max-width: 1050px) {
  .home-content {
    width: 72vw;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 62px;
  }

  .app-shell {
    min-height: 500px;
  }

  .topbar {
    padding: 0 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .brand-wordmark {
    font-size: 20px;
  }

  .home-map-preview {
    opacity: 0.78;
  }

  .preview-course {
    inset: 3% -42% -17% 5%;
    width: 145%;
  }

  .preview-shade {
    background:
      linear-gradient(0deg, rgba(14, 14, 13, 0.98) 0%, rgba(14, 14, 13, 0.86) 54%, rgba(14, 14, 13, 0.3) 100%);
  }

  .home-content {
    width: 100%;
    justify-content: flex-end;
    padding: 25px 20px 35px;
  }

  .home-content h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .home-content > p {
    font-size: 14px;
    line-height: 1.58;
  }

  .home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-metrics {
    display: none;
  }

  .map-attribution {
    display: none;
  }

  .course-drawer {
    width: 100vw;
    padding: 27px 18px 16px;
  }
}

@media (max-width: 460px) {
  .home-content h1 {
    margin-top: 14px;
  }

  .home-content > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .course-drawer {
    padding-top: max(22px, env(safe-area-inset-top));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
