@font-face {
  font-family: "MapFont";
  src: url(fonts/Shippori_Mincho/subset/ShipporiMincho-Regular.woff2) format("woff2"), url(fonts/Shippori_Mincho/ShipporiMincho-Regular.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "MapFont";
  src: url(fonts/Shippori_Mincho/subset/ShipporiMincho-Medium.woff2) format("woff2"), url(fonts/Shippori_Mincho/ShipporiMincho-Medium.ttf) format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "KeiFont";
  src:
    url(fonts/keifont/subset/keifont.woff2) format("woff2"),
    url(fonts/keifont/full/keifont.woff2) format("woff2"),
    url(fonts/keifont/keifont.ttf) format("truetype"),
    url(fonts/Shippori_Mincho/subset/ShipporiMincho-Regular.woff2) format("woff2"),
    url(fonts/Shippori_Mincho/ShipporiMincho-Regular.ttf) format("truetype");
  font-weight: 100 450;
  font-display: swap;
}
@font-face {
  font-family: "KeiFont";
  src:
    url(fonts/keifont/subset/keifont.woff2) format("woff2"),
    url(fonts/keifont/full/keifont.woff2) format("woff2"),
    url(fonts/keifont/keifont.ttf) format("truetype"),
    url(fonts/Shippori_Mincho/subset/ShipporiMincho-Medium.woff2) format("woff2"),
    url(fonts/Shippori_Mincho/ShipporiMincho-Medium.ttf) format("truetype");
  font-weight: 451 900;
  font-display: swap;
}
@font-face {
  font-family: "KeiFontAll";
  src: url(fonts/keifont/full/keifont.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --text: #f1ede4;
  --muted: #b2ab9d;
  --gold: #99ff00;
  --light: #ffff00;
  --accent: #b9a6ff;
  --surface: rgba(11, 10, 24, 0.9);
  --surface-hover: rgba(30, 28, 50, 0.94);
  --surface-raised: rgba(14, 13, 30, 0.96);
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  --halo:
    0 1px 1px rgba(2, 3, 10, 0.9),
    0 0 2px rgba(2, 3, 10, 0.95),
    0 0 9px rgba(2, 3, 10, 0.55);
  --outline:
    1.2px 0 0 #000,
    -1.2px 0 0 #000,
    0 1.2px 0 #000,
    0 -1.2px 0 #000,
    0.85px 0.85px 0 #000,
    -0.85px 0.85px 0 #000,
    0.85px -0.85px 0 #000,
    -0.85px -0.85px 0 #000,
    0 0 1px #000,
    0 0 8px rgba(0, 0, 0, 0.5);
  --outline-bold:
    1.6px 0 0 #000,
    -1.6px 0 0 #000,
    0 1.6px 0 #000,
    0 -1.6px 0 #000,
    1.13px 1.13px 0 #000,
    -1.13px 1.13px 0 #000,
    1.13px -1.13px 0 #000,
    -1.13px -1.13px 0 #000,
    0 0 1.5px #000,
    0 0 10px rgba(0, 0, 0, 0.5);
  --scrim: rgba(3, 4, 12, 0.74);
  --radius: 6px;
  --control: 44px;
  --font:
    "MapFont",
    "Hiragino Mincho ProN",
    "Yu Mincho",
    "YuMincho",
    "Noto Serif JP",
    serif;
  --paint-font:
    "KeiFont",
    "KeiFontAll",
    var(--font);
  --edge-top: calc(14px + env(safe-area-inset-top, 0px));
  --edge-right: calc(14px + env(safe-area-inset-right, 0px));
  --edge-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  --edge-left: calc(14px + env(safe-area-inset-left, 0px));
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b0612;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
#map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#map.dragging {
  cursor: grabbing;
}
#hud,
#search,
#zoom-buttons {
  font-variant-numeric: tabular-nums;
}
.overlay {
  position: fixed;
  margin: 0;
  text-shadow: var(--halo);
  pointer-events: none;
}
.overlay::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
#hud {
  top: calc(var(--edge-top) + 5px);
  left: var(--edge-left);
  max-width: calc(100vw - 52px);
  padding: 2px 4px;
  font-family: var(--paint-font);
  font-size: 13px;
  line-height: 1.5;
  text-shadow: var(--outline);
}
#hud::before {
  inset: -60px -160px -72px -60px;
  background:
    radial-gradient(
      100% 100% at 0 0,
      var(--scrim),
      rgba(3, 4, 12, 0.45) 55%,
      rgba(3, 4, 12, 0));
}
#hud dt,
#hud dd {
  margin: 0;
  white-space: nowrap;
}
#hud .hud-main {
  margin-top: 1px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  text-shadow: var(--outline-bold);
}
#hud .hud-main .num {
  margin: 0 2px;
  font-size: 27px;
}
#hud-location::after {
  content: "0";
  display: inline-block;
  width: 0;
  visibility: hidden;
  font-family: "KeiFont", var(--font);
  font-size: 24px;
}
#hud .hud-sub {
  width: max-content;
  max-width: calc(100vw - var(--edge-left) - var(--edge-right) - 8px);
  margin-top: 2px;
  color: #dddddd;
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
  word-break: auto-phrase;
  text-wrap: balance;
}
#hud .hud-sub:empty,
#hud .hud-note:empty {
  display: none;
}
#hud .scale-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
}
#scale-bar {
  display: inline-block;
  height: 6px;
  border: 2px solid var(--light);
  border-top: none;
  background: linear-gradient(var(--light), var(--light)) 50% 100% / 2px 3px no-repeat;
  filter: drop-shadow(0 0 1px rgba(2, 3, 10, 0.95)) drop-shadow(0 0 3px rgba(2, 3, 10, 0.6));
}
#scale-text {
  color: var(--light);
  font-weight: 500;
  line-height: 1;
}
#hud .hud-note {
  margin-top: 6px;
  color: #dddddd;
  font-size: 12px;
  font-weight: 500;
}
#hud .hud-main {
  -webkit-text-stroke: 4px #000;
  paint-order: stroke fill;
}
#hud .hud-earth {
  font-family: "KeiFont", var(--font);
  letter-spacing: 0.02em;
}
#hud .hud-earth.has-after {
  margin-right: 0.35em;
}
#hud .hud-num {
  margin: 0 0.22em 0 0.28em;
  font-family: "KeiFont", var(--font);
  font-size: 24px;
  letter-spacing: 0.02em;
}
#hud #hud-num,
#hud #hud-num *,
#hud #hud-earth,
#hud #hud-earth * {
  text-shadow: none;
  -webkit-text-stroke: 0;
  paint-order: normal;
}
#hud .hud-earth .paint-label,
#hud .hud-num .paint-label {
  --paint-shadow-x: 0.075em;
  --paint-shadow-y: 0.0875em;
}
#hud .hud-earth .outer,
#hud .hud-num .outer {
  stroke-width: 0.375em;
}
#hud .hud-earth .gold,
#hud .hud-num .gold {
  stroke: #fff;
  stroke-width: 0.25em;
}
#hud .hud-earth .shadow,
#hud .hud-num .shadow {
  stroke-width: 0.075em;
}
#hud .hud-earth .inner,
#hud .hud-num .inner {
  stroke-width: 0.125em;
}
#hud .hud-earth .face {
  --paint-face: #00ffff;
}
#hud .hud-num .face {
  --paint-face: var(--light);
}
#search-message {
  word-break: auto-phrase;
  text-wrap: balance;
}
#search {
  position: fixed;
  top: var(--edge-top);
  right: var(--edge-right);
  width: min(360px, calc(100vw - 28px));
  font-size: 15px;
}
.search-box {
  display: flex;
  height: var(--control);
  border-radius: calc(var(--control) / 2);
  box-shadow: 3px 4px 1px rgba(0, 0, 0, 0.4);
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--ink-dark);
  border: 2px solid #ffffff;
  border-right: none;
  border-radius: calc(var(--control) / 2) 0 0 calc(var(--control) / 2);
  box-shadow: 0 0 1px 0.5px rgba(255, 255, 255, 0.45), inset 0 0 1px 0.5px rgba(255, 255, 255, 0.45);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  display: none;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.6;
  stroke-linecap: round;
  pointer-events: none;
}
#search-input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 2px 12px 0 20px;
  color: #ffffff;
  caret-color: var(--gold);
  background: transparent;
  border: none;
  border-radius: calc(var(--control) / 2) 0 0 calc(var(--control) / 2);
  font: inherit;
  outline: none;
}
#search-input::placeholder {
  color: #ffffff;
  opacity: 1;
}
#search-go {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: calc(var(--control) + 16px);
  padding: 0;
  color: var(--ink-dark);
  background: var(--ink-accent);
  margin-left: -2px;
  border: none;
  border-radius: 0 calc(var(--control) / 2) calc(var(--control) / 2) 0;
  box-shadow: 0 0 1px 0.5px rgba(153, 255, 0, 0.45);
  cursor: pointer;
}
#search-go:hover {
  background: #b8ff4d;
}
#search-go:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
#search-go svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
}
#search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2 L10 10 M10 2 L2 10' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 12px no-repeat;
  cursor: pointer;
}
.search-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 1px 0.5px rgba(153, 255, 0, 0.45), inset 0 0 1px 0.5px rgba(153, 255, 0, 0.45);
}
.search-field:focus-within .search-icon {
  display: block;
}
.search-field:focus-within #search-input {
  padding-left: 44px;
}
#search-results,
#search-message {
  margin: 10px 0 0;
  padding: 8px 0;
  list-style: none;
  background: var(--ink-dark);
  border-radius: 12px;
  box-shadow: 4px 12px 30px rgba(0, 0, 0, 0.55);
}
#search-results {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: rgba(236, 233, 247, 0.28) transparent;
}
#search-results li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  cursor: pointer;
}
#search-results li[aria-selected=true],
#search-results li[role=option]:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 2px 0 0 var(--gold);
}
#search-results .distance {
  flex: none;
  color: #dddddd;
  font-size: 12px;
  font-weight: 500;
}
#search-message {
  padding: 10px 16px;
  color: var(--muted);
}
#zoom-buttons {
  position: fixed;
  right: var(--edge-right);
  bottom: var(--edge-bottom);
  display: flex;
  flex-direction: column;
  align-items: center;
}
#zoom-buttons::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -90px -40px -40px -100px;
  background:
    radial-gradient(
      100% 100% at 100% 100%,
      var(--scrim),
      rgba(3, 4, 12, 0.45) 55%,
      rgba(3, 4, 12, 0));
  pointer-events: none;
}
#zoom-buttons button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--control);
  height: var(--control);
  padding: 0;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s;
}
#zoom-buttons button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px rgba(3, 4, 12, 0.95)) drop-shadow(0 0 5px rgba(3, 4, 12, 0.6));
}
#zoom-buttons #about,
#zoom-buttons #lang,
#zoom-buttons #home,
#zoom-buttons #boundaries,
#zoom-buttons #true-size {
  margin-bottom: 8px;
}
#lang-mark,
#about-mark,
#true-size-mark {
  font: 500 17px/1 var(--paint-font);
  text-shadow: var(--outline);
}
#true-size-mark {
  font-size: 14px;
}
#true-size[aria-pressed=true] #true-size-mark {
  color: var(--gold);
}
#zoom-buttons #boundaries svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.4;
}
#boundaries .off {
  display: none;
}
#boundaries[aria-pressed=false] svg {
  opacity: 0.6;
}
#boundaries[aria-pressed=false] .off {
  display: inline;
}
#zoom-buttons #home svg {
  width: 22px;
  height: 22px;
  stroke: #9fd8ff;
  stroke-width: 1.3;
}
#zoom-buttons #home .home-earth {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 1.5px rgba(2, 3, 10, 0.9));
}
#zoom-buttons button:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
#zoom-buttons button:active {
  background-color: rgba(255, 255, 255, 0.14);
}
#zoom-buttons button[data-tip] {
  position: relative;
}
#zoom-buttons button[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: 50%;
  right: calc(100% + 2px);
  padding: 6px 16px;
  color: var(--text);
  font: 500 13px/1.5 var(--paint-font);
  white-space: nowrap;
  text-shadow: var(--halo);
  background:
    radial-gradient(
      closest-side,
      var(--scrim),
      rgba(3, 4, 12, 0));
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
@media (hover: hover) {
  #zoom-buttons button[data-tip]:hover::after {
    opacity: 1;
    transition-delay: 0.35s;
  }
}
#zoom-buttons button[data-tip]:focus-visible::after {
  opacity: 1;
}
#zoom-gauge {
  position: relative;
  box-sizing: border-box;
  width: var(--control);
  height: 120px;
  border-radius: var(--radius);
  cursor: pointer;
}
#zoom-track {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 9px;
  transform: translateX(-50%);
  background:
    linear-gradient(rgba(236, 233, 247, 0.42), rgba(236, 233, 247, 0.42)) center / 1px 100% no-repeat,
    repeating-linear-gradient(
      to bottom,
      rgba(236, 233, 247, 0.42) 0 1px,
      transparent 1px calc((100% - 1px) / 6));
  filter: drop-shadow(0 0 1.5px rgba(3, 4, 12, 0.95));
}
#zoom-knob {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(3, 4, 12, 0.85);
  transform: translate(-50%, -50%);
}
#zoom-buttons button:focus-visible,
#zoom-gauge:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
#zoom-buttons button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#zoom-gauge {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
#about-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  max-height: min(84vh, 620px);
  padding: 20px 20px 40px;
  color: #fff;
  border: none;
  font-weight: 500;
  color-scheme: dark;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
#about-dialog::backdrop {
  background: rgba(3, 4, 12, 0.6);
}
#about-title {
  --title-u: calc(1em * 1.1 / 28);
  margin: 12px 28px 14px;
  font-size: clamp(28px, 9.5vw, 48px);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}
#about-title {
  --title-ch-1: #ff0000;
  --title-ch-2: #ff8000;
  --title-ch-3: #ffff00;
  --title-ch-4: #00ff00;
  --title-ch-5: #00ffff;
  --title-ch-6: #0080ff;
  --title-ch-7: #8000ff;
  --title-ch-8: #ff00ff;
  --title-ch-9: #ff00ff;
}
#about-title:lang(ja) {
  --title-ch-1: #ff8000;
  --title-ch-2: #ffff00;
  --title-ch-3: #00ffff;
  --title-ch-4: #ff00ff;
}
#about-title .paint-label {
  --paint-shadow-x: var(--title-u);
  --paint-shadow-y: var(--title-u);
}
#about-title .shadow,
#about-title .shadow-black,
#about-title .inner {
  stroke-width: calc(var(--title-u) * 2);
}
#about-title .rim-white {
  --title-fill: #fff;
  --title-stroke: #fff;
  stroke-width: calc(var(--title-u) * 5.8);
}
#about-title .rim-outer {
  stroke-width: calc(var(--title-u) * 7.8);
}
#about-title .rim-outer,
#about-title .shadow-black,
#about-title .inner {
  --title-fill: #000;
  --title-stroke: #000;
}
#about-title .face {
  --title-fill: #fff;
  --title-stroke: none;
}
#about-text p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  line-height: 1.8;
  word-break: auto-phrase;
  text-wrap: pretty;
}
#about-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}
#about-links a {
  padding: 4px 0;
  color: var(--ink-accent);
  text-underline-offset: 3px;
}
#about-links a:hover {
  color: #fff;
}
#about-note {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12.5px;
  text-align: center;
}
#about-note[hidden] {
  display: none;
}
#tap-message {
  position: fixed;
  z-index: 2;
  margin: 0;
  padding: 8px 18px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre;
  text-align: center;
  text-shadow: var(--outline);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease-out;
}
#tap-message.shown {
  opacity: 1;
}
#info-card {
  position: fixed;
  z-index: 3;
  box-sizing: border-box;
  width: 320px;
  max-height: min(60vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 12px;
  color: var(--text);
  background: #0a0914;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: rgba(236, 233, 247, 0.28) transparent;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
#info-card.shown {
  opacity: 1;
}
#info-card h2 {
  margin: 0 32px 0 0;
  color: #fbf8f1;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}
#info-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#info-title canvas {
  flex: none;
}
#info-card #info-sub {
  margin: 2px 0 0;
  color: #dddddd;
  font-size: 12px;
  font-weight: 500;
}
#info-card #info-sub:empty {
  display: none;
}
#info-facts {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}
#info-facts li {
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.75;
}
#info-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#info-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
#info-close:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.08);
}
#info-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 0;
}
#map.over-label {
  cursor: pointer;
}
#paint-open,
#paint-panel,
#painter-card,
#report-dialog,
#about-dialog,
#search {
  --ink-accent: #99ff00;
  --ink-dark: #17121f;
  font-family: var(--paint-font);
}
#paint-open {
  position: fixed;
  left: 50%;
  bottom: calc(var(--edge-bottom) - 6px);
  display: grid;
  place-items: center;
  width: 172px;
  height: 78px;
  padding: 0;
  color: #fff;
  background: none;
  border: none;
  filter: drop-shadow(3px 5px 6px rgba(0, 0, 0, 0.5));
  transform: translateX(-50%);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s cubic-bezier(0.3, 1.6, 0.5, 1);
}
#paint-open[hidden] {
  display: none;
}
#paint-open-count {
  position: absolute;
  top: -2px;
  right: 8px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  color: var(--ink-dark);
  background: var(--ink-accent);
  border: 2px solid #000;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
}
#paint-open-count[hidden] {
  display: none;
}
#paint-open:hover {
  transform: translateX(-50%) scale(1.06);
}
#paint-open:active {
  transform: translateX(-50%) scale(0.93);
  transition-duration: 0.06s;
}
#paint-open:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 40px;
}
.paint-splat,
.paint-label {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.paint-splat {
  --paint-splat-scale: 1.1;
  transform: scale(var(--paint-splat-scale));
}
.paint-splat .ink {
  fill: var(--swatch);
  stroke: #000;
  stroke-width: calc(2.5px / var(--paint-splat-scale));
}
.paint-splat .gloss {
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 4;
  stroke-linecap: round;
}
.paint-label {
  --paint-shadow-x: 2px;
  --paint-shadow-y: 2.2px;
  font-size: 27px;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.paint-label use {
  transform: translate(calc(var(--paint-shadow-x) * var(--i, 0) / 5), calc(var(--paint-shadow-y) * var(--i, 0) / 5));
}
.paint-label .outer {
  fill: #000;
  stroke: #000;
  stroke-width: 13px;
}
#paint-label-gold .top,
#paint-stamina-gold .top {
  stop-color: #fff;
}
#paint-label-gold .bottom,
#paint-stamina-gold .bottom {
  stop-color: #fff;
}
.paint-label .gold {
  fill: #fff;
  stroke: url(#paint-label-gold);
  stroke-width: 8px;
}
.paint-label .shadow {
  fill: #000;
  stroke: #000;
  stroke-width: 2px;
}
.paint-label .inner {
  fill: #000;
  stroke: #000;
  stroke-width: 4px;
}
.paint-label .face {
  --paint-face: var(--swatch, #fff);
  --paint-ch-1: var(--paint-face);
  --paint-ch-2: var(--paint-face);
  --paint-ch-3: var(--paint-face);
  --paint-ch-4: var(--paint-face);
  fill: var(--paint-face);
}
#paint-panel {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: var(--edge-bottom);
  box-sizing: border-box;
  padding: 14px 16px;
  color: #fff;
  transform: translateX(-50%);
  color-scheme: dark;
}
#paint-panel,
#about-dialog {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='40'%3E%3Cg opacity='.5'%3E%3Crect x='51' y='1' width='9' height='9' fill='%23ffff00'/%3E%3Crect x='41' y='11' width='9' height='9' fill='%23a8f01e'/%3E%3Crect x='51' y='11' width='9' height='9' fill='%2334b4ff'/%3E%3Crect x='31' y='21' width='9' height='9' fill='%23ffff00'/%3E%3Crect x='41' y='21' width='9' height='9' fill='%23ff00ff'/%3E%3Crect x='51' y='21' width='9' height='9' fill='%23a8f01e'/%3E%3Crect x='11' y='31' width='9' height='9' fill='%23ff7a1a'/%3E%3Crect x='21' y='31' width='9' height='9' fill='%2334b4ff'/%3E%3Crect x='31' y='31' width='9' height='9' fill='%2334b4ff'/%3E%3Crect x='41' y='31' width='9' height='9' fill='%23ff00ff'/%3E%3Crect x='51' y='31' width='9' height='9' fill='%23ff00ff'/%3E%3C/g%3E%3C/svg%3E") right bottom / 60px 40px no-repeat, var(--ink-dark, #17121f);
  border-radius: 18px;
  box-shadow: 4px 12px 30px rgba(0, 0, 0, 0.55);
}
#paint-panel[hidden] {
  display: none;
}
.paint-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 40px 14px 0;
  font-variant-numeric: tabular-nums;
}
#paint-stamina {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 15px;
  color: var(--ink-dark);
  background: var(--ink-accent);
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
#paint-stamina-max {
  position: relative;
  top: 1px;
  font-size: 15px;
}
#paint-stamina-max {
  margin-left: 1px;
}
.paint-stamina-word,
.paint-stamina-count,
.paint-rank-word,
.paint-rank-count {
  position: relative;
  top: 0.5px;
  font-size: 16px;
}
.paint-stamina-word {
  font-size: 15px;
  margin-right: 5px;
}
.paint-rank-word {
  top: 0.45px;
  margin-right: 1px;
  font-size: 15px;
}
:root[lang=en] .paint-rank-word {
  top: 0.5px;
}
.paint-rank-count {
  top: 0.69px;
  font-size: 19px;
}
#paint-stamina-label,
#paint-stamina-text,
#paint-rank-label,
#paint-rank-number {
  color: transparent;
}
#paint-stamina .paint-label,
#paint-rank .paint-label {
  --paint-shadow-x: 1.2px;
  --paint-shadow-y: 1.4px;
  font-size: inherit;
}
#paint-stamina .outer,
#paint-rank .outer {
  stroke-width: 7px;
}
#paint-stamina .gold,
#paint-rank .gold {
  stroke: url(#paint-stamina-gold);
  stroke-width: 5px;
}
#paint-stamina .shadow,
#paint-rank .shadow {
  stroke-width: 1.2px;
}
#paint-stamina .inner,
#paint-rank .inner {
  stroke-width: 2px;
}
#paint-stamina .face {
  --paint-face: #04ff00;
}
#paint-rank .face {
  --paint-face: #00ffff;
}
#paint-stamina .paint-stamina-word .face {
  --paint-face: #ffff00;
}
#paint-rank .paint-rank-word .face {
  --paint-face: #ffff00;
}
#paint-next {
  position: relative;
  top: 1px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
}
#paint-close,
#about-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#paint-close svg,
#about-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
#paint-close:hover,
#about-close:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
#paint-palette {
  display: grid;
  grid-template-columns: repeat(16, 28px);
  gap: 6px;
}
.swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  background:
    radial-gradient(
      circle at 34% 30%,
      rgba(255, 255, 255, 0.6) 0 12%,
      rgba(255, 255, 255, 0) 32%),
    var(--swatch);
  border: none;
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.14);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.swatch:hover {
  transform: scale(1.12);
}
.swatch[aria-checked=true] {
  outline: 3px solid #fff;
  outline-offset: 2px;
  transform: scale(1.1);
}
.swatch.eraser {
  background:
    linear-gradient(
      135deg,
      transparent 0 43%,
      #ff0000 43% 57%,
      transparent 57%),
    #fff;
}
.paint-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
#paint-status {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  font-weight: 500;
  word-break: auto-phrase;
  text-wrap: balance;
}
#paint-cancel,
#paint-commit {
  position: relative;
  height: 32px;
  padding: 2px 20px 0;
  font: 500 15px/1 var(--paint-font);
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#paint-cancel::before,
#paint-commit::before {
  content: "";
  position: absolute;
  inset: -6px 0;
}
#paint-cancel {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
#paint-cancel:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
#paint-commit {
  min-width: 120px;
  color: var(--ink-dark);
  background: var(--ink-accent);
  border-radius: 999px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.4);
  font-variant-numeric: tabular-nums;
  transition: transform 0.14s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.08s;
}
#paint-commit:hover:not(:disabled) {
  transform: scale(1.05);
}
#paint-commit:active:not(:disabled) {
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
  transform: translate(1px, 2px);
}
#paint-cancel:disabled,
#paint-commit:disabled {
  opacity: 0.35;
  cursor: default;
}
#paint-close:focus-visible,
#about-close:focus-visible,
#about-links a:focus-visible,
.swatch:focus-visible,
#paint-cancel:focus-visible,
#paint-commit:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
#paint-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
}
#paint-account[hidden] {
  display: none;
}
#paint-account-label {
  margin-left: auto;
}
#paint-account-label[hidden],
#paint-logout[hidden],
#paint-login-open[hidden] {
  display: none;
}
#paint-rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  white-space: nowrap;
}
#paint-rank[hidden] {
  display: none;
}
.rank-bar {
  width: 44px;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
#paint-rank .rank-bar {
  position: relative;
  top: -0.565px;
  width: 64px;
  height: 8px;
  margin-left: 6px;
  border-radius: 4px;
}
#paint-rank-fill,
#paint-profile-rank-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink-accent);
  border-radius: inherit;
}
#rank-up {
  position: fixed;
  z-index: 10;
  left: 50%;
  top: 40%;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #fff;
  font-family: var(--paint-font);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow:
    2px 0 0 #000,
    -2px 0 0 #000,
    0 2px 0 #000,
    0 -2px 0 #000,
    1.5px 1.5px 0 #000,
    -1.5px 1.5px 0 #000,
    1.5px -1.5px 0 #000,
    -1.5px -1.5px 0 #000,
    3px 4px 0 rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%);
}
#rank-up-title {
  font-size: 30px;
}
#rank-up-photons {
  color: #99ff00;
  font-size: 24px;
}
#rank-up-photons:empty {
  display: none;
}
#rank-up.show {
  visibility: visible;
  animation: rank-up 2.4s forwards;
}
@keyframes rank-up {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
  16% {
    transform: translate(-50%, -50%) scale(1);
  }
  82% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -62%) scale(1);
  }
}
#paint-logout,
#paint-login-open {
  position: relative;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#paint-logout::before,
#paint-login-open::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
}
#paint-logout:hover:not(:disabled),
#paint-login-open:hover {
  color: #fff;
}
#paint-logout:disabled {
  opacity: 0.5;
  cursor: default;
}
#paint-panel.login-mode #paint-stamina,
#paint-panel.login-mode #paint-next,
#paint-panel.login-mode #paint-rank,
#paint-panel.login-mode #paint-palette,
#paint-panel.login-mode .paint-foot {
  display: none;
}
#paint-panel.login-mode .paint-head {
  margin: 0;
}
#paint-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: 340px;
  max-width: 100%;
  padding: 6px 0 2px;
  text-align: center;
}
#paint-login[hidden] {
  display: none;
}
#paint-login-title {
  margin: 0 36px;
  font-size: 18px;
  font-weight: 500;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}
#paint-login-status {
  min-height: 1.5em;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  word-break: auto-phrase;
  text-wrap: balance;
}
#paint-login-agree {
  justify-self: stretch;
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11.5px;
  line-height: 1.6;
  word-break: auto-phrase;
  text-wrap: balance;
}
#paint-login-agree a {
  color: rgba(255, 255, 255, 0.85);
  text-underline-offset: 2px;
}
#paint-login-merit,
#paint-login-safe {
  justify-self: stretch;
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  line-height: 1.6;
  word-break: auto-phrase;
  text-wrap: balance;
}
#paint-login-merit[hidden] {
  display: none;
}
#paint-login-back[hidden] {
  display: none;
}
#paint-login-back:not([hidden]) + #paint-login-title {
  margin: 0 76px;
}
#paint-guest {
  position: relative;
  height: 40px;
  padding: 2px 20px 0;
  color: var(--ink-accent);
  background: none;
  border: 2px solid var(--ink-accent);
  border-radius: 999px;
  font: 500 14px/1 var(--paint-font);
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#paint-guest[hidden] {
  display: none;
}
#paint-guest:hover:not(:disabled) {
  color: var(--ink-dark);
  background: var(--ink-accent);
}
#paint-guest:disabled {
  opacity: 0.38;
  cursor: default;
}
#paint-turnstile {
  display: grid;
  place-items: center;
  min-height: 65px;
}
#paint-turnstile[hidden] {
  display: none;
}
#paint-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 12px;
  color: #e3e3e3;
  background: #131314;
  border: 1px solid #8e918f;
  border-radius: 20px;
  font: 500 14px/20px system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.google-logo {
  flex: none;
  width: 20px;
  height: 20px;
  overflow: hidden;
}
.google-logo img {
  display: block;
  margin: -10px;
}
#paint-google {
  position: relative;
}
#paint-google::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(227, 227, 227, 0.08);
  opacity: 0;
  pointer-events: none;
}
#paint-google:hover:not(:disabled)::after {
  opacity: 1;
}
#paint-google:disabled {
  opacity: 0.38;
  cursor: default;
}
#paint-logout:focus-visible,
#paint-login-open:focus-visible,
#paint-google:focus-visible,
#paint-guest:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
#paint-profile-open,
#paint-places-open {
  position: relative;
  height: 26px;
  padding: 2px 14px 0;
  color: var(--ink-accent);
  background: none;
  border: 2px solid var(--ink-accent);
  border-radius: 999px;
  font: 500 13px/1 var(--paint-font);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#paint-profile-open::before,
#paint-places-open::before {
  content: "";
  position: absolute;
  inset: -11px -2px;
}
#paint-profile-open:hover,
#paint-places-open:hover {
  color: var(--ink-dark);
  background: var(--ink-accent);
}
#paint-panel.profile-mode #paint-stamina,
#paint-panel.profile-mode #paint-next,
#paint-panel.profile-mode #paint-rank,
#paint-panel.profile-mode #paint-palette,
#paint-panel.profile-mode .paint-foot,
#paint-panel.profile-mode #paint-account,
#paint-panel.places-mode #paint-stamina,
#paint-panel.places-mode #paint-next,
#paint-panel.places-mode #paint-rank,
#paint-panel.places-mode #paint-palette,
#paint-panel.places-mode .paint-foot,
#paint-panel.places-mode #paint-account {
  display: none;
}
#paint-panel.profile-mode .paint-head,
#paint-panel.places-mode .paint-head {
  margin: 0;
}
#paint-profile,
#paint-places {
  display: grid;
  gap: 8px;
  box-sizing: border-box;
  width: 420px;
  max-width: 100%;
  padding-top: 1px;
}
#paint-profile[hidden],
#paint-places[hidden] {
  display: none;
}
#paint-profile-title,
#paint-places-title {
  margin: 0 76px 2px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}
#paint-profile-back,
#paint-places-back,
#paint-login-back {
  position: absolute;
  top: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 2px 12px 0 8px;
  color: rgba(255, 255, 255, 0.75);
  background: none;
  border: none;
  border-radius: 999px;
  font: 500 13px/1 var(--paint-font);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#paint-profile-back svg,
#paint-places-back svg,
#paint-login-back svg {
  width: 14px;
  height: 14px;
  margin-top: -2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#paint-profile-back:hover,
#paint-places-back:hover,
#paint-login-back:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
.profile-body,
.places-body {
  display: grid;
  gap: 6px;
  max-height: calc(100dvh - var(--edge-bottom) - 190px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.panel-heading {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  font-weight: 500;
}
.panel-button {
  position: relative;
  min-width: 84px;
  height: 30px;
  padding: 2px 14px 0;
  color: var(--ink-dark);
  background: var(--ink-accent);
  border: none;
  border-radius: 999px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.4);
  font: 500 14px/1 var(--paint-font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.08s;
}
.panel-button::before {
  content: "";
  position: absolute;
  inset: -7px 0;
}
.panel-button:hover:not(:disabled) {
  transform: scale(1.05);
}
.panel-button:active:not(:disabled) {
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
  transform: translate(1px, 2px);
}
.panel-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.panel-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  font-weight: 500;
  word-break: auto-phrase;
  text-wrap: balance;
}
.panel-hint[hidden] {
  display: none;
}
#paint-profile-status,
#paint-places-status {
  min-height: 1.5em;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  word-break: auto-phrase;
  text-wrap: balance;
}
#paint-profile-open:focus-visible,
#paint-places-open:focus-visible,
.panel-button:focus-visible,
#paint-profile-back:focus-visible,
#paint-places-back:focus-visible,
#paint-login-back:focus-visible,
#paint-profile-name-default:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.places-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.place-item {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px 8px 8px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.place-item:hover {
  background: rgba(255, 255, 255, 0.12);
}
.place-item:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.place-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  image-rendering: pixelated;
}
.place-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.place-main {
  font-size: 14px;
  font-weight: 500;
}
.place-sub,
.place-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}
.place-main,
.place-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.places-past .place-item {
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.03);
}
.places-past .place-sub,
.places-past .place-meta {
  color: rgba(255, 255, 255, 0.45);
}
#paint-profile-rank {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
}
#paint-profile-rank-label {
  color: #fff;
  font-size: 16px;
}
:lang(ja) .inline-num {
  position: relative;
  top: 0.08em;
}
#paint-profile-rank .rank-bar {
  flex: 1;
  max-width: 140px;
}
#paint-profile-likes,
#paint-profile-name-now {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
#paint-profile-likes {
  display: flex;
  align-items: center;
  padding: 3px 0 4px;
}
#paint-profile-likes .like-word {
  margin-left: 5px;
  font-size: 17px;
}
#paint-profile-likes .like-mark {
  position: relative;
  top: -1.9px;
  margin-left: 3.4px;
}
#paint-profile-likes .like-count {
  top: 0.6px;
  margin-left: 10px;
  font-size: 20px;
}
#paint-profile-likes .like-count .face {
  --paint-face: var(--ink-accent);
}
.profile-name-form {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 2px 0 0;
}
#paint-profile-name-input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 34px;
  box-sizing: border-box;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font: 500 15px/1 system-ui, sans-serif;
}
#paint-profile-name-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
#paint-profile-name-input:focus-visible {
  outline: 2px solid var(--ink-accent);
  outline-offset: 1px;
}
#paint-profile-name-input:disabled {
  opacity: 0.45;
}
#paint-profile-name-default {
  position: relative;
  justify-self: start;
  margin: 2px 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  font: 500 12.5px var(--paint-font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#paint-profile-name-default::before {
  content: "";
  position: absolute;
  inset: -12px -6px;
}
#paint-profile-name-default:hover:not(:disabled) {
  color: #fff;
}
#paint-profile-name-default:disabled {
  opacity: 0.35;
  cursor: default;
}
.profile-name-form[hidden],
#paint-profile-confirm[hidden] {
  display: none;
}
#paint-profile-confirm {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 2px 0 0;
  padding: 12px 14px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  text-align: center;
}
#paint-profile-confirm-question {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
}
#paint-profile-confirm-name {
  max-width: 100%;
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.profile-confirm-buttons {
  display: flex;
  gap: 12px;
  margin: 0;
}
#paint-profile-confirm-no,
#report-cancel {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.profile-leave {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
#paint-profile-leave {
  position: relative;
  padding: 0;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: none;
  font: 500 11.5px var(--paint-font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#paint-profile-leave::before {
  content: "";
  position: absolute;
  inset: -10px -6px;
}
#paint-profile-leave:hover:not(:disabled) {
  color: rgba(255, 255, 255, 0.85);
}
#paint-profile-leave:disabled {
  opacity: 0.35;
  cursor: default;
}
#paint-profile-leave:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.profile-body[hidden],
#paint-profile-leave-confirm[hidden],
.profile-leave-notes[hidden] {
  display: none;
}
#paint-profile-leave-confirm {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}
#paint-profile-leave-question {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}
.profile-leave-notes {
  display: grid;
  gap: 4px;
  margin: 0 0 4px;
  padding: 0 0 0 1.2em;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  word-break: auto-phrase;
}
#paint-profile-leave-confirm .profile-confirm-buttons {
  align-items: center;
}
#paint-profile-leave-cancel {
  min-width: 120px;
  height: 34px;
  font-size: 15px;
}
#paint-profile-leave-yes {
  min-width: 0;
  background: #ff4040;
  font-size: 13px;
}
#paint-profile-leave-yes.waiting {
  visibility: hidden;
}
#painter-card {
  position: fixed;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "text report" "text like";
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
  max-width: 280px;
  padding: 8px 14px 9px;
  color: #fff;
  background: var(--ink-dark);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 3px 8px 20px rgba(0, 0, 0, 0.5);
  font-family: var(--paint-font);
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease-out;
}
#painter-card[hidden] {
  display: none;
}
#painter-card.shown {
  opacity: 1;
}
#painter-card.reportable {
  pointer-events: auto;
}
#painter-card:not(.reportable) {
  gap: 0;
}
.painter-card-text {
  grid-area: text;
  display: grid;
  gap: 2px;
  min-width: 0;
}
#painter-card-title {
  color: #fff;
  font-size: 12px;
  text-shadow:
    1px 0 0 #000,
    -1px 0 0 #000,
    0 1px 0 #000,
    0 -1px 0 #000,
    0.7px 0.7px 0 #000,
    -0.7px 0.7px 0 #000,
    0.7px -0.7px 0 #000,
    -0.7px -0.7px 0 #000;
}
#painter-card-name {
  color: #04ff00;
  font-size: 15px;
  overflow-wrap: anywhere;
}
#painter-card-like,
#painter-card-report {
  position: relative;
  padding: 4px 10px 3px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font: 500 12px/1.2 var(--paint-font);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#painter-card-like::before,
#painter-card-report::before {
  content: "";
  position: absolute;
  inset: -10px -8px;
}
#painter-card-report::before {
  bottom: -1px;
}
#painter-card-like::before {
  top: -1px;
}
#painter-card-like:hover:not(:disabled),
#painter-card-report:hover {
  background: rgba(255, 255, 255, 0.2);
}
#painter-card-like:focus-visible,
#painter-card-report:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
#painter-card-like {
  grid-area: like;
  display: flex;
  align-items: center;
  gap: 3.4px;
  padding: 6px 16px 5px 15px;
  font-size: 17px;
}
#painter-card-like[hidden] {
  display: none;
}
.like-word {
  position: relative;
}
.like-word-text {
  color: transparent;
}
.like-word .paint-label {
  --paint-shadow-x: 1.2px;
  --paint-shadow-y: 1.4px;
  font-size: inherit;
}
.like-word .outer {
  stroke-width: 7px;
}
.like-word .gold {
  stroke: #fff;
  stroke-width: 5px;
}
.like-word .shadow {
  stroke-width: 1.2px;
}
.like-word .inner {
  stroke-width: 2px;
}
.like-word .face {
  --paint-face: #ff8000;
}
.like-mark {
  font-size: 17px;
  filter: url(#like-mark-rim);
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
#painter-card-like[aria-pressed=true] {
  background: var(--ink-accent);
  border-color: var(--ink-accent);
  cursor: default;
}
#painter-card-report {
  grid-area: report;
  justify-self: end;
  align-self: start;
  margin: -2px -6px 0 0;
  padding: 2px 8px 1px;
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
}
#report-dialog {
  width: min(360px, calc(100% - 32px));
  box-sizing: border-box;
  padding: 18px 18px 16px;
  color: #fff;
  background: var(--ink-dark);
  border: none;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 4px 10px 28px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}
#report-dialog::backdrop {
  background: rgba(3, 4, 12, 0.6);
}
#report-form {
  display: grid;
  gap: 10px;
  margin: 0;
}
#report-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}
#report-about,
#report-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
#report-note {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}
#report-kinds {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
}
#report-kinds[hidden],
.report-kind[hidden] {
  display: none;
}
#report-kinds legend {
  margin: 0 0 6px;
  padding: 0;
  font-size: 13px;
}
.report-kind {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}
.report-kind:has(input:checked) {
  background: rgba(153, 255, 0, 0.14);
  box-shadow: inset 0 0 0 1.5px var(--ink-accent);
}
.report-kind input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink-accent);
}
#report-status {
  min-height: 1.5em;
  margin: 0;
  font-size: 13px;
  text-align: center;
  word-break: auto-phrase;
}
.report-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 2px 0 0;
}
.painting:not(.paint-login):not(.paint-profile):not(.paint-places) #map:not(.dragging) {
  cursor: crosshair;
}
@media (prefers-reduced-motion: reduce) {
  #paint-open,
  .swatch,
  #paint-commit,
  .panel-button {
    transition: none;
  }
  #rank-up.show {
    animation-name: rank-up-fade;
  }
}
@keyframes rank-up-fade {
  0%, 100% {
    opacity: 0;
  }
  8%, 85% {
    opacity: 1;
  }
}
@media (max-width: 720px) {
  #paint-panel {
    left: var(--edge-left);
    right: calc(var(--edge-right) + var(--control) + 8px);
    padding: 12px;
    transform: none;
  }
  #paint-palette {
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
  }
  .swatch {
    width: auto;
    height: auto;
    aspect-ratio: 1;
  }
  #paint-cancel,
  #paint-commit {
    height: 36px;
  }
  #paint-profile-back,
  #paint-places-back,
  #paint-login-back {
    height: 44px;
  }
  #paint-profile,
  #paint-places {
    padding-top: 7px;
  }
  .panel-button {
    min-width: 72px;
  }
  #paint-commit {
    min-width: 0;
  }
  #paint-close {
    width: 44px;
    height: 44px;
  }
  .paint-head {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  #paint-rank {
    flex-basis: 100%;
    margin-left: 0;
  }
}
@media (max-width: 720px) {
  #search {
    left: var(--edge-left);
    width: auto;
  }
  #hud {
    top: calc(var(--edge-top) + var(--control) + 14px);
  }
  #hud .hud-main {
    font-size: 17px;
  }
  #hud .hud-main .num {
    font-size: 23px;
  }
  #hud .hud-num,
  #hud-location::after {
    font-size: 20px;
  }
  #zoom-gauge {
    height: 80px;
  }
  #info-card {
    top: auto;
    left: var(--edge-left);
    right: var(--edge-right);
    bottom: var(--edge-bottom);
    width: auto;
    max-height: 45vh;
  }
  #info-facts {
    margin-top: 15px;
  }
  #info-facts li {
    padding: 3px 0;
  }
}
@media (max-width: 720px), (pointer: coarse) {
  :root {
    --control: 48px;
  }
  #search-input {
    font-size: 16px;
  }
  #info-close {
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
  }
}
@media (pointer: coarse) {
  #search-results li {
    padding: 13px 16px;
  }
}
@media (max-height: 520px) {
  #zoom-buttons #lang,
  #zoom-buttons #home,
  #zoom-buttons #boundaries {
    margin-bottom: 4px;
  }
  #zoom-buttons #about {
    position: absolute;
    top: 0;
    right: 100%;
    margin: 0 4px 0 0;
  }
  #zoom-buttons #true-size {
    position: absolute;
    top: calc(var(--control) + 4px);
    right: 100%;
    margin: 0 4px 0 0;
  }
  #zoom-gauge {
    height: 56px;
  }
  #zoom-track {
    top: 6px;
    bottom: 6px;
  }
  #paint-login {
    gap: 8px;
  }
  #paint-login.offer {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    column-gap: 8px;
  }
  #paint-login.offer > * {
    grid-column: 1 / -1;
  }
  #paint-login.offer > #paint-google {
    grid-column: 1;
    justify-self: end;
  }
  #paint-login.offer > #paint-guest {
    grid-column: 2;
    justify-self: start;
    padding: 2px 14px 0;
    font-size: 13px;
  }
}
#loading {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background:
    radial-gradient(
      ellipse at center,
      #0c0a1e 0%,
      #03040c 72%);
  color: var(--muted);
  transition: opacity 0.6s ease;
}
#loading.done {
  opacity: 0;
  pointer-events: none;
}
#loading[hidden] {
  display: none;
}
.loading-orbit {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(127, 240, 200, 0.4);
  border-radius: 50%;
  animation: loading-orbit 3.2s linear infinite;
}
.loading-orbit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #ffe9b8;
  box-shadow: 0 0 10px 3px rgba(255, 217, 138, 0.75), 0 0 28px 8px rgba(255, 217, 138, 0.25);
}
.loading-earth {
  position: absolute;
  top: -3.5px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #9fe2ff;
  box-shadow: 0 0 8px 1px rgba(111, 214, 255, 0.8);
}
.loading-text {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}
@keyframes loading-orbit {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-orbit {
    animation: none;
  }
  #loading,
  #tap-message,
  #painter-card,
  #zoom-buttons button[data-tip]::after {
    transition: none;
  }
}
