:root {
  --ink: #0a0b0c;
  --ink-raised: #101215;
  --ink-soft: #15181b;
  --paper: #eee9de;
  --paper-soft: #c9c4b8;
  --muted: #8f8c84;
  --muted-warm: #a39b8b;
  --line: rgba(238, 233, 222, 0.13);
  --line-strong: rgba(238, 233, 222, 0.25);
  --red: #b23a2f;
  --red-bright: #d35648;
  --red-dark: #71251f;
  --gold: #b8924e;
  --gold-soft: #d2b477;
  --sakura: #e8b4b8;
  --sakura-deep: #c96a86;
  --green: #789463;
  --indigo: #4f628f;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --shell: 1400px;
  --gutter: clamp(1.1rem, 4vw, 4rem);
  --header: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 4%, rgba(201, 106, 134, 0.085), transparent 30rem),
    radial-gradient(circle at 12% 42%, rgba(184, 146, 78, 0.045), transparent 28rem),
    radial-gradient(circle at 70% 78%, rgba(178, 58, 47, 0.05), transparent 34rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.035em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

body::before {
  position: fixed;
  z-index: 90;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

#sakura {
  position: fixed;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-wrap: balance;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(100%, calc(var(--shell) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.number {
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gold-soft);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 1px;
  background: var(--gold);
  content: "";
}

.scroll-progress {
  position: fixed;
  z-index: 60;
  top: calc(var(--header) - 1px);
  right: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--sakura));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    color 200ms var(--ease),
    transform 200ms var(--ease),
    opacity 200ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff8ef;
}

.btn--primary:hover:not(:disabled) {
  border-color: var(--red-bright);
  background: var(--red-bright);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn--discord {
  border-color: rgba(120, 140, 190, 0.55);
  background: rgba(79, 98, 143, 0.2);
  color: #dfe4f4;
}

.btn--discord:hover {
  border-color: #8fa2d0;
  background: rgba(79, 98, 143, 0.32);
  color: #fff;
}

.btn:disabled,
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 10, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background-color 250ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 9, 10, 0.94);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: cover;
  border: 1px solid rgba(238, 233, 222, 0.28);
  box-shadow: 0 0 0 3px rgba(184, 146, 78, 0.06);
}

.brand__text {
  display: grid;
  gap: 0.05rem;
  line-height: 1.2;
}

.brand__text strong {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.47rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 1.9rem);
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.header-nav a {
  color: var(--paper-soft);
  transition: color 200ms var(--ease);
}

.header-nav a:hover {
  color: var(--gold-soft);
}

.header-nav__back {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.12rem;
}

.header-account {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding-left: 1.3rem;
  border-left: 1px solid var(--line);
  font-size: 0.64rem;
}

.header-account__login {
  border-bottom: 1px solid rgba(143, 162, 208, 0.6);
  padding-bottom: 0.1rem;
  color: #ccd4ea;
}

.header-account__login:hover {
  color: #fff;
}

.header-account__login.is-disabled {
  border-bottom-color: var(--line-strong);
  color: var(--muted);
  cursor: not-allowed;
}

.header-account__user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--paper-soft);
}

.header-account__user img {
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(238, 233, 222, 0.28);
  border-radius: 50%;
  object-fit: cover;
}

.header-account__logout {
  margin-left: 0.15rem;
  color: var(--muted);
  font-size: 0.58rem;
}

.header-account__logout:hover {
  color: var(--gold-soft);
}

main {
  position: relative;
  padding-top: var(--header);
}

section[id] {
  scroll-margin-top: calc(var(--header) + 1rem);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 8rem) clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 32%, rgba(201, 106, 134, 0.11), transparent 27rem),
    radial-gradient(circle at 18% 80%, rgba(178, 58, 47, 0.07), transparent 30rem),
    linear-gradient(180deg, rgba(238, 233, 222, 0.025), transparent 58%);
}

.hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgba(238, 233, 222, 0.03) 49.9% 50.1%, transparent 50.1%),
    linear-gradient(rgba(238, 233, 222, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 64px;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  pointer-events: none;
}

.hero__sun {
  position: absolute;
  top: 17%;
  right: 7%;
  width: min(34vw, 27rem);
  aspect-ratio: 1;
  border: 1px solid rgba(178, 58, 47, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.hero__sun::before,
.hero__sun::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero__sun::before {
  inset: 9%;
  border: 1px solid rgba(201, 106, 134, 0.12);
}

.hero__sun::after {
  inset: 24%;
  background: radial-gradient(circle, rgba(178, 58, 47, 0.16), rgba(201, 106, 134, 0.05) 58%, transparent 70%);
}

.hero__seigaiha {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  background-image: radial-gradient(
    circle at 50% 100%,
    transparent 0 17%,
    rgba(238, 233, 222, 0.055) 17.4% 18%,
    transparent 18.4% 27%,
    rgba(238, 233, 222, 0.04) 27.4% 28%,
    transparent 28.4% 37%,
    rgba(238, 233, 222, 0.028) 37.4% 38%,
    transparent 38.4%
  );
  background-size: 120px 60px;
  mask-image: linear-gradient(180deg, transparent, black 40%, black 100%);
  opacity: 0.9;
  pointer-events: none;
}

.hero__branch {
  position: absolute;
  z-index: 0;
  top: -1rem;
  right: 1.5vw;
  width: min(36vw, 31rem);
  height: auto;
  color: var(--sakura-deep);
  opacity: 0.2;
  transform-origin: 100% 0;
  animation: branch-sway 17s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes branch-sway {
  from {
    transform: rotate(-0.45deg) translateY(-5px);
  }
  to {
    transform: rotate(0.7deg) translateY(7px);
  }
}

.hero__vertical {
  position: absolute;
  z-index: 1;
  top: clamp(6.5rem, 12vw, 10.5rem);
  right: clamp(1.1rem, 2.4vw, 2.4rem);
  border-right: 1px solid rgba(232, 180, 184, 0.22);
  padding-right: 0.55rem;
  color: rgba(232, 180, 184, 0.45);
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  letter-spacing: 0.5em;
  line-height: 1.9;
  writing-mode: vertical-rl;
  text-orientation: upright;
  pointer-events: none;
}

.hero__blossoms {
  fill: var(--sakura);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(15rem, 0.64fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hero__copy {
  max-width: 52rem;
}

.hero h1 {
  margin-top: clamp(1.8rem, 3.5vw, 3rem);
  font-size: clamp(3rem, 7.4vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.05;
}

.hero h1 span {
  color: var(--gold-soft);
  background-image: linear-gradient(
    transparent 83%,
    rgba(178, 58, 47, 0.68) 83%,
    rgba(178, 58, 47, 0.68) 91%,
    transparent 91%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.hero__lede {
  max-width: 34rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--paper-soft);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 2.05;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.hero__note {
  max-width: 34rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.9;
}

.hero__note strong {
  color: var(--sakura);
  font-weight: 500;
}

.hero__emblem {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  padding-top: clamp(1rem, 3vw, 2.5rem);
}

.hero__emblem figure {
  position: relative;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.hero__emblem-frame {
  position: relative;
  display: block;
  width: clamp(11rem, 17vw, 15.5rem);
  padding: 0.65rem;
  border: 1px solid rgba(184, 146, 78, 0.5);
  background: rgba(10, 11, 12, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(238, 233, 222, 0.08),
    0 1.5rem 4rem rgba(0, 0, 0, 0.25);
}

.hero__emblem-frame::before,
.hero__emblem-frame::after {
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  border-color: var(--gold-soft);
  border-style: solid;
  content: "";
  opacity: 0.72;
}

.hero__emblem-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.hero__emblem-frame::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.hero__emblem-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero__emblem figcaption {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.5rem;
  letter-spacing: 0.17em;
}

.hero__emblem figcaption span:last-child {
  color: var(--paper-soft);
  letter-spacing: 0.08em;
}

.hero__emblem > p {
  max-width: 15rem;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.8;
  text-align: center;
}

.hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}

.hero__stats div {
  display: grid;
  min-width: 9rem;
  gap: 0.15rem;
  padding: 1rem clamp(1.2rem, 3.5vw, 3rem) 0 0;
}

.hero__stats div + div {
  padding-left: clamp(1.2rem, 3.5vw, 3rem);
  border-left: 1px solid var(--line);
}

.hero__stats dt {
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.hero__stats dd {
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero__scale {
  padding-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.hero__scale span {
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.flow {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(238, 233, 222, 0.018), transparent),
    rgba(16, 18, 21, 0.28);
}

.flow__head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

.flow__head h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
}

.flow__lede {
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.95;
}

.flow__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.flow__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.6rem clamp(1rem, 2.5vw, 2rem) 0;
  border-left: 1px solid var(--line);
}

.flow__list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.flow__num {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.2;
}

.flow__list h3 {
  font-size: 1.05rem;
}

.flow__list p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.85;
}

.workspace {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.workspace__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.workspace__head h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
}

.workspace__hint {
  max-width: 29rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.85;
  text-align: right;
}

.workspace__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 0.72fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}

.map-panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0d1011;
  box-shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.18);
}

.map-panel::before {
  position: absolute;
  z-index: 2;
  inset: 5px;
  border: 1px solid rgba(184, 146, 78, 0.1);
  content: "";
  pointer-events: none;
}

.map-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.map-toolbar__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper-soft);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-toolbar__dot {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--sakura);
  box-shadow: 0 0 0 3px rgba(201, 106, 134, 0.12);
}

.map-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.map-toolbar__controls button {
  display: grid;
  min-width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper-soft);
  font-size: 0.68rem;
  cursor: pointer;
  transition:
    border-color 200ms var(--ease),
    color 200ms var(--ease),
    background-color 200ms var(--ease);
}

.map-toolbar__controls button:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(184, 146, 78, 0.08);
  color: var(--gold-soft);
}

.map-toolbar__controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.map-toolbar__controls span {
  min-width: 2.7rem;
  color: var(--muted);
  font-size: 0.58rem;
  text-align: center;
}

#resetView {
  width: auto;
  padding-inline: 0.55rem;
  font-size: 0.56rem;
}

.map-scroll {
  position: relative;
  overflow: auto;
  height: min(79vh, 940px);
  background:
    radial-gradient(ellipse at 52% 42%, rgba(80, 104, 67, 0.14), transparent 56%),
    radial-gradient(ellipse at 50% 80%, rgba(201, 106, 134, 0.045), transparent 50%),
    #0b0e0f;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.map-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.map-scroll::-webkit-scrollbar-thumb {
  background: rgba(184, 146, 78, 0.7);
}

.map-stage {
  width: 100%;
  padding: 1.2rem;
}

.map-stage svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.land-shape {
  fill: #1a241b;
  stroke: rgba(210, 180, 119, 0.5);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.cell {
  fill: rgba(128, 151, 98, 0.14);
  stroke: transparent;
  stroke-width: 0.18;
  shape-rendering: geometricPrecision;
  cursor: crosshair;
  transition:
    fill 120ms ease,
    opacity 120ms ease;
}

.map-stage.is-fine .cell {
  stroke: rgba(205, 215, 178, 0.16);
}

.cell:hover {
  fill: rgba(232, 180, 184, 0.52);
}

.cell.is-claimed {
  fill: var(--claim-color, #b23a2f);
  stroke: rgba(10, 11, 12, 0.48);
  stroke-width: 0.22;
  cursor: pointer;
}

.map-stage.is-fine .cell.is-claimed {
  stroke: rgba(238, 233, 222, 0.22);
}

.cell.is-claimed:hover {
  filter: brightness(1.16);
}

.cell.is-overlap {
  stroke: rgba(255, 248, 239, 0.68);
  stroke-width: 0.34;
}

.cell.is-selected {
  fill: var(--sakura);
  stroke: #fff8ef;
  stroke-width: 0.42;
}

.cell.is-selected.is-shared {
  stroke: var(--gold-soft);
  stroke-width: 0.6;
  stroke-dasharray: 1.1 0.7;
}

.cell.is-active-claim {
  stroke: #fff;
  stroke-width: 0.8;
}

.map-loading {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(10, 11, 12, 0.88);
  color: var(--muted);
  font-size: 0.65rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-loading.is-done {
  display: none;
}

.map-legend {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.6;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-swatch {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  border: 1px solid rgba(238, 233, 222, 0.2);
}

.legend-swatch--free {
  background: rgba(128, 151, 98, 0.5);
}

.legend-swatch--selected {
  background: var(--sakura);
}

.legend-swatch--claimed {
  background: var(--red);
}

.legend-swatch--overlap {
  background:
    repeating-linear-gradient(45deg, var(--red) 0 2px, #f0e5dc 2px 4px);
}

.claim-panel {
  position: sticky;
  top: calc(var(--header) + 1rem);
  max-height: calc(100vh - var(--header) - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(238, 233, 222, 0.018), transparent 30%),
    #101214;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.claim-panel::-webkit-scrollbar {
  width: 5px;
}

.claim-panel::-webkit-scrollbar-thumb {
  background: rgba(184, 146, 78, 0.7);
}

.identity-card {
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.identity-card__loading {
  color: var(--muted);
  font-size: 0.64rem;
}

.identity-card__guest {
  display: grid;
  gap: 0.7rem;
}

.identity-card__kicker {
  color: var(--gold);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
}

.identity-card__guest h3 {
  font-size: 1.02rem;
}

.identity-card__guest p {
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.8;
}

.identity-card__guest .btn {
  width: 100%;
  margin-top: 0.2rem;
}

.identity-card__hint {
  color: #e2b1a6 !important;
  font-size: 0.58rem !important;
}

.identity-card__user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.identity-card__avatar-wrap {
  position: relative;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgba(238, 233, 222, 0.24);
  border-radius: 50%;
  background: rgba(79, 98, 143, 0.2);
}

.identity-card__avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.identity-card__avatar-wrap i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid #101214;
  border-radius: 50%;
  background: var(--green);
}

.identity-card__who {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.identity-card__who strong {
  overflow: hidden;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-card__who span:not(.identity-card__kicker) {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-card__town {
  max-width: 8rem;
  color: var(--gold-soft);
  font-size: 0.56rem;
  line-height: 1.6;
  text-align: right;
}

.selection-box {
  display: grid;
  gap: 0.6rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.selection-box__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.64rem;
}

.selection-box__top strong {
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.selection-box__top small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
}

.selection-box__top strong.is-full {
  color: var(--sakura);
}

.selection-box__prefs {
  color: var(--paper-soft);
  font-size: 0.71rem;
  line-height: 1.7;
}

.selection-box__area {
  color: var(--paper-soft);
  font-size: 0.68rem;
  line-height: 1.6;
}

.selection-box__area .number {
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 0.9rem;
}

.selection-box__area small {
  color: var(--muted);
  font-size: 0.6rem;
}

.text-button {
  width: max-content;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 0.62rem;
  cursor: pointer;
}

.text-button:hover {
  color: var(--gold-soft);
}

.claim-detail {
  position: relative;
  display: grid;
  gap: 0.8rem;
  margin-top: 1.05rem;
  padding: 1rem;
  border: 1px solid rgba(184, 146, 78, 0.42);
  background:
    linear-gradient(135deg, rgba(184, 146, 78, 0.08), rgba(201, 106, 134, 0.03)),
    rgba(184, 146, 78, 0.02);
}

.claim-detail__close {
  position: absolute;
  top: 0.38rem;
  right: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}

.claim-detail__kicker {
  color: var(--gold-soft);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.claim-detail__list {
  display: grid;
  gap: 0.9rem;
}

.claim-detail__item {
  display: grid;
  gap: 0.55rem;
}

.claim-detail__item + .claim-detail__item {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.claim-detail__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.claim-detail__swatch {
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 auto;
  border: 1px solid rgba(238, 233, 222, 0.3);
}

.claim-detail__title h3 {
  font-size: 1.05rem;
  font-weight: 500;
}

.claim-detail dl {
  display: grid;
  gap: 0.3rem;
}

.claim-detail dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.3rem;
  font-size: 0.66rem;
}

.claim-detail dt {
  color: var(--muted);
}

.claim-detail dd {
  color: var(--paper-soft);
  text-align: right;
}

.claim-detail__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.62rem;
}

.claim-detail__contact span {
  color: var(--muted);
}

.claim-detail__contact a {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.05rem;
  color: var(--gold-soft);
}

.overlap-box {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(201, 106, 134, 0.52);
  background:
    linear-gradient(135deg, rgba(201, 106, 134, 0.11), rgba(178, 58, 47, 0.04)),
    rgba(10, 11, 12, 0.28);
}

.overlap-box__title {
  color: var(--sakura);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.7;
}

.overlap-box > p:not(.overlap-box__title) {
  color: var(--paper-soft);
  font-size: 0.63rem;
  line-height: 1.75;
}

.overlap-list {
  display: grid;
  gap: 0.45rem;
}

.overlap-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(238, 233, 222, 0.12);
  font-size: 0.64rem;
}

.overlap-item__swatch {
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid rgba(238, 233, 222, 0.3);
}

.overlap-item strong {
  display: block;
  color: var(--paper);
  font-weight: 500;
}

.overlap-item span {
  display: block;
  color: var(--muted);
  font-size: 0.58rem;
}

.overlap-item a {
  border-bottom: 1px solid var(--gold);
  color: var(--gold-soft);
  font-size: 0.6rem;
}

.claim-form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.15rem;
}

.form-heading {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.1rem;
}

.form-heading > span {
  color: var(--gold);
  font-size: 0.53rem;
  letter-spacing: 0.14em;
}

.form-heading h2 {
  font-size: 1.22rem;
  font-weight: 500;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: var(--paper-soft);
  font-size: 0.66rem;
  font-weight: 500;
}

.field label > span {
  margin-left: 0.35rem;
  color: var(--red-bright);
  font-size: 0.54rem;
  font-weight: 400;
}

.field label > span.optional {
  color: var(--muted);
}

.field input[type="text"],
.field input[type="url"] {
  width: 100%;
  height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #0b0d0e;
  padding: 0.55rem 0.7rem;
  color: var(--paper);
  font-size: 0.76rem;
  outline: none;
  transition: border-color 200ms var(--ease);
}

.field input:focus {
  border-color: var(--gold);
}

.field input::placeholder {
  color: #5f5d58;
}

.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(211, 86, 72, 0.6);
}

.field__hint {
  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1.65;
}

.field--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.field--split > div {
  display: grid;
  gap: 0.35rem;
}

.field--split input[type="color"] {
  width: 3.2rem;
  height: 2.65rem;
  border: 1px solid var(--line);
  background: #0b0d0e;
  padding: 0.25rem;
  cursor: pointer;
}

.field--split code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.65rem;
}

.form-message {
  min-height: 1.2rem;
  color: var(--gold-soft);
  font-size: 0.65rem;
  line-height: 1.7;
}

.form-message.is-error {
  color: #f0a49b;
}

.form-footnote {
  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1.7;
}

.map-tooltip {
  position: fixed;
  z-index: 95;
  display: grid;
  gap: 0.1rem;
  max-width: 18rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line-strong);
  background: rgba(9, 10, 11, 0.96);
  box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.32);
  color: var(--paper-soft);
  font-size: 0.62rem;
  line-height: 1.6;
  pointer-events: none;
}

.map-tooltip strong {
  color: var(--paper);
  font-weight: 500;
}

.map-tooltip span {
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 110;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: min(24rem, calc(100vw - 2.4rem));
  padding: 0.75rem 1rem;
  border: 1px solid rgba(184, 146, 78, 0.55);
  background: rgba(12, 14, 15, 0.97);
  color: var(--paper);
  font-size: 0.7rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 250ms var(--ease),
    transform 250ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.claims-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.claims-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.claims-head h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.claims-head__lede {
  max-width: 34rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.8;
}

.claims-head__count {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.claims-head__count strong {
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.claims-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.claim-card {
  position: relative;
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(238, 233, 222, 0.02), transparent 40%),
    #0f1113;
  transition:
    border-color 200ms var(--ease),
    background-color 200ms var(--ease),
    transform 200ms var(--ease);
}

.claim-card::before {
  position: absolute;
  top: -1px;
  right: 30%;
  left: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 180, 184, 0.55), transparent);
  content: "";
  opacity: 0;
  transition: opacity 200ms var(--ease);
}

.claim-card:hover {
  border-color: rgba(184, 146, 78, 0.42);
  background-color: #111416;
  transform: translateY(-2px);
}

.claim-card:hover::before {
  opacity: 1;
}

.claim-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.claim-card__identity {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.claim-card__swatch {
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid rgba(238, 233, 222, 0.28);
}

.claim-card__date {
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.04em;
}

.claim-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}

.badge {
  padding: 0.12rem 0.38rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.5rem;
  line-height: 1.5;
}

.badge--mine {
  border-color: rgba(184, 146, 78, 0.5);
  color: var(--gold-soft);
}

.badge--overlap {
  border-color: rgba(201, 106, 134, 0.5);
  color: var(--sakura);
}

.claim-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.claim-card__owner {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.03em;
}

.claim-card__meta {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.claim-card__meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.64rem;
}

.claim-card__meta dt {
  color: var(--muted);
}

.claim-card__meta dd {
  color: var(--paper-soft);
  text-align: right;
}

.claim-card__prefs {
  color: var(--muted);
  font-size: 0.55rem;
  line-height: 1.6;
}

.claim-card__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.claim-card__link,
.claim-card__show,
.claim-card__muted {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 0 0 0.1rem;
  color: var(--muted);
  font-size: 0.6rem;
  cursor: pointer;
  transition: color 200ms var(--ease);
}

.claim-card__link:hover,
.claim-card__show:hover {
  color: var(--gold-soft);
}

.claim-card__show {
  margin-left: auto;
}

.claim-card__delete {
  color: #c98a80;
}

.claim-card__delete:hover {
  color: #e9a79b;
}

.claims-empty {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.notes {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.notes__head {
  margin-bottom: 2rem;
}

.notes__head h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.notes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.notes__grid article {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1.5rem clamp(1rem, 2.5vw, 2rem) 0;
  border-left: 1px solid var(--line);
}

.notes__grid article:first-child {
  padding-left: 0;
  border-left: 0;
}

.notes__index {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.notes__grid h3 {
  font-size: 1.02rem;
}

.notes__grid p {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.9;
}

.section-blossom {
  display: flex;
  justify-content: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  color: var(--sakura-deep);
}

.section-blossom svg {
  width: min(26rem, 76vw);
  height: auto;
  opacity: 0.55;
}

.site-footer {
  position: relative;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  background: #08090a;
}

.footer-inner {
  display: grid;
  gap: 1.4rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.footer-brand img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: cover;
  border: 1px solid rgba(238, 233, 222, 0.24);
}

.footer-brand span {
  display: grid;
  gap: 0.05rem;
  font-family: var(--font-serif);
}

.footer-brand small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.47rem;
  letter-spacing: 0.16em;
}

.footer__brand > p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.65rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--paper-soft);
  font-size: 0.65rem;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-legal {
  max-width: 52rem;
  color: #77746b;
  font-size: 0.55rem;
  line-height: 1.7;
}

@media (max-width: 1120px) {
  .workspace__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .claim-panel {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0 1.5rem;
    align-items: start;
  }

  .identity-card,
  .selection-box,
  .claim-detail,
  .overlap-box {
    grid-column: 1;
  }

  .claim-form {
    grid-column: 2;
    grid-row: 1 / span 5;
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  .header-nav a:nth-child(3) {
    display: none;
  }

  .hero__vertical {
    display: none;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.45fr);
    gap: 2rem;
  }

  .hero__branch {
    width: 42vw;
    opacity: 0.14;
  }

  .flow__head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

@media (max-width: 800px) {
  .header-nav {
    gap: 0.8rem;
    font-size: 0.62rem;
  }

  .header-nav a:not(.header-nav__back) {
    display: none;
  }

  .header-account {
    margin-left: auto;
    padding-left: 0.8rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .hero__emblem {
    order: -1;
    justify-items: start;
    padding-top: 0;
  }

  .hero__emblem-frame {
    width: 8.5rem;
  }

  .hero__emblem > p {
    display: none;
  }

  .hero__emblem figcaption {
    justify-content: flex-start;
  }

  .hero__branch {
    top: 1rem;
    right: -3rem;
    width: 55vw;
    opacity: 0.16;
  }

  .hero__sun {
    top: 9%;
    right: -4%;
    width: 18rem;
  }

  .hero__foot {
    display: grid;
    gap: 0.5rem;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 0;
  }

  .hero__stats div {
    min-width: 0;
    padding-right: 1rem;
  }

  .hero__stats div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .hero__scale {
    padding-bottom: 0;
  }

  .flow__list {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .flow__list li {
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .flow__list li:first-child {
    border-top: 1px solid var(--line);
  }

  .workspace__head,
  .claims-head {
    display: grid;
    gap: 0.8rem;
  }

  .workspace__hint {
    max-width: 34rem;
    text-align: left;
  }

  .claim-panel {
    display: block;
  }

  .claim-form {
    margin-top: 1.15rem;
  }

  .notes__grid {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .notes__grid article {
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .brand__text small {
    display: none;
  }

  .header-account__user span:not(.header-account__logout) {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .hero__actions .btn {
    width: 100%;
  }

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

  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .map-stage {
    padding: 0.75rem;
  }

  .map-legend {
    gap: 0.5rem 1rem;
  }

  .map-scroll {
    height: 66vh;
  }

  .claim-panel {
    padding: 1rem;
  }

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

  .claims-head__count {
    justify-self: start;
  }

  .toast {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
