:root {
  --ink: #f8fcff;
  --muted: rgba(248, 252, 255, 0.72);
  --panel: rgba(5, 25, 34, 0.76);
  --panel-strong: rgba(7, 39, 48, 0.9);
  --line: rgba(255, 255, 255, 0.18);
  --accent: #ffcf5a;
  --accent-strong: #ff7a59;
  --aqua: #63e6e2;
  --focus: #ffffff;
  --map-background: #e8e2d7;
  --water-background: #063f5c;
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--map-background);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.app-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--map-background);
}

.aquarium-stage,
.openfreemap-layer,
.aquarium-canvas,
.tank3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.openfreemap-layer {
  z-index: 0;
  overflow: hidden;
  background: var(--map-background);
  pointer-events: none;
  opacity: 1;
}

.profile-mode .openfreemap-layer {
  opacity: 0;
}

.map-preparing .openfreemap-layer,
.map-preparing .aquarium-canvas {
  opacity: 0;
  pointer-events: none;
}

.openfreemap-layer .maplibregl-canvas {
  outline: none;
}

.aquarium-stage {
  z-index: 1;
}

.aquarium-canvas,
.tank3d-canvas {
  display: block;
  touch-action: none;
}

.map-explore-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--explore-diameter);
  height: var(--explore-diameter);
  border: 1px solid rgba(148, 163, 184, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 22%, rgba(148, 163, 184, 0.13) 48%, rgba(148, 163, 184, 0.02) 72%),
    radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 58%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 0 24px rgba(15, 23, 42, 0.18);
  color: rgba(15, 23, 42, 0.86);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 120ms ease;
  will-change: transform;
}

.map-explore-cursor::before {
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(71, 85, 105, 0.42);
  border-radius: inherit;
  content: "";
}

.map-explore-cursor span {
  position: relative;
  width: 58px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.map-explore-cursor[data-visible="true"] {
  opacity: 1;
}

@media (pointer: coarse) {
  .map-explore-cursor {
    display: none;
  }
}

.bubble-transition,
.opening-loader,
.profile-fish-transition,
.release-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  pointer-events: auto;
  background:
    radial-gradient(circle at 50% 84%, rgba(22, 214, 255, 0.24), transparent 48%),
    radial-gradient(circle at 18% 44%, rgba(3, 152, 222, 0.24), transparent 34%),
    radial-gradient(circle at 82% 34%, rgba(101, 233, 255, 0.13), transparent 30%),
    radial-gradient(ellipse at 28% 24%, rgba(0, 37, 91, 0.22), transparent 42%),
    radial-gradient(ellipse at 72% 66%, rgba(0, 35, 86, 0.18), transparent 46%),
    radial-gradient(ellipse at 45% 48%, rgba(0, 47, 102, 0.12), transparent 54%),
    linear-gradient(
      180deg,
      rgba(0, 88, 146, 0.98) 0%,
      rgba(0, 76, 137, 0.99) 34%,
      rgba(0, 70, 130, 0.99) 64%,
      rgba(0, 94, 150, 0.98) 100%
    );
  contain: layout paint style;
}

.bubble-transition {
  opacity: 0;
  animation: bubble-transition-fade var(--bubble-transition-duration) linear forwards;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: opacity;
}

.map-boat-transition {
  position: fixed;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint style;
}

.map-boat-sprite {
  position: absolute;
  left: 0;
  top: 0;
  width: 68px;
  height: 36px;
  filter: drop-shadow(0 10px 12px rgba(0, 20, 32, 0.26));
  transform: translate3d(-82px, var(--boat-start-y), 0) scale(0.86);
  animation: map-boat-zip var(--boat-transition-duration) cubic-bezier(0.03, 0.86, 0.12, 1) forwards;
  will-change: transform, opacity;
}

.map-boat-hull,
.map-boat-cabin,
.map-boat-roof,
.map-boat-window,
.map-boat-wake {
  position: absolute;
  display: block;
}

.map-boat-hull {
  left: 10px;
  bottom: 7px;
  width: 48px;
  height: 15px;
  background: #d92f24;
  clip-path: polygon(0 22%, 100% 22%, 88% 100%, 14% 100%);
  box-shadow:
    0 -3px 0 #f5f0dc inset,
    0 2px 0 rgba(10, 23, 34, 0.18);
}

.map-boat-cabin {
  left: 31px;
  bottom: 20px;
  width: 16px;
  height: 11px;
  background: #fff3d4;
  border-radius: 2px 2px 0 0;
}

.map-boat-roof {
  left: 28px;
  bottom: 30px;
  width: 22px;
  height: 4px;
  background: #b91f1a;
}

.map-boat-window {
  left: 36px;
  bottom: 23px;
  width: 5px;
  height: 4px;
  background: #2d7f9f;
}

.map-boat-wake {
  left: -5px;
  bottom: 5px;
  width: 28px;
  height: 9px;
  border-top: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  opacity: 0.78;
}

.opening-loader,
.profile-fish-transition,
.release-loading-screen {
  display: grid;
  place-items: center;
  opacity: 1;
  text-align: center;
}

.profile-fish-transition {
  animation: profile-fish-transition-fade 620ms ease-in-out forwards;
}

.profile-fish-transition-content {
  position: relative;
  display: grid;
  place-items: center;
  width: min(86vw, 560px);
  min-height: 220px;
  transform: translate3d(0, 0, 0);
}

.profile-fish-transition-fish {
  display: grid;
  place-items: center;
  width: min(72vw, 360px);
  opacity: 0.9;
  animation: profile-fish-transition-pop 620ms cubic-bezier(0.2, 0.86, 0.18, 1) forwards;
  filter:
    drop-shadow(0 22px 26px rgba(0, 24, 42, 0.28))
    drop-shadow(0 0 22px rgba(118, 235, 255, 0.14));
  transform-origin: center center;
}

.profile-fish-transition-fish .fish-portrait {
  width: 100%;
  transform: translateZ(0);
}

.release-loading-screen {
  z-index: 9;
}

.opening-loader-content {
  position: relative;
  display: grid;
  place-items: center;
  gap: 16px;
  min-width: min(86vw, 560px);
  min-height: 180px;
  padding: 28px 18px;
}

.release-loading-content {
  position: relative;
  display: grid;
  place-items: center;
  gap: 18px;
  width: min(86vw, 560px);
  min-height: 220px;
  padding: 28px 18px;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 56%;
}

.release-loading-fish {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(72vw, 430px);
  transform: translateZ(0);
}

.release-loading-fish .fish-portrait {
  width: 100%;
  max-height: min(30vh, 190px);
  object-fit: contain;
  filter:
    drop-shadow(0 20px 24px rgba(0, 24, 42, 0.34))
    drop-shadow(0 0 24px rgba(118, 235, 255, 0.18));
}

.release-loading-status {
  bottom: max(28px, env(safe-area-inset-bottom));
}

.opening-loader-content h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(246, 253, 255, 0.96);
  font-size: clamp(2.1rem, 7vw, 5.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow:
    0 4px 18px rgba(0, 32, 54, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.24);
}

.opening-loader-fish {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: min(64vw, 320px);
  opacity: 0.88;
  transform: translateZ(0);
  filter:
    drop-shadow(0 20px 24px rgba(0, 24, 42, 0.3))
    drop-shadow(0 0 24px rgba(118, 235, 255, 0.16));
}

.opening-loader-fish .fish-portrait {
  width: 100%;
  max-height: min(26vh, 150px);
  object-fit: contain;
  filter: none;
}

.opening-loader-status {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: max(28px, env(safe-area-inset-bottom));
  display: inline-flex;
  justify-content: center;
  gap: 0.18em;
  margin: 0;
  color: rgba(236, 254, 255, 0.86);
  font-size: 0.94rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.opening-loader-dots {
  position: relative;
  display: inline-grid;
  min-width: 2.1em;
}

.opening-loader-dot-state {
  grid-area: 1 / 1;
  opacity: 0;
  animation: opening-loader-dots 900ms steps(1, end) infinite;
}

.opening-loader-dot-state:nth-child(2) {
  animation-delay: 300ms;
}

.opening-loader-dot-state:nth-child(3) {
  animation-delay: 600ms;
}

@keyframes opening-loader-dots {
  0%,
  33.333% {
    opacity: 1;
  }

  33.334%,
  100% {
    opacity: 0;
  }
}

@keyframes profile-fish-transition-fade {
  0% {
    opacity: 0;
  }

  22%,
  74% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes profile-fish-transition-pop {
  0% {
    transform: scale(0.92);
  }

  34%,
  72% {
    transform: scale(1);
  }

  100% {
    transform: scale(0.96);
  }
}

.bubble-transition-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: var(--bubble-layer-height);
  pointer-events: none;
  transform: translate3d(0, var(--bubble-start-y), 0);
  animation: bubble-layer-rise var(--bubble-transition-duration) linear forwards;
  will-change: transform;
  backface-visibility: hidden;
  contain: layout paint size style;
}

.bubble-transition-layer-1 {
  opacity: 0.74;
}

.bubble-transition-layer-2 {
  opacity: 0.88;
}

.bubble-transition-layer-3 {
  opacity: 0.94;
}

@keyframes bubble-layer-rise {
  from {
    transform: translate3d(0, var(--bubble-start-y), 0);
  }

  to {
    transform: translate3d(0, var(--bubble-end-y), 0);
  }
}

@keyframes bubble-transition-fade {
  0%,
  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes map-boat-zip {
  0% {
    opacity: 0;
    transform: translate3d(-82px, var(--boat-start-y), 0) scale(0.82) rotate(-2deg);
  }

  8% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(calc(var(--boat-target-x) - 34px), calc(var(--boat-target-y) - 18px), 0) scale(0.84) rotate(0deg);
  }
}

.topbar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  left: max(10px, env(safe-area-inset-left));
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: auto;
  pointer-events: none;
}

.brand,
.header-actions,
.tabs,
.floating-create-button,
.profile-button {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: min(48vw, 190px);
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 28, 38, 0.78);
  box-shadow:
    0 14px 32px rgba(0, 22, 34, 0.2),
    0 3px 10px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.header-actions {
  position: fixed;
  top: calc(max(12px, env(safe-area-inset-top)) + 52px);
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 11px;
  width: min(310px, calc(100vw - 24px));
  transform: translateX(-50%);
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 18px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow:
    0 5px 12px rgba(255, 107, 107, 0.18);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  z-index: 0;
  left: 0;
  top: 25%;
  width: 30%;
  height: 50%;
  background: #7bdff2;
  clip-path: polygon(100% 50%, 0 0, 18% 50%, 0 100%);
}

.brand-mark::after {
  z-index: 1;
  right: 0;
  top: 12%;
  width: 80%;
  height: 76%;
  border-radius: 56% 44% 48% 52% / 54% 48% 52% 46%;
  background: #ff6b6b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.brand-mark i {
  position: absolute;
  z-index: 2;
  display: block;
  right: 3px;
  top: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #172026;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.brand-mark i::before {
  position: absolute;
  left: 52%;
  top: 24%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  content: "";
}

.brand-mark i::after {
  top: -2px;
  bottom: -6px;
  right: 6px;
  width: 10px;
  border-radius: 3px;
  background:
    linear-gradient(
      90deg,
      #ffffff 0 18%,
      transparent 19% 39%,
      #ffffff 40% 58%,
      transparent 59% 79%,
      #ffffff 80% 100%
    );
  opacity: 0.84;
}

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(250px, 100%);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 28, 38, 0.72);
  box-shadow:
    0 16px 34px rgba(0, 20, 32, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.tabs::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  z-index: 0;
  width: calc((100% - 8px) / 2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  content: "";
  transition: transform 240ms ease;
}

.tabs.aquarium-selected::before {
  transform: translateX(100%);
}

.tabs.none-selected::before {
  opacity: 0;
}

.tabs.world-only {
  grid-template-columns: minmax(0, 1fr);
  width: min(138px, 100%);
}

.tabs.world-only::before {
  width: calc(100% - 8px);
  opacity: 0.16;
}

.tabs.world-only .tab {
  color: var(--ink);
}

.tab,
.segment,
.ghost-action,
.primary-action {
  border: 0;
  cursor: pointer;
}

.tab {
  position: relative;
  z-index: 1;
  min-height: 42px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 720;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.tab.active {
  color: var(--ink);
  transform: translateY(-1px);
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  min-height: 38px;
  padding: 5px 9px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 28, 38, 0.76);
  box-shadow:
    0 14px 32px rgba(0, 22, 34, 0.2),
    0 3px 10px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  color: rgba(248, 252, 255, 0.86);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0;
  backdrop-filter: blur(18px);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.profile-button:hover,
.profile-button:focus-visible,
.profile-button.active {
  border-color: rgba(99, 230, 226, 0.5);
  background: rgba(6, 55, 76, 0.82);
  color: #ffffff;
  transform: translateY(-1px);
}

.profile-button-avatar {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, #fff8cf 0 16%, transparent 17%),
    radial-gradient(circle at 50% 74%, #ffb86a 0 30%, transparent 31%),
    linear-gradient(135deg, #63e6e2, #315fa8);
  box-shadow:
    0 0 0 1px rgba(7, 28, 42, 0.22),
    0 6px 14px rgba(0, 18, 30, 0.18);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.profile-button-label {
  display: none;
}

.floating-create-button {
  --create-fish-tail: #ff9d4d;
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  overflow: visible;
  min-height: 38px;
  min-width: 128px;
  padding: 0 18px;
  border: 1px solid rgba(255, 207, 90, 0.62);
  border-radius: 999px;
  background: transparent;
  color: #172026;
  box-shadow:
    0 12px 26px rgba(255, 122, 89, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.24) inset;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    border-radius 220ms ease,
    padding 220ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.create-button-tail,
.create-button-body,
.create-button-eye {
  position: absolute;
  pointer-events: none;
}

.create-button-tail,
.create-button-eye {
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.create-button-body {
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.create-button-tail {
  z-index: 0;
  left: -20px;
  top: 50%;
  width: 28px;
  height: 26px;
  background: var(--create-fish-tail);
  clip-path: polygon(100% 50%, 0 6%, 0 94%);
  opacity: 0;
  transform: translate(10px, -50%) scale(0.45);
}

.create-button-eye {
  z-index: 3;
  right: 15px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #172026;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.36);
  opacity: 0;
  transform: translateX(-8px) scale(0.35);
}

.create-button-label {
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.floating-create-button:hover,
.floating-create-button:focus-visible {
  padding: 0 28px 0 24px;
  border-radius: 999px;
  transform: translateY(-1px);
  box-shadow:
    0 16px 30px rgba(255, 122, 89, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.floating-create-button:hover .create-button-tail,
.floating-create-button:focus-visible .create-button-tail {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

.floating-create-button:hover .create-button-eye,
.floating-create-button:focus-visible .create-button-eye {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.floating-create-button[aria-disabled="true"] {
  cursor: default;
}

.floating-create-button[aria-disabled="true"]:not(.allow-disabled-hover):hover,
.floating-create-button[aria-disabled="true"]:not(.allow-disabled-hover):focus-visible {
  padding: 0 18px;
  transform: none;
  box-shadow:
    0 12px 26px rgba(255, 122, 89, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.24) inset;
}

.floating-create-button[aria-disabled="true"]:not(.allow-disabled-hover):hover .create-button-tail,
.floating-create-button[aria-disabled="true"]:not(.allow-disabled-hover):focus-visible .create-button-tail,
.floating-create-button[aria-disabled="true"]:not(.allow-disabled-hover):hover .create-button-eye,
.floating-create-button[aria-disabled="true"]:not(.allow-disabled-hover):focus-visible .create-button-eye {
  opacity: 0;
}

.floating-create-button[aria-disabled="true"]:not(.allow-disabled-hover):hover .create-button-tail,
.floating-create-button[aria-disabled="true"]:not(.allow-disabled-hover):focus-visible .create-button-tail {
  transform: translate(10px, -50%) scale(0.45);
}

.floating-create-button[aria-disabled="true"]:not(.allow-disabled-hover):hover .create-button-eye,
.floating-create-button[aria-disabled="true"]:not(.allow-disabled-hover):focus-visible .create-button-eye {
  transform: translateX(-8px) scale(0.35);
}

.panel {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 3;
  max-height: min(70vh, 620px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.create-panel.is-hidden-warm {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: none;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.create-heading {
  align-items: flex-start;
}

.create-heading p {
  margin-top: 5px;
  max-width: 32rem;
  color: rgba(23, 32, 38, 0.68);
  font-weight: 690;
  line-height: 1.35;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.05;
}

.field-grid {
  display: grid;
  gap: 10px;
}

.field-grid.details-field-grid {
  grid-template-columns: 1fr;
}

.text-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.text-field input,
.message-field textarea,
.paint-row input[type="color"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  outline: none;
}

.text-field input {
  padding: 0 11px;
}

.message-field {
  margin-top: 14px;
}

.message-field textarea {
  min-height: 82px;
  padding: 10px 11px;
  resize: vertical;
}

.message-field small {
  justify-self: end;
  color: currentColor;
  opacity: 0.68;
  font-size: 0.76rem;
}

.text-field-counter {
  justify-self: end;
  color: currentColor;
  opacity: 0.68;
  font-size: 0.76rem;
}

.field-label {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.field-required {
  padding: 2px 7px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(23, 32, 38, 0.54);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.message-field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 18px;
}

.message-field-meta small {
  justify-self: auto;
}

.identity-toggle {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.identity-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  gap: 10px;
  width: min(100%, 318px);
  min-height: 44px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(236, 243, 248, 0.94), rgba(190, 205, 218, 0.92));
  color: #253747;
  cursor: pointer;
  text-align: left;
}

.identity-switch.is-public {
  border-color: rgba(23, 32, 38, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 239, 248, 0.94));
  color: #132548;
}

.identity-switch-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.identity-switch-copy strong {
  color: currentColor;
  font-size: 0.82rem;
  line-height: 1;
}

.identity-switch-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-switch-track {
  position: relative;
  width: 50px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(70, 88, 104, 0.26);
  box-shadow: inset 0 2px 5px rgba(21, 35, 48, 0.16);
}

.identity-switch-track i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 2px 7px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.identity-switch.is-public .identity-switch-track {
  background: linear-gradient(180deg, rgba(157, 213, 255, 0.92), rgba(99, 230, 226, 0.76));
}

.identity-switch.is-public .identity-switch-track i {
  transform: translateX(22px);
}

.identity-toggle small {
  color: currentColor;
  opacity: 0.68;
  font-size: 0.76rem;
}

.text-field input:focus,
.message-field textarea:focus,
.paint-row input[type="color"]:focus,
.tab:focus-visible,
.floating-create-button:focus-visible,
.create-close-button:focus-visible,
.identity-switch:focus-visible,
.segment:focus-visible,
.creator-steps button:focus-visible,
.swatch:focus-visible,
.primary-action:focus-visible,
.ghost-action:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.segmented,
.paint-row {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.segmented legend,
.paint-row-header {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.segment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segment {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-weight: 720;
}

.segment.active {
  border-color: rgba(255, 207, 90, 0.74);
  background: rgba(255, 207, 90, 0.2);
}

.paint-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.paint-row input[type="color"] {
  width: 52px;
  padding: 4px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.swatch {
  min-height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--swatch);
}

.swatch.active {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.22) inset;
}

.paint-canvas-field {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.paint-workspace {
  display: grid;
  gap: 12px;
}

.paint-controls-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.draft-fish-preview {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(99, 230, 226, 0.24), rgba(99, 230, 226, 0.05) 58%, transparent 100%),
    #ffffff;
}

.draft-fish-preview > span {
  color: rgba(23, 32, 38, 0.72);
  font-size: 0.78rem;
  font-weight: 860;
  text-transform: uppercase;
}

.draft-fish-preview-stage {
  display: grid;
  place-items: center;
  min-height: 124px;
  overflow: hidden;
}

.draft-fish-preview .fish-portrait {
  width: min(100%, 310px);
}

.draft-fish-preview small {
  color: rgba(23, 32, 38, 0.56);
  font-size: 0.76rem;
  font-weight: 760;
}

.paint-toolbar {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.paint-tool-copy {
  display: grid;
  gap: 2px;
}

.paint-tool-copy strong {
  color: #172026;
  font-size: 0.96rem;
}

.paint-tool-copy span {
  color: rgba(23, 32, 38, 0.64);
  font-size: 0.82rem;
  font-weight: 720;
}

.paint-tool-buttons {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, 42px);
  gap: 8px;
}

.paint-tool {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(23, 32, 38, 0.18);
  border-radius: 6px;
  background: #ffffff;
  color: rgba(23, 32, 38, 0.76);
  font-weight: 840;
}

.paint-tool.active {
  border-color: #172026;
  background: #ffed99;
  color: #172026;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.paint-tool:disabled {
  cursor: default;
  opacity: 0.42;
}

.icon-tool {
  min-width: 42px;
  padding: 0;
}

.clear-tool {
  border-color: rgba(23, 32, 38, 0.78);
  background: #172026;
  color: #ffffff;
}

.clear-tool:active {
  transform: translateY(1px);
}

.tool-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.brush-icon {
  width: 20px;
  height: 30px;
  top: -4px;
  transform: rotate(32deg) scaleX(-1) scale(0.66);
  transform-origin: 50% 74%;
}

.tool-svg {
  display: block;
  width: 24px;
  height: 24px;
}

.undo-svg {
  width: 28px;
  height: 26px;
  overflow: visible;
}

.brush-icon::before,
.brush-icon::after,
.fill-icon::before,
.fill-icon::after,
.eraser-icon::before,
.eraser-icon::after,
.clear-icon::before,
.clear-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.brush-icon::before {
  left: 8px;
  top: 1px;
  width: 5px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d2930 0%, #7d5332 42%, #b7783f 58%, #1d2930 100%);
  box-shadow: 0 0 0 1px rgba(23, 32, 38, 0.88);
}

.brush-icon::after {
  left: 4px;
  top: 18px;
  width: 12px;
  height: 11px;
  border: 2px solid #172026;
  border-top-width: 4px;
  border-radius: 3px 3px 9px 9px;
  background: #2f7df6;
  box-shadow: 0 0 0 2px #ffffff;
}

.fill-icon::before {
  left: 3px;
  top: 4px;
  width: 15px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 4px 4px 7px 7px;
  background: linear-gradient(135deg, #ffffff 0%, #bdeefa 100%);
  box-shadow: inset 0 -4px 0 #19b7d4;
  transform: rotate(-18deg);
}

.fill-icon::after {
  right: 1px;
  bottom: 1px;
  width: 7px;
  height: 9px;
  border-radius: 999px 999px 999px 2px;
  background: #19b7d4;
  transform: rotate(24deg);
}

.eraser-icon::before {
  left: 50%;
  top: 50%;
  width: 17px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffffff 0 45%, #ff9aae 46% 100%);
  transform: translate(-50%, -50%) rotate(-24deg);
}

.eraser-icon::after {
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.24;
  transform: translateX(-50%);
}

.clear-icon::before {
  left: 3px;
  top: 7px;
  width: 16px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: #ffcf5a;
  transform: rotate(-26deg);
}

.clear-icon::after {
  left: 2px;
  bottom: 3px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.color-wheel {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: rgba(23, 32, 38, 0.7);
  font-size: 0.76rem;
  font-weight: 820;
}

.color-wheel-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
}

.color-wheel input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  opacity: 0.01;
  cursor: pointer;
}

.color-wheel-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  box-shadow: 0 0 0 2px rgba(23, 32, 38, 0.16);
}

.color-wheel-picked {
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--picked-color);
  box-shadow: 0 0 0 2px rgba(23, 32, 38, 0.42);
}

.color-wheel input:focus-visible + .color-wheel-button {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.drawing-canvas-wrap {
  position: relative;
}

.drawing-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 3px solid rgba(23, 32, 38, 0.58);
  border-radius: 6px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 2px rgba(23, 32, 38, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.7);
  cursor: none;
  touch-action: none;
}

.paint-area-outline {
  position: absolute;
  inset: 3px;
  z-index: 1;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  pointer-events: none;
}

.paint-area-outline path,
.paint-area-outline ellipse {
  fill: rgba(255, 207, 90, 0.05);
  stroke: rgba(23, 32, 38, 0.7);
  stroke-dasharray: 10 7;
  stroke-linecap: round;
  stroke-width: 4px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9));
  vector-effect: non-scaling-stroke;
}

.brush-cursor {
  --brush-color: #1f2937;
  --brush-outline: #ffffff;
  --brush-cursor-scale: 1;
  --brush-tip-size: 14px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: none;
  width: 24px;
  height: 40px;
  transform-origin: 0 0;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.38));
  pointer-events: none;
  will-change: transform;
}

.brush-cursor-brush {
  position: absolute;
  left: 7px;
  top: -46px;
  z-index: 4;
  display: block;
  width: 24px;
  height: 40px;
  transform: rotate(32deg) scaleX(-1) scale(var(--brush-cursor-scale));
  transform-origin: 0 40px;
}

.brush-cursor::before,
.brush-cursor::after,
.brush-cursor-brush::before,
.brush-cursor-brush::after {
  content: "";
  position: absolute;
  display: block;
}

.brush-cursor-brush::before {
  left: 9px;
  top: 1px;
  width: 7px;
  height: 25px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d2930 0%, #7d5332 42%, #b7783f 58%, #1d2930 100%);
  box-shadow: 0 0 0 1px rgba(23, 32, 38, 0.88);
}

.brush-cursor-brush::after {
  left: 4px;
  top: 22px;
  width: 15px;
  height: 15px;
  border: 2px solid #172026;
  border-top-width: 4px;
  border-radius: 3px 3px 9px 9px;
  background: var(--brush-color);
  box-shadow: 0 0 0 2px var(--brush-outline);
}

.brush-tip-preview {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  width: var(--brush-tip-size);
  height: var(--brush-tip-size);
  border: 2px solid var(--brush-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 2px var(--brush-outline),
    0 2px 5px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
}

.brush-cursor[data-tool="fill"] .brush-tip-preview,
.brush-cursor[data-tool="eraser"] .brush-tip-preview,
.brush-cursor[data-tool="fill"] .brush-cursor-brush,
.brush-cursor[data-tool="eraser"] .brush-cursor-brush {
  display: none;
}

.brush-cursor[data-tool="fill"] {
  width: 34px;
  height: 32px;
  transform-origin: 7px 25px;
}

.brush-cursor[data-tool="fill"]::before {
  left: 5px;
  top: 6px;
  width: 22px;
  height: 15px;
  border: 2px solid #172026;
  border-radius: 5px 5px 9px 9px;
  background: linear-gradient(135deg, #d9eef5 0%, #ffffff 42%, #9ec7d5 100%);
  box-shadow: inset 0 -5px 0 var(--brush-color), 0 0 0 2px var(--brush-outline);
}

.brush-cursor[data-tool="fill"]::after {
  left: 24px;
  top: 20px;
  width: 8px;
  height: 10px;
  border: 1px solid #172026;
  border-radius: 999px 999px 999px 2px;
  background: var(--brush-color);
  box-shadow: none;
  transform: rotate(28deg);
}

.brush-cursor[data-tool="eraser"] {
  width: 34px;
  height: 30px;
  transform-origin: 7px 24px;
}

.brush-cursor[data-tool="eraser"]::before {
  left: 5px;
  top: 9px;
  width: 24px;
  height: 13px;
  border: 2px solid #172026;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffffff 0 46%, #ff9aae 47% 100%);
  box-shadow: 0 0 0 2px var(--brush-outline);
  transform: rotate(-24deg);
}

.brush-cursor[data-tool="eraser"]::after {
  left: 5px;
  top: 23px;
  width: 22px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 32, 38, 0.32);
  box-shadow: none;
}

.brush-controls {
  display: grid;
  gap: 10px;
}

.brush-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.brush-size {
  display: grid;
  gap: 6px;
  color: rgba(23, 32, 38, 0.7);
  font-size: 0.82rem;
  font-weight: 800;
}

.brush-size input {
  width: 100%;
  accent-color: #ff7a59;
}

.create-panel {
  background: #d7d7d7;
  color: #172026;
}

.create-mode .create-panel {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  width: min(560px, calc(100vw - 22px));
  max-height: min(88vh, 680px);
  padding: 10px;
  border: 1px solid #181818;
  border-radius: 7px;
  background: #d6d6d6;
  box-shadow:
    0 0 0 1px #ffffff inset,
    0 0 0 2px rgba(0, 0, 0, 0.22),
    0 24px 60px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
  backdrop-filter: none;
  scrollbar-color: #8b8b8b #d6d6d6;
}

.creator-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}

.creator-steps button {
  min-height: 34px;
  padding: 8px 6px;
  border: 2px solid rgba(23, 32, 38, 0.14);
  border-radius: 6px;
  background: #ffffff;
  color: rgba(23, 32, 38, 0.74);
  font-size: 0.72rem;
  font-weight: 860;
  text-align: center;
}

.create-mode .create-heading {
  position: sticky;
  top: -10px;
  z-index: 2;
  justify-content: center;
  margin: -10px -10px 12px;
  padding: 8px 12px 9px;
  border-bottom: 1px solid #5d5d5d;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.55) 0,
      rgba(255, 255, 255, 0.55) 1px,
      rgba(150, 150, 150, 0.42) 1px,
      rgba(150, 150, 150, 0.42) 3px
    ),
    linear-gradient(180deg, #eeeeee, #c3c3c3);
  color: #111111;
  text-align: center;
  box-shadow:
    0 1px 0 #ffffff inset,
    0 -1px 0 rgba(0, 0, 0, 0.24) inset;
}

.create-mode .create-heading > div {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
}

.create-mode .create-heading h1 {
  width: max-content;
  max-width: 100%;
  padding: 1px 9px 2px;
  border-radius: 3px;
  background: #d6d6d6;
  color: #111111;
  font-size: 1rem;
  line-height: 1.1;
}

.create-mode .create-heading p {
  margin: 0;
  max-width: min(33rem, 100%);
  color: rgba(17, 17, 17, 0.66);
  font-size: 0.76rem;
  font-weight: 760;
}

.create-mode .creator-steps button,
.create-mode .instruction-card span,
.create-mode .paint-step-header,
.create-mode .draft-fish-preview,
.create-mode .release-summary span,
.create-mode .release-coordinate-card {
  border: 1px solid #747474;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #6c6c6c;
  border-bottom-color: #5a5a5a;
  border-radius: 3px;
  background: #eeeeee;
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.7) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.1) inset;
}

.create-mode .creator-steps button {
  background: linear-gradient(180deg, #f7f7f7, #d4d4d4);
  color: #191919;
}

.create-mode .creator-steps button.active {
  border-color: #151515;
  background: #2b2b2b;
  color: #ffffff;
  box-shadow:
    0 0 0 1px #ffffff inset,
    0 0 0 2px rgba(0, 0, 0, 0.14);
}

.create-mode .creator-steps button.done {
  border-color: #7f7f7f;
  background: #e2e2e2;
  color: #3a3a3a;
}

.create-mode .creator-tabs button span {
  border: 1px solid #777777;
  background: #d0d0d0;
  color: #111111;
}

.create-mode .creator-tabs button.active span {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111;
}

.creator-tabs button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  text-align: left;
}

.creator-tabs button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(23, 32, 38, 0.1);
  font-size: 0.72rem;
}

.creator-tabs button strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-steps button.active {
  border-color: #ffb703;
  background: #ffed99;
  color: #172026;
}

.creator-steps button.done {
  border-color: rgba(6, 214, 160, 0.46);
  background: rgba(6, 214, 160, 0.16);
}

.creator-step-page {
  display: grid;
  gap: 14px;
}

.instruction-card {
  display: grid;
  gap: 8px;
}

.instruction-card span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 6px;
  background: #ffffff;
  color: rgba(23, 32, 38, 0.66);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.3;
}

.instruction-card strong {
  color: #172026;
  font-size: 0.9rem;
}

.paint-step-header {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 6px;
  background: #ffffff;
}

.paint-step-header strong {
  font-size: 1rem;
}

.paint-step-header span {
  color: rgba(23, 32, 38, 0.66);
  font-size: 0.82rem;
  font-weight: 760;
}

.details-step .message-field {
  margin-top: 0;
}

.release-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.release-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 6px;
  background: #ffffff;
  color: rgba(23, 32, 38, 0.62);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.release-summary strong {
  overflow: hidden;
  color: #172026;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.release-coordinate-card {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: 6px;
  background: #ffffff;
}

.release-coordinate-card span,
.release-coordinate-card small {
  color: rgba(23, 32, 38, 0.62);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.release-coordinate-card strong {
  color: #172026;
  font-size: 1rem;
}

.release-coordinate-card small {
  text-transform: none;
}

.release-map-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.release-map-pin {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 46px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.release-map-pin::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  width: 24px;
  height: 24px;
  border: 3px solid #ffffff;
  border-radius: 999px 999px 999px 0;
  background: #ff4d5f;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 2px rgba(23, 32, 38, 0.28);
}

.release-map-pin > .release-pin-head {
  position: absolute;
  left: 14px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
}

.release-map-pin::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 10px;
  height: 5px;
  border-radius: 999px;
  background: rgba(23, 32, 38, 0.32);
}

.create-panel .text-field,
.create-panel .segmented legend,
.create-panel .paint-row-header {
  color: rgba(23, 32, 38, 0.72);
}

.create-panel .text-field input,
.create-panel .message-field textarea,
.create-panel .paint-row input[type="color"] {
  border-color: rgba(23, 32, 38, 0.2);
  background: #ffffff;
  color: #172026;
}

.create-panel .segment {
  border-color: rgba(23, 32, 38, 0.18);
  background: #f3f7f0;
  color: #172026;
}

.create-panel .segment.active {
  border-color: #ffb703;
  background: #ffed99;
}

.create-panel .swatch {
  border-color: rgba(23, 32, 38, 0.18);
}

.create-panel .swatch.active {
  border-color: #172026;
}

.create-mode .creator-steps button.active {
  border-color: #151515;
  background: #2b2b2b;
  color: #ffffff;
  box-shadow:
    0 0 0 1px #ffffff inset,
    0 0 0 2px rgba(0, 0, 0, 0.14);
}

.create-mode .creator-steps button.done {
  border-color: #7f7f7f;
  background: #e2e2e2;
  color: #3a3a3a;
}

.create-mode .text-field input,
.create-mode .message-field textarea,
.create-mode .paint-row input[type="color"],
.create-mode .drawing-canvas {
  border: 1px solid #5f5f5f;
  border-top-color: #373737;
  border-left-color: #373737;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
  border-radius: 3px;
  background: #ffffff;
  color: #111111;
  box-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.1) inset,
    -1px -1px 0 rgba(255, 255, 255, 0.8) inset;
}

.create-mode .segment,
.create-mode .paint-tool,
.create-mode .map-zoom-button,
.create-mode .ghost-action {
  border: 1px solid #717171;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #555555;
  border-bottom-color: #4d4d4d;
  border-radius: 4px;
  background: linear-gradient(180deg, #f7f7f7, #d0d0d0);
  color: #111111;
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.72) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.14) inset;
}

.create-mode .segment.active,
.create-mode .paint-tool.active {
  border-color: #151515;
  background: #2b2b2b;
  color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff inset;
}

.create-mode .clear-tool {
  border-color: #111111;
  background: linear-gradient(180deg, #4a4a4a, #171717);
  color: #ffffff;
}

.create-mode .primary-action {
  width: 100%;
  border: 2px solid #111111;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffffff, #d2d2d2);
  color: #111111;
  box-shadow:
    0 0 0 1px #ffffff inset,
    0 0 0 2px rgba(255, 255, 255, 0.42);
}

.create-mode .primary-action:active,
.create-mode .ghost-action:active,
.create-mode .paint-tool:active,
.create-mode .map-zoom-button:active {
  transform: translateY(1px);
}

.create-mode .color-wheel-button {
  border-color: #eeeeee;
  box-shadow:
    0 0 0 1px #666666,
    1px 1px 0 #ffffff inset,
    -1px -1px 0 rgba(0, 0, 0, 0.16) inset;
}

.create-mode .color-wheel-picked {
  border-color: #ffffff;
  box-shadow:
    0 0 0 1px #555555,
    0 0 0 3px rgba(0, 0, 0, 0.1);
}

.panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.split-actions {
  align-items: center;
}

.back-action {
  min-width: 82px;
  color: #172026;
  border-color: rgba(23, 32, 38, 0.18);
  background: #ffffff;
}

.primary-action,
.ghost-action {
  min-height: 42px;
  border-radius: 6px;
  font-weight: 820;
}

.primary-action {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #172026;
}

.primary-action.liked,
.primary-action:disabled {
  cursor: default;
  opacity: 0.72;
}

.create-mode .create-panel {
  width: min(620px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(246, 248, 251, 0.9);
  color: #111827;
  box-shadow:
    0 28px 78px rgba(15, 23, 42, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
  backdrop-filter: blur(28px) saturate(1.24);
  scrollbar-color: rgba(99, 105, 115, 0.44) transparent;
}

.create-mode .create-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin: 0;
  padding: 20px 18px 16px 22px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 248, 251, 0.72));
  color: #111827;
  text-align: left;
  box-shadow: none;
}

.create-mode .create-heading > div {
  justify-items: start;
  gap: 5px;
}

.create-mode .create-heading h1 {
  width: auto;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: clamp(1.12rem, 3.2vw, 1.42rem);
  font-weight: 820;
  letter-spacing: -0.01em;
}

.create-mode .create-heading p {
  max-width: 32rem;
  color: rgba(17, 24, 39, 0.62);
  font-size: 0.86rem;
  font-weight: 640;
}

.create-close-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 24, 39, 0.72);
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  cursor: pointer;
  font-size: 0;
  font-weight: 780;
  line-height: 1;
  overflow: hidden;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.create-close-button::before,
.create-close-button::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.create-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.create-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.create-close-button:hover {
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  transform: translateY(-1px);
}

.create-panel > .creator-steps {
  margin: 16px 18px 14px;
}

.create-panel > .creator-step-page {
  padding: 0 18px 18px;
}

.create-mode .creator-steps {
  gap: 8px;
}

.create-mode .creator-steps button,
.create-mode .instruction-card span,
.create-mode .paint-step-header,
.create-mode .draft-fish-preview,
.create-mode .release-summary span,
.create-mode .release-coordinate-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.create-mode .creator-steps button {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(17, 24, 39, 0.7);
}

.create-mode .creator-steps button.active {
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.12);
  color: #0b5fc7;
  box-shadow:
    0 12px 26px rgba(10, 132, 255, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.create-mode .creator-steps button.done {
  border-color: rgba(52, 199, 89, 0.22);
  background: rgba(52, 199, 89, 0.1);
  color: #256d3b;
}

.create-mode .creator-tabs button span,
.create-mode .creator-tabs button.active span {
  border: 0;
  background: rgba(17, 24, 39, 0.08);
  color: currentColor;
}

.create-mode .text-field input,
.create-mode .message-field textarea,
.create-mode .paint-row input[type="color"],
.create-mode .drawing-canvas {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #111827;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(15, 23, 42, 0.04);
}

.create-mode .segment,
.create-mode .paint-tool,
.create-mode .map-zoom-button,
.create-mode .ghost-action {
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  color: #111827;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.create-mode .segment.active,
.create-mode .paint-tool.active {
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.13);
  color: #0b5fc7;
  box-shadow:
    0 10px 22px rgba(10, 132, 255, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.create-mode .clear-tool {
  border-color: rgba(17, 24, 39, 0.1);
  background: rgba(17, 24, 39, 0.84);
  color: #ffffff;
}

.create-mode .primary-action {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #2f9bff, #0a84ff);
  color: #ffffff;
  box-shadow:
    0 12px 26px rgba(10, 132, 255, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.create-mode .primary-action:disabled {
  background: rgba(17, 24, 39, 0.12);
  color: rgba(17, 24, 39, 0.46);
  box-shadow: none;
}

.create-mode .primary-action:active,
.create-mode .ghost-action:active,
.create-mode .paint-tool:active,
.create-mode .map-zoom-button:active,
.create-close-button:active {
  transform: translateY(1px);
}

.create-mode .color-wheel-button {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(17, 24, 39, 0.12),
    0 10px 20px rgba(15, 23, 42, 0.08);
}

.create-mode .color-wheel-picked {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(17, 24, 39, 0.18),
    0 8px 16px rgba(15, 23, 42, 0.08);
}

.map-guide,
.scene-badge {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 28, 38, 0.72);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.map-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
}

.map-preparing .map-guide,
.map-preparing .map-zoom-readout,
.map-preparing .map-attribution,
.map-preparing .map-selection-notice {
  opacity: 0;
  pointer-events: none;
}

.map-selection-notice {
  position: fixed;
  left: 50%;
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 86px);
  z-index: 4;
  display: grid;
  gap: 3px;
  width: min(370px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 207, 90, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(2, 28, 38, 0.84);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  color: var(--ink);
  pointer-events: none;
  transform: translateX(-50%);
  animation: map-selection-notice-in 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.map-selection-notice strong {
  color: rgba(255, 207, 90, 0.96);
  font-size: 0.78rem;
  font-weight: 900;
}

.map-selection-notice span {
  color: rgba(248, 252, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 740;
  line-height: 1.24;
}

@keyframes map-selection-notice-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.map-guide span,
.scene-badge span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.map-guide span {
  gap: 4px;
}

.map-guide strong,
.map-guide small,
.scene-badge strong,
.scene-badge small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-guide .map-guide-count {
  font-size: clamp(0.78rem, 3.15vw, 0.94rem);
  font-stretch: condensed;
  font-variant-numeric: tabular-nums;
  font-weight: 860;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.map-guide small,
.scene-badge small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 740;
}

.map-guide-action {
  grid-column: 1 / 2;
  color: rgba(255, 207, 90, 0.92);
}

.inspect-hint {
  color: rgba(255, 207, 90, 0.94);
}

.map-zoom-controls {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-grid;
  grid-template-columns: repeat(2, 42px);
  gap: 6px;
  align-self: center;
}

.map-zoom-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #172026;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
}

.map-zoom-readout {
  position: fixed;
  left: 50%;
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 126px);
  z-index: 4;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 28, 38, 0.76);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.map-zoom-readout span {
  font-size: 0.9rem;
  font-weight: 920;
  letter-spacing: 0;
}

.map-zoom-readout small {
  color: rgba(255, 207, 90, 0.94);
  font-size: 0.72rem;
  font-weight: 840;
}

.map-attribution {
  position: fixed;
  right: 12px;
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 82px);
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  color: #172026;
  font-size: 0.72rem;
  font-weight: 900;
  pointer-events: auto;
}

.map-attribution summary {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
}

.map-attribution summary::-webkit-details-marker {
  display: none;
}

.map-attribution-popover {
  position: absolute;
  right: 0;
  bottom: 34px;
  width: max-content;
  max-width: min(72vw, 320px);
  padding: 7px 9px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.35;
  text-align: right;
}

.map-attribution a {
  color: #075985;
  text-decoration: underline;
}

.scene-badge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.scene-badge .ghost-action {
  min-height: 36px;
  padding: 0 10px;
}

.ghost-action {
  padding: 0 13px;
  border: 1px solid rgba(99, 230, 226, 0.38);
  background: rgba(99, 230, 226, 0.14);
  color: var(--ink);
}

.profile-mode {
  overflow: auto;
  background:
    radial-gradient(circle at 20% 12%, rgba(99, 230, 226, 0.24), transparent 30%),
    linear-gradient(180deg, #dcecf6 0%, #f5f7fb 45%, #e8eef5 100%);
  color: #111827;
}

.profile-page {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: auto;
  padding: calc(max(82px, env(safe-area-inset-top) + 72px)) 12px max(18px, env(safe-area-inset-bottom));
  color: #111827;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
  contain: layout paint style;
  scrollbar-color: rgba(47, 125, 246, 0.24) rgba(232, 238, 245, 0.22);
  scrollbar-gutter: stable;
  will-change: opacity, transform;
}

.profile-page::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.profile-page::-webkit-scrollbar-track {
  margin-block: 84px 18px;
  border-radius: 999px;
  background: rgba(232, 238, 245, 0.22);
}

.profile-page::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(47, 125, 246, 0.24);
  background-clip: content-box;
}

.profile-page::-webkit-scrollbar-thumb:hover {
  background: rgba(47, 125, 246, 0.34);
  background-clip: content-box;
}

.profile-page.is-preparing {
  opacity: 0.001;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition: none;
}

.profile-page.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.profile-shell {
  display: grid;
  gap: 14px;
  width: min(960px, 100%);
  margin: 0 auto;
}

.profile-card,
.profile-tanks {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 24px 64px rgba(15, 23, 42, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
  overflow: hidden;
}

.profile-cover {
  position: relative;
  min-height: clamp(142px, 26vw, 230px);
  background:
    radial-gradient(circle at 16% 36%, rgba(255, 255, 255, 0.82) 0 7%, transparent 8%),
    radial-gradient(circle at 72% 28%, rgba(255, 207, 90, 0.58) 0 12%, transparent 13%),
    radial-gradient(circle at 84% 70%, rgba(99, 230, 226, 0.54) 0 14%, transparent 15%),
    linear-gradient(135deg, rgba(47, 125, 246, 0.88), rgba(50, 209, 229, 0.78) 42%, rgba(255, 207, 90, 0.66)),
    linear-gradient(180deg, #77d4f1, #226ca2);
  overflow: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.profile-cover::before,
.profile-cover::after {
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  content: "";
  pointer-events: none;
}

.profile-cover::before {
  background:
    linear-gradient(100deg, transparent 0 8%, rgba(255, 255, 255, 0.34) 9% 11%, transparent 12% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 28px);
  opacity: 0.46;
  transform: skewY(-4deg);
}

.profile-cover::after {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.86));
}

.profile-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(7, 28, 42, 0.32);
  color: #ffffff;
  cursor: pointer;
  font-size: 0;
  backdrop-filter: blur(14px);
}

.profile-close-button::before,
.profile-close-button::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.profile-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.profile-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.profile-identity {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin-top: -42px;
  padding: 0 16px 12px;
}

.profile-avatar {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #fff7cd 0 13%, transparent 14%),
    radial-gradient(circle at 50% 75%, #ffb86a 0 28%, transparent 29%),
    linear-gradient(145deg, #63e6e2, #315fa8);
  box-shadow:
    0 18px 32px rgba(15, 23, 42, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backface-visibility: hidden;
  overflow: hidden;
  transform: translateZ(0);
}

.profile-avatar span {
  display: block;
  width: 48%;
  height: 30%;
  border-radius: 999px 999px 55% 55%;
  background: rgba(255, 255, 255, 0.42);
  transform: translateY(18px);
}

.profile-copy {
  min-width: 0;
  padding-bottom: 2px;
}

.profile-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: rgba(17, 24, 39, 0.52);
  font-size: 0.72rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-copy h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.35rem, 6vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.profile-copy p {
  max-width: 34rem;
  margin: 8px 0 0;
  color: rgba(17, 24, 39, 0.62);
  font-size: 0.9rem;
  line-height: 1.35;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 8px 16px 16px;
}

.profile-stats div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  background: rgba(246, 248, 251, 0.88);
}

.profile-stats dt {
  color: rgba(17, 24, 39, 0.5);
  font-size: 0.72rem;
  font-weight: 760;
}

.profile-stats dd {
  margin: 0;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 900;
}

.profile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}

.profile-tanks {
  padding: 16px;
}

.profile-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-section-heading span {
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
}

.profile-section-heading small {
  max-width: 15rem;
  color: rgba(17, 24, 39, 0.52);
  font-size: 0.74rem;
  line-height: 1.25;
  text-align: right;
}

.profile-tank-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.profile-tank-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(246, 248, 251, 0.86);
  color: #111827;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.mini-personal-tank {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.mini-personal-tank:hover,
.mini-personal-tank:focus-visible {
  border-color: rgba(47, 125, 246, 0.3);
  box-shadow: 0 18px 40px rgba(47, 125, 246, 0.15);
  transform: translateY(-2px);
}

.released-mini-tank {
  border-color: rgba(255, 207, 90, 0.2);
}

.saved-mini-tank {
  border-color: rgba(99, 230, 226, 0.22);
}

.mini-tank-window {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 13px;
  background:
    var(--mini-tank-backdrop),
    linear-gradient(180deg, #16d6ff 0%, #0398de 50%, #005f9d 100%);
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.2),
    inset 0 -24px 34px rgba(2, 24, 38, 0.34),
    inset 0 0 36px rgba(0, 10, 22, 0.18);
}

.mini-tank-window::before,
.mini-tank-window::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.mini-tank-window::before {
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 7.5%,
      rgba(255, 255, 255, 0.2) 8.6%,
      rgba(99, 233, 255, 0.16) 10.2%,
      transparent 12.4%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 24%, rgba(0, 20, 32, 0.18) 100%);
  opacity: 0.82;
}

.mini-tank-window::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(0, 13, 29, 0.24) 0, transparent 42%),
    radial-gradient(ellipse at 100% 0%, rgba(0, 13, 29, 0.2) 0, transparent 38%),
    radial-gradient(ellipse at 0% 100%, rgba(0, 10, 20, 0.26) 0, transparent 42%),
    radial-gradient(ellipse at 100% 100%, rgba(0, 10, 20, 0.24) 0, transparent 40%);
}

.profile-mini-fish {
  position: absolute;
  z-index: 1;
  display: block;
  aspect-ratio: 2.1 / 1;
  min-width: 28px;
  filter: drop-shadow(0 5px 7px rgba(0, 19, 30, 0.24));
  backface-visibility: hidden;
}

.profile-mini-fish-shape {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2.1 / 1;
}

.profile-mini-fish-tail,
.profile-mini-fish-body {
  position: absolute;
  display: block;
}

.profile-mini-fish-tail {
  left: 0;
  top: 25%;
  width: 30%;
  height: 50%;
  background: var(--mini-tail-color);
  clip-path: polygon(100% 50%, 0 0, 18% 50%, 0 100%);
}

.profile-mini-fish-body {
  right: 0;
  top: 12%;
  width: 80%;
  height: 76%;
  overflow: hidden;
  border-radius: 56% 44% 48% 52% / 54% 48% 52% 46%;
  background: var(--mini-body-color);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 6px 14px rgba(0, 18, 30, 0.08);
}

.profile-mini-fish-stripe {
  position: absolute;
  top: 13%;
  bottom: 13%;
  left: 31%;
  width: 34%;
  border-radius: 3px;
  background:
    linear-gradient(
      90deg,
      var(--mini-accent-color) 0 18%,
      transparent 19% 39%,
      var(--mini-accent-color) 40% 58%,
      transparent 59% 79%,
      var(--mini-accent-color) 80% 100%
    );
  opacity: 0.84;
}

.profile-mini-fish-eye {
  position: absolute;
  right: 13%;
  top: 27%;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #172026;
}

.profile-mini-fish-eye::before {
  position: absolute;
  left: 52%;
  top: 24%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  content: "";
}

.mini-tank-empty {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 850;
  text-shadow: 0 2px 12px rgba(0, 22, 34, 0.38);
}

.profile-tank-meta {
  display: grid;
  gap: 3px;
}

.profile-tank-meta strong,
.future-tank strong {
  color: #111827;
  font-weight: 900;
}

.profile-tank-meta small,
.future-tank small {
  color: rgba(17, 24, 39, 0.56);
  font-size: 0.78rem;
}

.profile-tank-expand {
  justify-self: start;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #172026;
  font-size: 0.78rem;
  font-weight: 900;
}

.future-tank {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 156px;
  padding: 16px;
  opacity: 0.72;
  text-align: center;
}

.fish-inspect-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  isolation: isolate;
  pointer-events: none;
}

.fish-inspect-overlay.is-warm {
  visibility: hidden;
}

.fish-inspect-overlay.is-warm .fish-inspect-vignette,
.fish-inspect-overlay.is-warm .fish-inspect-stage,
.fish-inspect-overlay.is-warm .fish-inspect-fish,
.fish-inspect-overlay.is-warm .fish-inspect-rays,
.fish-inspect-overlay.is-warm .fish-inspect-ray {
  animation: none;
}

.fish-inspect-overlay.is-warm .fish-inspect-vignette,
.fish-inspect-overlay.is-warm .fish-inspect-stage {
  opacity: 0;
}

.fish-inspect-vignette {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 52%, rgba(3, 12, 18, 0.32) 0 17%, rgba(2, 10, 16, 0.72) 50%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(180deg, rgba(0, 10, 18, 0.58), rgba(0, 0, 0, 0.78));
  opacity: 0;
  pointer-events: none;
  animation: fish-inspect-vignette-in 320ms ease-out forwards;
}

.fish-inspect-overlay.is-closing .fish-inspect-vignette {
  opacity: 1;
  animation: fish-inspect-vignette-out 320ms ease-in 440ms forwards;
}

.fish-inspect-stage {
  --fish-inspect-ray-size: min(102vw, 640px);
  position: absolute;
  left: 50%;
  top: 52%;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(58vw, 410px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) scale(0.06);
  transform-origin: center center;
  animation: fish-inspect-stage-pop 680ms cubic-bezier(0.16, 0.86, 0.18, 1) 80ms both;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.fish-inspect-overlay.is-closing .fish-inspect-stage {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
  animation: fish-inspect-stage-pop-out 680ms cubic-bezier(0.82, 0, 0.84, 0.14) forwards;
}

.fish-inspect-fish {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  transform: translate3d(0, 0, 0);
  animation: fish-inspect-float 2800ms ease-in-out 780ms infinite both;
  will-change: transform;
}

.fish-inspect-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: var(--fish-inspect-ray-size);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: visible;
  pointer-events: none;
  animation: fish-inspect-rays-spin 18000ms linear 80ms infinite both;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.fish-inspect-rays::before {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 241, 155, 0.7) 0 22%, rgba(255, 221, 103, 0.28) 46%, transparent 72%);
  content: "";
  pointer-events: none;
}

.fish-inspect-ray {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: var(--ray-thickness);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 246, 178, 0.72) 0%, rgba(255, 216, 102, 0.46) 54%, rgba(255, 216, 102, 0) 100%);
  clip-path: polygon(0 50%, 8% 12%, 100% 0, 100% 100%, 8% 88%);
  opacity: 0.68;
  transform: translateY(-50%) rotate(var(--ray-angle)) scaleX(var(--ray-start));
  transform-origin: left center;
  animation: fish-inspect-ray-pulse var(--ray-duration) ease-in-out var(--ray-delay) infinite both;
  will-change: opacity, transform;
}

.fish-inspect-fish .fish-portrait {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  max-height: min(38vh, 270px);
  object-fit: contain;
  filter:
    drop-shadow(0 22px 28px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 22px rgba(118, 235, 255, 0.22));
}

.fish-inspect-overlay.is-active.is-release-reveal:not(.is-closing) .fish-inspect-vignette {
  animation: fish-inspect-vignette-in 240ms ease-out forwards;
}

.fish-inspect-overlay.is-active.is-release-reveal:not(.is-closing) .fish-inspect-stage {
  animation: fish-inspect-release-stage-in 500ms cubic-bezier(0.16, 0.86, 0.18, 1) both;
  will-change: opacity, transform;
}

.fish-inspect-overlay.is-active.is-release-reveal:not(.is-closing) .fish-inspect-rays {
  animation-delay: 0ms;
}

.fish-inspect-overlay.is-active.is-release-reveal:not(.is-closing) .fish-inspect-fish .fish-portrait {
  animation: fish-inspect-release-fish-pop 420ms cubic-bezier(0.16, 0.86, 0.18, 1) both;
  transform-origin: center center;
  will-change: opacity, transform;
}

.fish-inspect-placeholder {
  display: block;
  width: min(100%, 390px);
  aspect-ratio: 2.2 / 1;
}

.fish-inspect-name {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 380px);
  margin-top: -4px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(9, 31, 43, 0.34);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: rgba(255, 252, 224, 0.96);
  font-size: clamp(1rem, 4vw, 1.32rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.fish-inspect-overlay > .fish-popup {
  position: absolute;
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  z-index: 2;
  width: min(560px, calc(100vw - 28px));
  max-height: min(86dvh, 660px);
  pointer-events: auto;
  transform: translate3d(-50%, -50%, 0) scale(0.98);
  animation: fish-inspect-passport-in 260ms cubic-bezier(0.16, 0.86, 0.18, 1) both;
  will-change: opacity, transform;
}

.fish-inspect-overlay > .fish-note-popup {
  width: min(640px, calc(100vw - 28px));
  padding: 14px;
}

.fish-inspect-overlay.is-closing > .fish-popup {
  pointer-events: none;
  animation: fish-inspect-passport-out 260ms ease-in forwards;
}

.fish-inspect-open,
.fish-inspect-close {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.fish-inspect-overlay.is-closing .fish-inspect-open,
.fish-inspect-overlay.is-closing .fish-inspect-close {
  pointer-events: none;
}

.fish-inspect-open {
  min-width: 118px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 236, 151, 0.98), rgba(255, 187, 73, 0.98));
  box-shadow:
    0 14px 30px rgba(9, 31, 43, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  color: #31200c;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.fish-inspect-open:hover,
.fish-inspect-open:focus-visible {
  box-shadow:
    0 18px 34px rgba(9, 31, 43, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-2px) scale(1.04);
}

.fish-inspect-close {
  position: absolute;
  top: -18px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(9, 31, 43, 0.42);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.fish-inspect-close::before,
.fish-inspect-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.fish-inspect-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.fish-inspect-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@keyframes fish-inspect-vignette-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fish-inspect-vignette-out {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fish-inspect-stage-pop {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.06);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

@keyframes fish-inspect-stage-pop-out {
  0% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  82% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.06);
  }
}

@keyframes fish-inspect-release-stage-in {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.72);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

@keyframes fish-inspect-release-fish-pop {
  0% {
    opacity: 0.9;
    transform: translate3d(0, 0, 0) scale(0.96);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes fish-inspect-passport-in {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.94);
  }

  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

@keyframes fish-inspect-passport-out {
  0% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.94);
  }
}

@keyframes fish-inspect-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, 8px, 0) rotate(0.8deg);
  }
}

@keyframes fish-inspect-rays-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes fish-inspect-ray-pulse {
  0%,
  100% {
    opacity: 0.54;
    transform: translateY(-50%) rotate(var(--ray-angle)) scaleX(var(--ray-start));
  }

  50% {
    opacity: 0.86;
    transform: translateY(-50%) rotate(var(--ray-angle)) scaleX(var(--ray-end));
  }
}

.fish-popup {
  --popup-bg: rgba(7, 39, 48, 0.92);
  --popup-ink: #f8fcff;
  --popup-muted: rgba(248, 252, 255, 0.68);
  --popup-line: rgba(255, 255, 255, 0.18);
  --popup-photo-bg: rgba(255, 255, 255, 0.08);
  --popup-photo-line: rgba(99, 230, 226, 0.24);
  --popup-message-bg: rgba(255, 255, 255, 0.1);
  --popup-message-line: rgba(255, 207, 90, 0.64);
  --popup-close-bg: rgba(255, 255, 255, 0.12);
  --popup-close-border: rgba(255, 255, 255, 0.18);
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 5;
  display: grid;
  gap: 12px;
  max-height: min(86dvh, 640px);
  padding: 12px;
  border: 1px solid var(--popup-line);
  border-radius: 8px;
  background: var(--popup-bg);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
  color: var(--popup-ink);
  overflow: auto;
}

.fish-popup-light {
  --popup-bg: rgba(255, 252, 239, 0.94);
  --popup-ink: #172026;
  --popup-muted: rgba(23, 32, 38, 0.62);
  --popup-line: rgba(23, 32, 38, 0.14);
  --popup-photo-bg: rgba(255, 255, 255, 0.74);
  --popup-photo-line: rgba(23, 32, 38, 0.12);
  --popup-message-bg: rgba(255, 255, 255, 0.68);
  --popup-message-line: rgba(255, 122, 89, 0.58);
  --popup-close-bg: rgba(23, 32, 38, 0.07);
  --popup-close-border: rgba(23, 32, 38, 0.12);
  box-shadow:
    0 24px 72px rgba(0, 21, 36, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  backdrop-filter: blur(20px) saturate(1.12);
}

.fish-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--popup-close-border);
  border-radius: 50%;
  background: var(--popup-close-bg);
  color: var(--popup-ink);
  cursor: pointer;
}

.fish-popup-close::before,
.fish-popup-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.fish-popup-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.fish-popup-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.fish-popup-close:hover {
  filter: brightness(1.12);
}

.fish-note-sheet {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: clamp(230px, 42dvh, 430px);
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--popup-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 34%),
    var(--popup-message-bg);
  color: var(--popup-ink);
  overflow: auto;
  text-align: center;
}

.fish-note-sheet p {
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.fish-note-short .fish-note-sheet p {
  font-size: clamp(1.52rem, 7vw, 2.7rem);
  font-weight: 850;
}

.fish-note-medium .fish-note-sheet p {
  font-size: clamp(1.16rem, 4.8vw, 1.72rem);
  font-weight: 760;
}

.fish-note-long .fish-note-sheet {
  align-content: start;
  text-align: left;
}

.fish-note-long .fish-note-sheet p,
.fish-note-empty .fish-note-sheet p {
  font-size: clamp(1rem, 3.8vw, 1.22rem);
}

.fish-note-next {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--popup-line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 236, 151, 0.96), rgba(255, 187, 73, 0.96));
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  color: #31200c;
  cursor: pointer;
  font-weight: 880;
}

.fish-note-next i {
  position: relative;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(49, 32, 12, 0.12);
}

.fish-note-next i::before {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.fish-passport-top {
  display: grid;
  grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding-right: 30px;
}

.fish-passport-photo-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.fish-photo-card {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--popup-photo-line);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 38%),
    var(--popup-photo-bg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 12px 26px rgba(0, 0, 0, 0.12);
}

.fish-photo-card::after {
  position: absolute;
  inset: 7px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  opacity: 0.24;
  pointer-events: none;
}

.fish-photo-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 10 / 7;
  min-height: 88px;
  overflow: hidden;
}

.fish-portrait {
  display: block;
  width: min(100%, 330px);
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.28));
}

.fish-photo-card .fish-portrait {
  position: relative;
  z-index: 1;
  width: 116%;
  max-width: none;
  filter:
    drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2))
    drop-shadow(0 0 12px rgba(99, 230, 226, 0.14));
}

.fish-passport-info {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.fish-popup-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fish-passport-label,
.fish-passport-message-label {
  color: var(--popup-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fish-popup-heading h2 {
  margin: 0;
  overflow: hidden;
  color: var(--popup-ink);
  font-size: 1.38rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fish-passport-message {
  margin: 0;
  min-height: 82px;
  padding: 10px 12px;
  border: 1px solid var(--popup-line);
  border-left: 4px solid var(--popup-message-line);
  border-radius: 6px;
  background: var(--popup-message-bg);
  color: var(--popup-ink);
}

.fish-passport-message p {
  margin: 5px 0 0;
  line-height: 1.4;
}

.fish-passport-message-empty {
  color: var(--popup-muted);
  font-style: italic;
}

.fish-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.fish-facts div {
  min-width: 0;
}

.fish-facts dt {
  color: var(--popup-muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.fish-facts dd {
  margin: 2px 0 0;
  color: var(--popup-ink);
  overflow-wrap: anywhere;
  font-weight: 780;
}

.fish-fact-release dd {
  font-size: 0.72rem;
  line-height: 1.18;
}

.fish-passport-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.fish-passport-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--popup-line);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    var(--popup-close-bg);
  color: var(--popup-ink);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    filter 160ms ease,
    background 160ms ease;
}

.fish-passport-action:hover,
.fish-passport-action:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.fish-passport-action:active {
  filter: brightness(1.24);
  transform: translateY(0) scale(0.94);
}

.fish-passport-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.fish-passport-action.is-active {
  background:
    linear-gradient(180deg, rgba(255, 238, 166, 0.98), rgba(255, 188, 78, 0.96));
  border-color: rgba(255, 207, 90, 0.72);
  box-shadow:
    0 0 0 2px rgba(255, 207, 90, 0.16),
    0 10px 22px rgba(255, 164, 72, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #31200c;
}

.fish-passport-like.is-active svg,
.fish-passport-save.is-active svg {
  fill: currentColor;
  stroke: none;
}

.fish-passport-share {
  border-color: rgba(99, 230, 226, 0.48);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.6), transparent 28%),
    linear-gradient(145deg, rgba(99, 230, 226, 0.96), rgba(141, 186, 255, 0.92) 54%, rgba(255, 207, 90, 0.88));
  box-shadow:
    0 12px 24px rgba(35, 137, 193, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #10233a;
}

@media (min-width: 720px) {
  .topbar {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .brand {
    max-width: 100%;
    padding: 9px 10px;
    font-size: 1rem;
  }

  .profile-button {
    padding-right: 12px;
  }

  .profile-button-label {
    display: inline;
  }

  .header-actions {
    top: max(12px, env(safe-area-inset-top));
    gap: 15px;
    width: min(380px, calc(100vw - 32px));
  }

  .tabs {
    width: min(270px, 100%);
  }

  .panel {
    left: 18px;
    right: auto;
    bottom: 18px;
    width: min(430px, calc(100vw - 36px));
    max-height: calc(100vh - 118px);
  }

  .create-panel {
    width: min(480px, calc(100vw - 36px));
  }

  .create-mode .create-panel {
    width: min(760px, calc(100vw - 48px));
    max-height: calc(100vh - 132px);
  }

  .create-mode .instruction-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .create-mode .paint-workspace {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    align-items: start;
  }

  .create-mode .draft-fish-preview {
    position: sticky;
    top: 0;
  }

  .map-guide,
  .scene-badge {
    left: 18px;
    right: auto;
    bottom: 18px;
    width: min(360px, calc(100vw - 36px));
  }

  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-grid .text-field:nth-child(3) {
    grid-column: span 2;
  }

  .fish-popup {
    left: auto;
    right: clamp(24px, 7vw, 112px);
    top: 50%;
    bottom: auto;
    width: min(510px, calc(100vw - 48px));
    transform: translateY(-50%);
  }

  .profile-page {
    padding: calc(max(88px, env(safe-area-inset-top) + 72px)) 24px 28px;
  }

  .profile-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
    align-items: start;
  }

  .profile-card,
  .profile-tanks {
    border-radius: 22px;
    backdrop-filter: blur(24px) saturate(1.16);
  }

  .profile-close-button {
    display: none;
  }

  .profile-cover {
    min-height: 245px;
  }

  .profile-identity {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    margin-top: -52px;
    padding: 0 22px 16px;
  }

  .profile-avatar {
    width: 106px;
    height: 106px;
    border-radius: 50%;
  }

  .profile-stats {
    padding: 10px 22px 18px;
  }

  .profile-actions {
    padding: 0 22px 22px;
  }

  .profile-tank-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.create-mode .create-panel {
  --fishpaint-blue-dark: #172a5d;
  --fishpaint-blue: #315fa8;
  --fishpaint-blue-light: #b9d7ff;
  --fishpaint-chrome: #d8e5f8;
  --fishpaint-chrome-dark: #9eb2d3;
  --fishpaint-ink: #111a33;
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  display: grid;
  width: min(980px, calc(100vw - 18px));
  max-height: min(92dvh, 760px);
  padding: 6px;
  border: 2px solid #14203f;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 18%),
    linear-gradient(180deg, #ebf3ff 0%, #c8d8f0 48%, #a9bad6 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.84) inset,
    0 0 0 4px rgba(18, 35, 74, 0.2),
    0 32px 76px rgba(10, 20, 42, 0.42);
  color: var(--fishpaint-ink);
  overflow: auto;
  transform: translate(-50%, -50%);
  backdrop-filter: none;
  scrollbar-color: #6f88ba #d7e3f5;
}

.create-mode .create-heading {
  position: sticky;
  top: -6px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid #203763;
  border-radius: 13px 13px 6px 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18) 38%, transparent 39%),
    linear-gradient(180deg, #d7e8ff 0%, #5d8fdb 8%, #234a94 52%, #172f6d 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 -1px 0 rgba(4, 15, 40, 0.45) inset,
    0 8px 20px rgba(19, 39, 84, 0.22);
  color: #ffffff;
  text-align: left;
}

.create-mode .create-window-brand {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 9px;
  min-width: 0;
}

.create-app-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(4, 18, 48, 0.78);
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 0 44%, #18223c 45% 54%, transparent 55%),
    linear-gradient(180deg, #ffffff, #9ec5ff);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 3px 7px rgba(0, 0, 0, 0.22);
}

.create-app-icon::before,
.create-app-icon::after {
  position: absolute;
  content: "";
}

.create-app-icon::before {
  left: 8px;
  top: 9px;
  width: 12px;
  height: 9px;
  border-radius: 999px 8px 8px 999px;
  background: #ffcf5a;
  box-shadow: 6px 0 0 -2px #ff7a59;
}

.create-app-icon::after {
  right: 8px;
  top: 11px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #111827;
}

.create-mode .create-window-copy {
  display: grid;
  justify-items: start;
  gap: 1px;
  min-width: 0;
}

.create-mode .create-heading h1 {
  width: auto;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: clamp(1.08rem, 2.7vw, 1.42rem);
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(5, 14, 38, 0.42);
}

.create-mode .create-heading p {
  margin: 0;
  max-width: 36rem;
  color: rgba(243, 249, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.25;
}

.create-mode .create-close-button {
  width: 34px;
  height: 30px;
  border: 1px solid #13254c;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.22) 42%, transparent 43%),
    linear-gradient(180deg, #eff7ff, #6f94cf 48%, #244987);
  color: #08152f;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 4px 8px rgba(0, 0, 0, 0.22);
}

.create-mode .create-close-button::before,
.create-mode .create-close-button::after {
  width: 14px;
  height: 3px;
}

.create-mode .create-menu-strip {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  align-items: center;
  margin: 5px 0 7px;
  padding: 8px 14px;
  border: 1px solid #7d90b0;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 244, 255, 0.72) 46%, #c5d5ee 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 -1px 0 rgba(41, 57, 90, 0.18) inset;
  color: #152546;
  font-size: 0.92rem;
  font-weight: 780;
  overflow-x: auto;
  white-space: nowrap;
}

.create-mode .create-panel > .creator-steps {
  margin: 0 0 7px;
  padding: 5px;
  border: 1px solid #8b9dbc;
  border-radius: 10px;
  background: #d6e2f4;
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.72) inset,
    -1px -1px 0 rgba(38, 52, 84, 0.16) inset;
}

.create-mode .creator-tabs button {
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid #8799b9;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #dbe8fb 48%, #aec2e2 100%);
  color: #182846;
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.7) inset,
    -1px -1px 0 rgba(21, 39, 77, 0.16) inset;
}

.create-mode .creator-tabs button.active {
  border-color: #243f78;
  background:
    linear-gradient(180deg, #eaf4ff 0%, #91b8ef 42%, #315fa8 100%);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(4, 18, 44, 0.4);
}

.create-mode .creator-tabs button.done {
  border-color: #6f87ad;
  background: linear-gradient(180deg, #eef7ff, #c7defb);
  color: #31537e;
}

.create-mode .creator-tabs button span,
.create-mode .creator-tabs button.active span {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(19, 36, 72, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
  color: currentColor;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.74) inset;
}

.create-mode .creator-tabs button strong {
  font-size: 0.74rem;
}

.create-mode .create-panel > .creator-step-page {
  padding: 0 2px 2px;
}

.create-mode .creator-step-page {
  gap: 10px;
}

.create-mode .paint-step-header,
.create-mode .instruction-card span,
.create-mode .release-coordinate-card,
.create-mode .release-summary span {
  border: 1px solid #93a4c0;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7fbff, #d7e3f4);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.76) inset,
    -1px -1px 0 rgba(32, 52, 86, 0.12) inset;
}

.create-mode .paint-step-header {
  padding: 9px 11px;
}

.create-mode .paint-step-header strong {
  color: #132548;
  font-size: 0.96rem;
}

.create-mode .paint-step-header span,
.create-mode .instruction-card span,
.create-mode .release-coordinate-card span,
.create-mode .release-coordinate-card small {
  color: rgba(19, 37, 72, 0.68);
}

.create-mode .segmented {
  margin: 0;
  padding: 8px;
  border: 1px solid #8b9dbc;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #eaf2ff, #c8d7ee);
}

.create-mode .segmented legend,
.create-mode .paint-row-header,
.create-mode .identity-toggle,
.create-mode .text-field {
  color: rgba(19, 37, 72, 0.76);
}

.create-mode .segment,
.create-mode .paint-tool,
.create-mode .map-zoom-button,
.create-mode .ghost-action {
  border: 1px solid #7185a6;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #d9e7fb 48%, #b2c6e5);
  color: #132548;
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.76) inset,
    -1px -1px 0 rgba(25, 45, 82, 0.18) inset;
}

.create-mode .segment.active,
.create-mode .paint-tool.active {
  border-color: #243f78;
  background: linear-gradient(180deg, #eaf4ff, #7fa9e8 44%, #315fa8);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(4, 18, 44, 0.36);
}

.create-mode .identity-switch {
  border: 1px solid #8fa1bd;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  background: linear-gradient(180deg, #f8fbff, #dce7f5 52%, #c4d2e4);
  color: #253747;
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.72) inset,
    -1px -1px 0 rgba(25, 45, 82, 0.14) inset;
}

.create-mode .identity-switch.is-public {
  border-color: #9db2cf;
  background: linear-gradient(180deg, #ffffff, #e8f3ff 48%, #c6ddf6);
  color: #132548;
}

.create-mode .paint-workspace {
  display: grid;
  gap: 9px;
}

.create-mode .pixel-paint-window {
  gap: 8px;
  padding: 7px;
  border: 1px solid #7185a6;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 13px;
  background:
    linear-gradient(180deg, #e8f1ff, #bfd0ea);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.8) inset,
    -1px -1px 0 rgba(25, 45, 82, 0.18) inset;
}

.create-mode .paint-canvas-field {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas:
    "tools canvas"
    "brush brush"
    "palette palette"
    "status status";
  gap: 7px;
}

.create-mode .paint-toolbar {
  grid-area: tools;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #7185a6;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 10px;
  background: linear-gradient(180deg, #f3f8ff, #cad9ef);
}

.create-mode .paint-tool-copy {
  display: none;
}

.create-mode .paint-tool-buttons {
  display: grid;
  grid-template-columns: repeat(5, 46px);
  justify-content: start;
  gap: 6px;
}

.create-mode .paint-tool {
  width: 46px;
  min-height: 46px;
  padding: 0;
  font-size: 0.72rem;
  cursor: pointer;
}

.create-mode .icon-tool {
  min-width: 0;
}

.create-mode .clear-tool {
  border-color: #3d4965;
  background: linear-gradient(180deg, #4b5c79, #1d2c4a);
  color: #ffffff;
}

.create-mode .color-wheel {
  margin-top: 2px;
  color: #21385f;
}

.create-mode .color-wheel-control,
.create-mode .color-wheel input,
.create-mode .color-wheel-button {
  width: 46px;
  height: 46px;
}

.create-mode .color-wheel-button {
  border-color: #f7fbff;
  box-shadow:
    0 0 0 1px #52698f,
    1px 1px 0 rgba(255, 255, 255, 0.8) inset,
    -1px -1px 0 rgba(19, 37, 72, 0.2) inset;
}

.create-mode .color-wheel-picked {
  width: 18px;
  height: 18px;
  border-color: #ffffff;
  box-shadow:
    0 0 0 1px #455a7e,
    0 0 0 3px rgba(255, 255, 255, 0.28);
}

.create-mode .drawing-canvas-wrap {
  position: relative;
  grid-area: canvas;
  min-width: 0;
  padding: 7px 22px 22px 7px;
  border: 1px solid #52698f;
  border-top-color: #263c67;
  border-left-color: #263c67;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent calc(100% - 17px), #d0dcef calc(100% - 17px)),
    linear-gradient(180deg, transparent calc(100% - 17px), #d0dcef calc(100% - 17px)),
    #f9fbff;
  box-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.1) inset,
    -1px -1px 0 rgba(255, 255, 255, 0.84) inset;
}

.create-mode .drawing-canvas-wrap::before,
.create-mode .drawing-canvas-wrap::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.create-mode .drawing-canvas-wrap::before {
  left: 10px;
  right: 25px;
  bottom: 7px;
  height: 11px;
  border: 1px solid #6d83a8;
  border-radius: 999px;
  background: linear-gradient(90deg, #9bb8e5, #f2f7ff 26%, #9bb8e5 42%, #c2d5f0);
}

.create-mode .drawing-canvas-wrap::after {
  top: 10px;
  right: 7px;
  bottom: 25px;
  width: 11px;
  border: 1px solid #6d83a8;
  border-radius: 999px;
  background: linear-gradient(180deg, #9bb8e5, #f2f7ff 28%, #9bb8e5 44%, #c2d5f0);
}

.create-mode .drawing-canvas {
  border: 1px solid #52698f;
  border-top-color: #263c67;
  border-left-color: #263c67;
  border-radius: 5px;
  background: #ffffff;
  box-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.12) inset,
    -1px -1px 0 rgba(255, 255, 255, 0.86) inset;
}

.create-mode .paint-area-outline {
  inset: 8px 23px 23px 8px;
  width: auto;
  height: auto;
}

.create-mode .paint-area-outline path,
.create-mode .paint-area-outline ellipse {
  fill: rgba(49, 95, 168, 0.03);
  stroke: rgba(19, 37, 72, 0.68);
  stroke-dasharray: 8 6;
  stroke-width: 3px;
}

.create-mode .brush-controls {
  grid-area: palette;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid #7185a6;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 10px;
  background: linear-gradient(180deg, #eef5ff, #c9d8ef);
}

.create-mode .brush-swatches,
.create-mode .swatches {
  display: grid;
  grid-template-columns: repeat(12, minmax(20px, 1fr));
  gap: 5px;
}

.create-mode .swatch {
  min-height: 28px;
  border: 2px solid #f5f9ff;
  border-radius: 6px;
  background: var(--swatch);
  box-shadow:
    0 0 0 1px #52698f,
    1px 1px 0 rgba(255, 255, 255, 0.38) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.18) inset;
}

.create-mode .swatch.active {
  border-color: #ffffff;
  box-shadow:
    0 0 0 2px #172a5d,
    0 0 0 4px rgba(255, 255, 255, 0.7);
}

.create-mode .brush-size {
  color: #1b3159;
}

.create-mode .brush-size input {
  accent-color: #315fa8;
}

.create-mode .paint-statusbar {
  grid-area: status;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid #8a9bb8;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4f8ff, #d0dcef);
  color: rgba(19, 37, 72, 0.78);
  font-size: 0.76rem;
  font-weight: 760;
}

.create-mode .paint-row {
  margin: 0;
  padding: 8px;
  border: 1px solid #7185a6;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 10px;
  background: linear-gradient(180deg, #eef5ff, #c9d8ef);
}

.create-mode .paint-row-header {
  margin-bottom: 7px;
}

.create-mode .paint-row input[type="color"] {
  width: 42px;
  min-height: 34px;
  border-radius: 8px;
}

.create-mode .draft-fish-preview {
  gap: 9px;
  padding: 10px;
  border: 1px solid #7185a6;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 42%, rgba(99, 230, 226, 0.22), rgba(99, 230, 226, 0.04) 58%, transparent 100%),
    linear-gradient(180deg, #f4f8ff, #cfdbed);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.75) inset,
    -1px -1px 0 rgba(25, 45, 82, 0.16) inset;
}

.create-mode .draft-fish-preview > span {
  color: #1b3159;
}

.create-mode .draft-fish-preview-stage {
  min-height: 148px;
  border: 1px solid #8ea0bf;
  border-top-color: #5d7095;
  border-left-color: #5d7095;
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(94, 180, 255, 0.26), transparent 58%),
    #eef5ff;
  background-size: 16px 16px, 16px 16px, auto, auto;
}

.create-mode .draft-fish-preview small {
  color: rgba(19, 37, 72, 0.62);
}

.create-mode .field-grid {
  gap: 9px;
}

.create-mode .text-field input,
.create-mode .message-field textarea {
  border: 1px solid #64799d;
  border-top-color: #31496f;
  border-left-color: #31496f;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.1) inset,
    -1px -1px 0 rgba(255, 255, 255, 0.85) inset;
}

.create-mode .primary-action {
  min-height: 42px;
  border: 1px solid #152a56;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.16) 42%, transparent 43%),
    linear-gradient(180deg, #8dbaff, #315fa8 55%, #1f407b);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(4, 18, 44, 0.4);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.38) inset,
    -1px -1px 0 rgba(4, 18, 44, 0.22) inset,
    0 10px 20px rgba(31, 64, 123, 0.22);
}

.create-mode .primary-action:disabled {
  border-color: #9ba8bd;
  background: linear-gradient(180deg, #edf2fa, #c7d2e2);
  color: rgba(19, 37, 72, 0.44);
  text-shadow: none;
  box-shadow: none;
}

.create-mode .release-summary {
  gap: 7px;
}

@media (min-width: 720px) {
  .create-mode .paint-workspace {
    grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
    align-items: start;
  }

  .create-mode .draft-fish-preview {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 719px) {
  .brand {
    display: none;
  }

  .header-actions {
    top: max(12px, env(safe-area-inset-top));
  }

  .create-mode .create-panel {
    width: calc(100vw - 10px);
    max-height: calc(100dvh - 14px);
    padding: 5px;
    border-radius: 14px;
  }

  .create-mode .create-heading {
    top: -5px;
    padding: 6px;
    border-radius: 10px 10px 5px 5px;
  }

  .create-mode .create-window-brand {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 7px;
  }

  .create-app-icon {
    width: 25px;
    height: 25px;
  }

  .create-mode .create-heading p {
    display: none;
  }

  .create-mode .create-menu-strip {
    gap: 18px;
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .create-mode .creator-tabs {
    grid-template-columns: repeat(3, minmax(104px, 1fr));
    overflow-x: auto;
  }

  .create-mode .creator-tabs button {
    min-width: 104px;
  }

  .create-mode .paint-canvas-field {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tools"
      "canvas"
      "palette"
      "status";
  }

  .create-mode .paint-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: auto;
  }

  .create-mode .paint-tool-copy {
    display: grid;
  }

  .create-mode .paint-tool-copy strong {
    color: #132548;
  }

  .create-mode .paint-tool-copy span {
    color: rgba(19, 37, 72, 0.62);
    font-size: 0.76rem;
  }

  .create-mode .paint-tool-buttons {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, 46px);
  }

  .create-mode .paint-tool {
    min-height: 42px;
  }

  .create-mode .color-wheel {
    grid-column: 2;
    grid-row: 1;
  }

  .create-mode .drawing-canvas-wrap {
    padding: 6px;
  }

  .create-mode .drawing-canvas-wrap::before,
  .create-mode .drawing-canvas-wrap::after {
    display: none;
  }

  .create-mode .paint-area-outline {
    inset: 7px;
  }

  .create-mode .brush-controls {
    grid-template-columns: 1fr;
  }

  .create-mode .brush-swatches,
  .create-mode .swatches {
    grid-template-columns: repeat(8, minmax(22px, 1fr));
  }

  .create-mode .release-summary {
    grid-template-columns: 1fr;
  }
}

.create-mode .create-panel {
  --fishpaint-blue-dark: #26385f;
  --fishpaint-blue: #4f699b;
  --fishpaint-blue-light: #c7d8ef;
  --fishpaint-chrome: #dce6f3;
  --fishpaint-chrome-dark: #aebcd0;
  --fishpaint-ink: #16213a;
  border-color: #20304e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 18%),
    linear-gradient(180deg, #eef3fb 0%, #ccd8e8 48%, #adbbcf 100%);
  color: var(--fishpaint-ink);
  font-family: "MS UI Gothic", "MS PGothic", "MS Gothic", "Lucida Console", "Courier New", monospace;
  font-smooth: never;
  letter-spacing: 0.01em;
  scrollbar-color: #7a8faa #d7e2f0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: none;
}

.create-mode .create-panel button,
.create-mode .create-panel input,
.create-mode .create-panel textarea {
  font-family: inherit;
  letter-spacing: 0.01em;
}

.create-mode .create-heading {
  border-color: #2a3c5e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.2) 38%, transparent 39%),
    linear-gradient(180deg, #d9e6f8 0%, #859cc1 9%, #4d6797 52%, #2b416d 100%);
}

.create-mode .create-heading h1 {
  font-size: clamp(1rem, 2.45vw, 1.32rem);
  font-weight: 900;
  text-shadow: 1px 1px 0 rgba(4, 13, 33, 0.55);
}

.create-mode .create-heading p,
.create-mode .paint-step-header span,
.create-mode .instruction-card span,
.create-mode .draft-fish-preview small,
.create-mode .release-coordinate-card span,
.create-mode .release-coordinate-card small {
  color: rgba(22, 33, 58, 0.7);
}

.create-mode .create-heading p {
  color: rgba(244, 248, 255, 0.82);
}

.create-app-icon {
  background:
    linear-gradient(135deg, transparent 0 44%, #24314c 45% 54%, transparent 55%),
    linear-gradient(180deg, #ffffff, #b6c8e2);
}

.create-mode .create-close-button {
  border-color: #20304e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.22) 42%, transparent 43%),
    linear-gradient(180deg, #edf4ff, #9aaccc 48%, #516990);
}

.create-mode .create-menu-strip,
.create-mode .create-panel > .creator-steps,
.create-mode .segmented,
.create-mode .pixel-paint-window,
.create-mode .paint-toolbar,
.create-mode .brush-controls,
.create-mode .paint-row,
.create-mode .paint-statusbar,
.create-mode .draft-fish-preview {
  border-color: #7d8da6;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  background: linear-gradient(180deg, #f1f6fd, #d5e0ef 48%, #bdcbe0);
}

.create-mode .creator-tabs button,
.create-mode .segment,
.create-mode .paint-tool,
.create-mode .map-zoom-button,
.create-mode .ghost-action {
  border-color: #7889a4;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  background: linear-gradient(180deg, #ffffff, #dfe9f6 48%, #becce0);
  color: #16213a;
}

.create-mode .creator-tabs button.active,
.create-mode .segment.active,
.create-mode .paint-tool.active {
  border-color: #2c4268;
  background: linear-gradient(180deg, #eef5ff 0%, #aabfdd 43%, #5d77a4 100%);
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(4, 13, 33, 0.42);
}

.create-mode .creator-tabs button.done {
  border-color: #7487a7;
  background: linear-gradient(180deg, #f3f8ff, #d3e0f1);
  color: #405675;
}

.create-mode .paint-step-header,
.create-mode .instruction-card span,
.create-mode .release-coordinate-card,
.create-mode .release-summary span {
  border-color: #8796ae;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  background: linear-gradient(180deg, #f9fbff, #dce6f3);
}

.create-mode .paint-step-header strong,
.create-mode .draft-fish-preview > span,
.create-mode .brush-size,
.create-mode .color-wheel,
.create-mode .paint-statusbar {
  color: #243657;
}

.create-mode .clear-tool {
  border-color: #34435d;
  background: linear-gradient(180deg, #687790, #2f3d56);
  color: #ffffff;
}

.create-mode .drawing-canvas-wrap {
  border-color: #4e617f;
  border-top-color: #2d3e5c;
  border-left-color: #2d3e5c;
  background:
    linear-gradient(90deg, transparent calc(100% - 17px), #ccd8e8 calc(100% - 17px)),
    linear-gradient(180deg, transparent calc(100% - 17px), #ccd8e8 calc(100% - 17px)),
    #fafcff;
}

.create-mode .drawing-canvas-wrap::before {
  border-color: #657794;
  background:
    linear-gradient(90deg, #5e7190 0 7%, #edf4ff 9% 14%, #9fb2ce 17% 36%, #7185a5 43%, #dfeaff 56%, #7a8daa 69%, #c1cde0 100%);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.72) inset,
    -1px -1px 0 rgba(31, 45, 70, 0.4) inset,
    0 0 0 1px rgba(255, 255, 255, 0.4);
}

.create-mode .drawing-canvas-wrap::after {
  border-color: #657794;
  background:
    linear-gradient(180deg, #5e7190 0 7%, #edf4ff 9% 14%, #9fb2ce 17% 36%, #7185a5 43%, #dfeaff 56%, #7a8daa 69%, #c1cde0 100%);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.72) inset,
    -1px -1px 0 rgba(31, 45, 70, 0.4) inset,
    0 0 0 1px rgba(255, 255, 255, 0.4);
}

.create-mode .drawing-canvas {
  border-color: #4e617f;
  border-top-color: #263856;
  border-left-color: #263856;
}

.create-mode .primary-action {
  border-color: #243a62;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.14) 42%, transparent 43%),
    linear-gradient(180deg, #b4c8e6, #657fa9 55%, #3d5782);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.38) inset,
    -1px -1px 0 rgba(4, 18, 44, 0.22) inset,
    0 10px 20px rgba(48, 67, 101, 0.2);
}

.create-mode .swatch.active {
  box-shadow:
    0 0 0 2px #26385f,
    0 0 0 4px rgba(255, 255, 255, 0.72);
}

.create-mode .create-panel {
  --creator-card: rgba(255, 255, 255, 0.94);
  --creator-card-soft: rgba(248, 250, 252, 0.92);
  --creator-line: rgba(15, 23, 42, 0.08);
  --creator-text: #151923;
  --creator-muted: rgba(21, 25, 35, 0.58);
  --creator-blue: #2f7df6;
  --creator-blue-soft: rgba(47, 125, 246, 0.12);
  width: min(980px, calc(100vw - 24px));
  max-height: min(92dvh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.94));
  box-shadow:
    0 34px 90px rgba(15, 23, 42, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  color: var(--creator-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-smooth: auto;
  letter-spacing: 0;
  scrollbar-color: rgba(100, 116, 139, 0.36) transparent;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.create-mode .create-panel::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.create-mode .create-panel::-webkit-scrollbar-track {
  margin-block: 24px;
  border-radius: 999px;
  background: transparent;
}

.create-mode .create-panel::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.38);
  background-clip: content-box;
}

.create-mode .create-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.52);
  background-clip: content-box;
}

.create-mode .create-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 6px 2px 0;
  scrollbar-color: rgba(100, 116, 139, 0.36) transparent;
  scrollbar-gutter: stable;
}

.create-mode .create-scroll-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.create-mode .create-scroll-body::-webkit-scrollbar-track {
  margin-block: 12px;
  border-radius: 999px;
  background: transparent;
}

.create-mode .create-scroll-body::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.38);
  background-clip: content-box;
}

.create-mode .create-scroll-body::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.52);
  background-clip: content-box;
}

.create-mode .create-panel button,
.create-mode .create-panel input,
.create-mode .create-panel textarea {
  font-family: inherit;
  letter-spacing: 0;
}

.create-mode .create-heading {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin: -2px -2px 12px;
  padding: 8px 8px 10px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  color: var(--creator-text);
  backdrop-filter: blur(18px) saturate(1.2);
}

.create-mode .create-window-brand {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.create-app-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 15px;
  background:
    radial-gradient(circle at 66% 36%, #ffffff 0 10%, transparent 11%),
    conic-gradient(from 10deg, #ff5c7a, #ffcf5a, #56d68d, #5ed9ff, #7067ff, #ff5cda, #ff5c7a);
  box-shadow:
    0 14px 28px rgba(47, 125, 246, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.create-app-icon::before {
  left: 13px;
  top: 13px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.create-app-icon::after {
  display: none;
}

.create-mode .create-heading h1 {
  color: var(--creator-text);
  font-size: clamp(1.2rem, 2.6vw, 1.68rem);
  font-weight: 820;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.create-mode .create-heading p {
  max-width: 42rem;
  color: var(--creator-muted);
  font-size: 0.88rem;
  font-weight: 620;
  line-height: 1.35;
}

.create-mode .create-close-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f8;
  color: rgba(15, 23, 42, 0.5);
  box-shadow: none;
}

.create-mode .create-close-button:hover {
  background: #e8edf5;
  color: #111827;
}

.create-mode .create-close-button::before,
.create-mode .create-close-button::after {
  width: 14px;
  height: 2px;
}

.create-mode .create-menu-strip {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 7px;
  border: 1px solid var(--creator-line);
  border-radius: 18px;
  background: var(--creator-card-soft);
  box-shadow: none;
  color: var(--creator-muted);
  font-size: 0.78rem;
  font-weight: 740;
  overflow-x: auto;
}

.create-mode .create-menu-strip span {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.create-mode .create-panel > .creator-steps {
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px;
  border: 1px solid var(--creator-line);
  border-radius: 18px;
  background: #f5f7fb;
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.create-mode .creator-tabs button {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(21, 25, 35, 0.58);
  box-shadow: none;
  transform: translateY(0) scale(1);
  transition:
    background 170ms ease,
    box-shadow 170ms ease,
    color 170ms ease,
    transform 170ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
}

.create-mode .creator-tabs button.active {
  background: #ffffff;
  color: var(--creator-blue);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(47, 125, 246, 0.1);
  text-shadow: none;
}

.create-mode .creator-tabs button.done {
  background: rgba(255, 255, 255, 0.58);
  color: rgba(21, 25, 35, 0.72);
}

.create-mode .creator-tabs button span,
.create-mode .creator-tabs button.active span {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  box-shadow: none;
}

.create-mode .creator-tabs button.active span {
  background: var(--creator-blue);
  color: #ffffff;
}

.create-mode .creator-tabs button strong {
  font-size: 0.78rem;
  font-weight: 780;
}

.create-mode .creator-tabs button span {
  transition:
    background 170ms ease,
    color 170ms ease,
    transform 170ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
}

.create-mode .creator-step-viewport {
  position: relative;
  isolation: isolate;
}

.create-mode .creator-step-shell {
  animation: creator-step-slide-forward 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: center center;
  will-change: opacity, transform;
}

.create-mode .creator-step-viewport[data-direction="back"] .creator-step-shell {
  animation-name: creator-step-slide-back;
}

.create-mode .creator-step-viewport[data-direction="steady"] .creator-step-shell {
  animation: none;
  will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
  .create-mode .creator-tabs button:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow:
      0 14px 28px rgba(15, 23, 42, 0.1),
      0 1px 0 rgba(255, 255, 255, 0.95) inset;
  }

  .create-mode .creator-tabs button:hover span {
    transform: scale(1.1);
  }

  .create-mode .primary-action:hover:not(:disabled),
  .create-mode .ghost-action:hover,
  .create-mode .paint-tool:hover,
  .create-mode .map-zoom-button:hover,
  .create-mode .segment:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow:
      0 12px 24px rgba(15, 23, 42, 0.09),
      0 1px 0 rgba(255, 255, 255, 0.9) inset;
  }
}

.create-mode .creator-tabs button:active,
.create-mode .primary-action:active:not(:disabled),
.create-mode .ghost-action:active,
.create-mode .paint-tool:active,
.create-mode .map-zoom-button:active,
.create-mode .segment:active {
  transform: translateY(0) scale(0.985);
}

@keyframes creator-step-slide-forward {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes creator-step-slide-back {
  from {
    opacity: 0;
    transform: translate3d(-30px, 0, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .create-mode .creator-step-shell {
    animation: none;
    will-change: auto;
  }

  .create-mode .creator-tabs button,
  .create-mode .creator-tabs button span,
  .create-mode .primary-action,
  .create-mode .ghost-action,
  .create-mode .paint-tool,
  .create-mode .map-zoom-button,
  .create-mode .segment {
    transition: none;
  }
}

.create-mode .create-panel > .creator-step-page {
  padding: 0;
}

.create-mode .paint-step-header,
.create-mode .instruction-card span,
.create-mode .release-coordinate-card,
.create-mode .release-summary span,
.create-mode .segmented,
.create-mode .pixel-paint-window,
.create-mode .paint-toolbar,
.create-mode .brush-controls,
.create-mode .paint-row,
.create-mode .paint-statusbar,
.create-mode .draft-fish-preview {
  border: 1px solid var(--creator-line);
  border-radius: 22px;
  background: var(--creator-card);
  box-shadow:
    0 20px 46px rgba(15, 23, 42, 0.09),
    0 6px 16px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.create-mode .paint-step-header {
  padding: 13px 15px;
}

.create-mode .paint-step-header strong,
.create-mode .instruction-card strong {
  color: var(--creator-text);
  font-size: 1rem;
  font-weight: 820;
}

.create-mode .paint-step-header span,
.create-mode .instruction-card span,
.create-mode .draft-fish-preview small,
.create-mode .release-coordinate-card span,
.create-mode .release-coordinate-card small {
  color: var(--creator-muted);
}

.create-mode .segmented {
  margin: 0;
  padding: 11px;
}

.create-mode .segmented legend,
.create-mode .paint-row-header,
.create-mode .text-field,
.create-mode .brush-size,
.create-mode .color-wheel,
.create-mode .paint-statusbar {
  color: var(--creator-muted);
}

.create-mode .segment,
.create-mode .paint-tool,
.create-mode .map-zoom-button,
.create-mode .ghost-action {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f7f9fc;
  color: var(--creator-text);
  box-shadow: none;
}

.create-mode .segment,
.create-mode .paint-tool,
.create-mode .map-zoom-button,
.create-mode .ghost-action,
.create-mode .primary-action {
  transform: translateY(0) scale(1);
  transition:
    background 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease,
    color 170ms ease,
    transform 170ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
}

.create-mode .segment.active,
.create-mode .paint-tool.active {
  border-color: rgba(47, 125, 246, 0.24);
  background: var(--creator-blue-soft);
  color: var(--creator-blue);
  box-shadow: none;
  text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .create-mode .creator-step-shell {
    animation: none;
    will-change: auto;
  }

  .create-mode .creator-tabs button,
  .create-mode .creator-tabs button span,
  .create-mode .primary-action,
  .create-mode .ghost-action,
  .create-mode .paint-tool,
  .create-mode .map-zoom-button,
  .create-mode .segment {
    transition: none;
  }
}

.create-mode .paint-workspace {
  gap: 14px;
}

.create-mode .pixel-paint-window {
  gap: 12px;
  padding: 12px;
}

.create-mode .paint-canvas-field {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "canvas"
    "brush"
    "palette";
  gap: 12px;
}

.create-mode .paint-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.create-mode .paint-tool-copy {
  display: grid;
}

.create-mode .paint-tool-copy strong {
  color: var(--creator-text);
  font-size: 0.96rem;
}

.create-mode .paint-tool-copy span {
  color: var(--creator-muted);
  font-size: 0.78rem;
}

.create-mode .paint-tool-buttons {
  display: flex;
  grid-area: tools;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.create-mode .paint-tool {
  width: 46px;
  min-height: 42px;
  padding: 0;
  font-size: 0.78rem;
}

.create-mode .clear-tool {
  border-color: rgba(15, 23, 42, 0.1);
  background: #111827;
  color: #ffffff;
}

.create-mode .color-wheel {
  margin: 0;
  justify-self: auto;
}

.create-mode .paint-tool-buttons .color-wheel {
  width: 46px;
  min-height: 42px;
  display: grid;
  place-items: center;
}

.create-mode .paint-tool-buttons .color-wheel > span:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.create-mode .color-wheel-control,
.create-mode .color-wheel input,
.create-mode .color-wheel-button {
  width: 42px;
  height: 42px;
}

.create-mode .color-wheel-button {
  border: 4px solid #ffffff;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(15, 23, 42, 0.08);
}

.create-mode .color-wheel-picked {
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.create-mode .drawing-canvas-wrap {
  grid-area: canvas;
  padding: 10px;
  border: 1px solid var(--creator-line);
  border-radius: 24px;
  background: #f5f7fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.create-mode .drawing-canvas-wrap::before,
.create-mode .drawing-canvas-wrap::after {
  display: none;
}

.create-mode .drawing-canvas {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.create-mode .paint-area-outline {
  inset: 11px;
}

.create-mode .paint-area-outline path,
.create-mode .paint-area-outline ellipse {
  fill: rgba(47, 125, 246, 0.03);
  stroke: rgba(47, 125, 246, 0.44);
  stroke-dasharray: 10 8;
  stroke-width: 3px;
}

.create-mode .brush-controls {
  grid-area: palette;
  display: grid;
  grid-template-columns: auto minmax(190px, 260px);
  grid-template-areas: "tools size";
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
}

.create-mode .brush-color-window {
  grid-area: brush;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.create-mode .brush-color-window .paint-row {
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.create-mode .brush-swatches,
.create-mode .swatches {
  grid-area: swatches;
  grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  justify-self: start;
  width: 100%;
  min-width: 0;
  gap: 7px;
}

.create-mode .brush-size {
  grid-area: size;
  justify-self: end;
  min-width: 190px;
  width: min(100%, 260px);
}

.create-mode .swatch {
  min-height: 30px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.08),
    0 6px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(0) scale(1);
  transition:
    box-shadow 170ms ease,
    transform 170ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
}

.create-mode .swatch.active {
  box-shadow:
    0 0 0 2px var(--creator-blue),
    0 8px 18px rgba(47, 125, 246, 0.22);
}

@media (hover: hover) and (pointer: fine) {
  .create-mode .swatch:hover {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.95),
      0 14px 26px rgba(15, 23, 42, 0.14);
    transform: translateY(-3px) scale(1.08);
  }

  .create-mode .swatch.active:hover {
    box-shadow:
      0 0 0 2px var(--creator-blue),
      0 0 0 5px rgba(47, 125, 246, 0.14),
      0 16px 28px rgba(47, 125, 246, 0.22);
  }
}

.create-mode .swatch:active {
  transform: translateY(0) scale(0.96);
}

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

  .create-mode .swatch:hover,
  .create-mode .swatch.active:hover,
  .create-mode .swatch:active {
    transform: none;
  }
}

.create-mode .paint-statusbar {
  grid-area: status;
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 16px;
  background: #f7f9fc;
  box-shadow: none;
}

.create-mode .paint-row {
  padding: 12px;
}

.create-mode .paint-row input[type="color"] {
  width: 42px;
  min-height: 34px;
  border-radius: 999px;
}

.create-mode .draft-fish-preview {
  gap: 12px;
  padding: 14px;
  position: static;
  top: auto;
}

.create-mode .draft-fish-preview > span {
  color: var(--creator-muted);
  font-weight: 820;
}

.create-mode .draft-fish-preview-stage {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px solid var(--creator-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 46%, rgba(47, 125, 246, 0.12), transparent 62%),
    #f7f9fc;
  overflow: visible;
}

.create-mode .draft-fish-preview .fish-portrait {
  align-self: center;
  justify-self: center;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    filter 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1.18);
  will-change: transform;
}

.create-mode .draft-fish-preview .live-preview-fish {
  cursor: pointer;
}

.create-mode .draft-fish-preview .live-preview-fish[data-wiggle="true"],
.create-mode .draft-fish-preview-stage:hover .live-preview-fish,
.create-mode .draft-fish-preview-stage:focus-within .live-preview-fish {
  filter: drop-shadow(0 24px 22px rgba(15, 23, 42, 0.2));
  transform: translateY(-8px) scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .create-mode .draft-fish-preview .fish-portrait {
    transition: none;
    will-change: auto;
  }

  .create-mode .draft-fish-preview .live-preview-fish[data-wiggle="true"],
  .create-mode .draft-fish-preview-stage:hover .live-preview-fish,
  .create-mode .draft-fish-preview-stage:focus-within .live-preview-fish {
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.2));
    transform: none;
  }
}

.create-mode .text-field input,
.create-mode .message-field textarea {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #ffffff;
  color: var(--creator-text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 10px 24px rgba(15, 23, 42, 0.04);
}

@media (max-width: 719px) {
  .create-mode .text-field input,
  .create-mode .message-field textarea {
    font-size: 16px;
  }
}

.create-mode .primary-action {
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #4b9bff, var(--creator-blue));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(47, 125, 246, 0.28);
  text-shadow: none;
}

.create-mode .primary-action:disabled {
  background: #edf1f7;
  color: rgba(21, 25, 35, 0.42);
  box-shadow: none;
}

.create-mode .text-field.is-invalid {
  color: #9f2118;
}

.create-mode .text-field.is-invalid .field-required {
  border-color: rgba(196, 41, 34, 0.34);
  background: rgba(255, 236, 234, 0.98);
  color: #b42318;
}

.create-mode .text-field.is-invalid input,
.create-mode .message-field.is-invalid textarea {
  border-color: #c92b20;
  background: #fff8f7;
  box-shadow:
    0 0 0 2px rgba(201, 43, 32, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.create-mode .primary-action.is-soft-disabled {
  background: #edf1f7;
  color: rgba(21, 25, 35, 0.48);
  box-shadow: none;
}

.release-mode .create-panel {
  top: max(14px, env(safe-area-inset-top));
  bottom: auto;
  width: min(500px, calc(100vw - 24px));
  max-height: min(26dvh, 190px);
  transform: translateX(-50%);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.release-launching .create-panel {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px) scale(0.96);
}

.release-tank-prewarming .tank3d-canvas {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.release-mode .create-heading {
  margin-bottom: 8px;
}

.release-mode .create-heading p {
  display: none;
}

.release-mode .create-scroll-body {
  overflow: visible;
  padding: 0;
}

.release-mode .creator-tabs {
  margin-bottom: 8px;
}

.release-mode .creator-tabs button {
  min-height: 34px;
  padding: 6px 8px;
}

.release-mode .creator-tabs button strong {
  font-size: 0.72rem;
}

.release-mode .release-step {
  gap: 0;
}

.release-mode .release-step .panel-actions {
  margin-top: 0;
  justify-content: center;
}

.release-mode .openfreemap-layer,
.release-mode .openfreemap-layer .maplibregl-canvas,
.release-mode .aquarium-stage,
.release-mode .aquarium-canvas {
  cursor: default !important;
}

.release-map-pin {
  position: fixed;
  left: 50%;
  top: 52%;
  z-index: 6;
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(62vw, 300px);
  height: 300px;
  pointer-events: none;
  filter: none;
  transform: translate(-50%, -50%);
}

.release-map-pin::before,
.release-map-pin::after {
  display: none;
}

.release-pin-fish {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 96px;
  margin-bottom: -10px;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 62%;
}

.release-map-pin .fish-portrait {
  width: min(58vw, 260px);
  max-width: 260px;
  filter: drop-shadow(0 22px 20px rgba(15, 23, 42, 0.24));
  transform: scale(1.08);
}

.release-map-pin.is-launching {
  pointer-events: none;
  contain: layout paint style;
}

.release-map-pin.is-launching .release-pin-fish {
  animation: release-fish-dive var(--release-shrink-duration, 980ms) cubic-bezier(0.36, 0, 0.18, 1) forwards;
  will-change: opacity, transform;
}

.release-map-pin.is-launching .fish-portrait {
  filter: none;
  transform-origin: center center;
  will-change: auto;
}

@keyframes release-fish-dive {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  66% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.035);
  }
}

.release-map-pin .release-pin-head {
  position: relative;
  left: auto;
  top: auto;
  display: block;
  width: 38px;
  height: 50px;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.28));
}

.release-map-pin .release-pin-head::before {
  position: absolute;
  left: 5px;
  top: 0;
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff;
  border-radius: 999px 999px 999px 0;
  background: #ff4d5f;
  box-shadow: 0 0 0 2px rgba(23, 32, 38, 0.22);
  content: "";
  transform: rotate(-45deg);
}

.release-map-pin .release-pin-head i {
  position: absolute;
  left: 16px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff;
}

.release-pin-coordinate-card {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: min(76vw, 250px);
  margin-top: 26px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  color: #172026;
  text-align: center;
}

.release-pin-coordinate-card strong {
  font-size: 0.88rem;
  font-weight: 900;
}

.release-pin-coordinate-card small {
  color: rgba(23, 32, 38, 0.62);
  font-size: 0.68rem;
  font-weight: 820;
}

.release-pin-action {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  pointer-events: auto;
}

.release-pin-action .floating-create-button {
  pointer-events: auto;
}

@media (min-width: 720px) {
  .create-mode .paint-workspace {
    grid-template-columns: minmax(0, 1.38fr) minmax(240px, 0.62fr);
    align-items: start;
  }

  .create-mode .draft-fish-preview {
    position: sticky;
    top: clamp(84px, 18dvh, 150px);
    align-self: start;
  }
}

@media (max-width: 719px) {
  .fish-inspect-overlay > .fish-popup {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - 24px);
    padding: 10px;
    gap: 10px;
  }

  .fish-inspect-overlay > .fish-note-popup {
    width: calc(100vw - 14px);
  }

  .fish-passport-top {
    grid-template-columns: minmax(96px, 28%) minmax(0, 1fr);
    gap: 13px;
    padding-right: 18px;
  }

  .fish-photo-card {
    padding: 5px;
  }

  .fish-photo-card::after {
    inset: 5px;
    background-size: 14px 14px;
  }

  .fish-photo-frame {
    min-height: 66px;
  }

  .fish-passport-photo-column {
    gap: 7px;
  }

  .fish-passport-actions {
    gap: 4px;
    width: max-content;
    justify-self: center;
  }

  .fish-passport-action {
    width: 31px;
    height: 31px;
  }

  .fish-passport-action svg {
    width: 16px;
    height: 16px;
  }

  .fish-passport-info {
    gap: 7px;
    padding-left: 2px;
  }

  .fish-inspect-overlay.has-passport .fish-popup-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }

  .fish-inspect-overlay.has-passport .fish-popup-heading {
    padding-right: 34px;
  }

  .fish-popup-heading h2 {
    font-size: clamp(1rem, 6vw, 1.2rem);
  }

  .fish-passport-label,
  .fish-passport-message-label {
    font-size: 0.58rem;
  }

  .fish-facts {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    column-gap: 10px;
    row-gap: 7px;
  }

  .fish-facts dt {
    font-size: 0.64rem;
  }

  .fish-facts dd {
    font-size: 0.72rem;
    line-height: 1.16;
  }

  .fish-fact-release dd {
    font-size: 0.62rem;
    line-height: 1.12;
  }

  .fish-passport-message {
    min-height: 58px;
    padding: 8px 9px;
    border-left-width: 3px;
  }

  .fish-passport-message p {
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .fish-inspect-stage {
    --fish-inspect-ray-size: min(132vw, 540px);
    top: 54%;
    width: min(82vw, 320px);
    gap: 12px;
  }

  .fish-inspect-vignette {
    background:
      radial-gradient(circle at 50% 54%, rgba(3, 12, 18, 0.28) 0 16%, rgba(2, 10, 16, 0.76) 50%, rgba(0, 0, 0, 0.92) 100%),
      linear-gradient(180deg, rgba(0, 10, 18, 0.62), rgba(0, 0, 0, 0.82));
  }

  .fish-inspect-fish .fish-portrait {
    width: min(100%, 300px);
    max-height: 32dvh;
  }

  .fish-inspect-open {
    min-width: 108px;
    min-height: 44px;
    padding: 0 20px;
  }

  .fish-inspect-close {
    top: -14px;
    right: 2px;
  }

  .create-mode .create-panel {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 16px);
    padding: 10px;
    border-radius: 24px;
  }

  .create-mode .create-panel::-webkit-scrollbar-track {
    margin-block: 18px;
  }

  .create-mode .create-scroll-body {
    padding: 0 3px 2px 0;
  }

  .create-mode .create-scroll-body::-webkit-scrollbar-track {
    margin-block: 10px;
  }

  .create-mode .create-heading {
    top: auto;
    margin: 0 0 10px;
    padding: 6px;
  }

  .create-mode .create-heading p {
    display: none;
  }

  .release-mode .create-panel {
    top: max(10px, env(safe-area-inset-top));
    bottom: auto;
    width: calc(100vw - 16px);
    max-height: min(28dvh, 190px);
  }

  .release-mode .creator-tabs {
    margin-bottom: 6px;
  }

  .release-mode .creator-tabs button {
    min-height: 32px;
    min-width: 94px;
    padding: 5px 7px;
  }

  .release-map-pin {
    top: 52%;
    width: min(76vw, 280px);
    height: 280px;
  }

  .release-pin-fish {
    min-height: 86px;
  }

  .release-map-pin .fish-portrait {
    width: min(72vw, 240px);
  }

  .release-pin-coordinate-card {
    min-width: min(82vw, 236px);
  }

  .create-mode .create-menu-strip {
    padding: 6px;
  }

  .create-mode .creator-tabs {
    grid-template-columns: repeat(3, minmax(112px, 1fr));
    overflow-x: auto;
  }

  .create-mode .creator-tabs button {
    min-width: 112px;
  }

  .create-mode .brush-controls {
    grid-template-columns: auto minmax(96px, 1fr);
    grid-template-areas: "tools size";
  }

  .create-mode .brush-size {
    justify-self: stretch;
    min-width: 96px;
    width: 100%;
  }

  .create-mode .paint-tool-buttons {
    justify-content: start;
    gap: 4px;
  }

  .create-mode .paint-tool,
  .create-mode .paint-tool-buttons .color-wheel,
  .create-mode .paint-tool-buttons .color-wheel-control,
  .create-mode .paint-tool-buttons .color-wheel input,
  .create-mode .paint-tool-buttons .color-wheel-button {
    width: 34px;
    min-height: 34px;
    height: 34px;
  }

  .create-mode .paint-tool-buttons .color-wheel-picked {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .create-mode .paint-step .paint-workspace {
    gap: 10px;
  }

  .create-mode .paint-step .pixel-paint-window {
    gap: 10px;
    padding: 8px;
    overflow: hidden;
  }

  .create-mode .paint-step .paint-canvas-field {
    gap: 8px;
  }

  .create-mode .paint-step .drawing-canvas-wrap {
    justify-self: center;
    width: calc(100% - 14px);
    max-width: 340px;
    padding: 6px;
    border-radius: 18px;
  }

  .create-mode .paint-step .drawing-canvas {
    border-radius: 14px;
    box-shadow:
      0 12px 24px rgba(15, 23, 42, 0.07),
      0 1px 0 rgba(255, 255, 255, 0.9) inset;
  }

  .create-mode .paint-step .paint-area-outline {
    inset: 7px;
    width: calc(100% - 14px);
    height: calc(100% - 14px);
  }

  .create-mode .paint-step .brush-controls {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "tools"
      "size";
    justify-items: center;
    gap: 10px;
    padding: 10px;
    overflow: hidden;
  }

  .create-mode .paint-step .brush-color-window {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .create-mode .paint-step .paint-tool-buttons {
    justify-content: center;
    width: 100%;
    gap: 6px;
  }

  .create-mode .paint-step .brush-size {
    justify-self: stretch;
    min-width: 0;
    width: min(100%, 310px);
  }

  .create-mode .paint-step .paint-row {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .create-mode .paint-step .paint-row-header {
    display: grid;
    justify-items: center;
    gap: 8px;
    justify-self: center;
    width: max-content;
    max-width: 100%;
    margin-bottom: 0;
    text-align: center;
  }

  .create-mode .paint-step .swatches {
    grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
    justify-content: center;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: 270px;
    gap: 7px;
  }

  .create-mode .paint-step .swatch {
    min-height: 28px;
  }

  .create-mode .paint-step .draft-fish-preview {
    margin-right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabs,
  .panel,
  .fish-inspect-vignette,
  .fish-inspect-stage,
  .fish-inspect-fish,
  .fish-inspect-fish .fish-portrait,
  .fish-inspect-rays,
  .fish-inspect-ray,
  .fish-popup {
    backdrop-filter: none;
    animation: none;
  }

  .fish-inspect-vignette,
  .fish-inspect-stage {
    opacity: 1;
  }

  .fish-inspect-stage {
    transform: translate(-50%, -50%);
  }

  .tabs::before,
  .tab,
  .floating-create-button,
  .fish-inspect-open {
    transition: none;
  }

  .bubble-transition,
  .bubble-transition-canvas,
  .map-boat-transition,
  .profile-fish-transition,
  .opening-loader {
    display: none;
    animation: none;
  }
}
