:root {
  --page-bg: #7897a1;
  --paper: #d3e2df;
  --paper-light: #e5efec;
  --mint: #a9c5bc;
  --blue: #66889a;
  --blue-deep: #27485b;
  --ink: #243f51;
  --ink-soft: #526d77;
  --line: rgba(35, 67, 82, 0.2);
  --glass: rgba(178, 214, 213, 0.46);
  --cover-image: url("./cover-illustration.jpg");
  --cover-note-opacity: 0;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 14%, rgba(221, 239, 235, 0.3), transparent 24rem),
    linear-gradient(130deg, #718f9a, #91aaa9 52%, #668492);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
}

button, a { font: inherit; }
button { color: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid #e8f3ef;
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
    var(--paper);
  box-shadow: 0 0 60px rgba(26, 53, 65, 0.35);
}

.screen {
  min-height: 100dvh;
  animation: reveal 500ms ease both;
}

.screen[hidden] { display: none; }

.loading-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  width: min(100%, 480px);
  margin: 0 auto;
  overflow: hidden;
  place-items: center;
  opacity: 0;
  background: #153d39;
  box-shadow: 0 0 60px rgba(26, 53, 65, 0.35);
  transition: opacity 180ms ease;
}

.loading-screen[hidden] { display: none; }

.loading-screen.is-visible { opacity: 1; }

.loading-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #153d39;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cover-screen {
  color: #e6f0ed;
  background: #274859;
}

.cover-enter {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.cover-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #173d3c;
  background-image: var(--cover-image);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.cover-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    to bottom,
    rgba(10, 31, 34, 0) 58%,
    rgba(10, 31, 34, 0.2) 78%,
    rgba(10, 31, 34, 0.58) 100%
  );
}

.moon,
.window-light,
.bath-water,
.mermaid-mark,
.art-note {
  display: none;
}

.moon {
  position: absolute;
  top: 9%;
  right: 10%;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(215, 235, 227, 0.58);
  box-shadow: 0 0 40px rgba(215, 235, 227, 0.32);
}

.window-light {
  position: absolute;
  top: 13%;
  left: 9%;
  width: 34%;
  height: 43%;
  border: 1px solid rgba(198, 224, 222, 0.24);
  background: linear-gradient(145deg, rgba(179, 211, 209, 0.18), transparent 70%);
  box-shadow: inset 0 0 0 0.65rem rgba(28, 60, 75, 0.18);
}

.bath-water {
  position: absolute;
  left: -12%;
  bottom: 8%;
  width: 124%;
  height: 28%;
  border: 1px solid rgba(211, 235, 230, 0.2);
  border-radius: 50% 50% 22% 22%;
  background:
    radial-gradient(ellipse at 54% 22%, rgba(211, 235, 230, 0.34), transparent 28%),
    linear-gradient(180deg, rgba(130, 180, 181, 0.74), rgba(45, 91, 108, 0.9));
  transform: rotate(-2deg);
  animation: water 5.8s ease-in-out infinite;
}

.mermaid-mark {
  position: absolute;
  left: 38%;
  bottom: 18%;
  width: 24%;
  height: 44%;
  border-radius: 50% 50% 42% 42%;
  opacity: 0.46;
  background: linear-gradient(180deg, #b6cfcb, #557e88 68%, transparent 69%);
  transform: rotate(5deg);
  filter: blur(0.3px);
}

.mermaid-mark::after {
  position: absolute;
  right: -42%;
  bottom: -4%;
  width: 96%;
  height: 27%;
  border-radius: 80% 10% 80% 10%;
  content: "";
  background: #648c93;
  transform: rotate(18deg);
}

.art-note {
  position: absolute;
  z-index: 1;
  top: 48%;
  left: 50%;
  width: max-content;
  max-width: 80%;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(224, 241, 236, 0.22);
  color: rgba(230, 242, 238, 0.58);
  background: rgba(27, 58, 72, 0.34);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: var(--cover-note-opacity);
  transform: translate(-50%, -50%);
}

.cover-copy {
  position: absolute;
  z-index: 2;
  top: 12%;
  left: 30.7%;
  width: 37%;
  padding: 0;
  color: #fff;
  text-shadow:
    0 1px 3px rgba(7, 34, 40, 0.9),
    0 0 10px rgba(7, 34, 40, 0.65);
}

.cover-copy strong {
  display: block;
  width: 100%;
  margin: 0;
  font-size: min(5.5vw, 1.65rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-align: center;
  white-space: nowrap;
}

.enter-prompt {
  position: absolute;
  z-index: 2;
  top: 64%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  margin: 0;
  color: rgba(233, 244, 240, 0.85);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.last-updated {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  margin: 0 0 max(1.4rem, env(safe-area-inset-bottom));
  color: rgba(229, 242, 238, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.play-mark {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(231, 243, 239, 0.5);
  border-radius: 50%;
  font-size: 0.56rem;
  animation: breathe 2.6s ease-in-out infinite;
}

.shelf-screen {
  padding: max(1.7rem, env(safe-area-inset-top)) 1.1rem max(1.8rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.2), transparent 15rem),
    repeating-linear-gradient(0deg, rgba(44, 75, 84, 0.018) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #c3d8d4, #aec8c2);
}

.shelf-header,
.content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.shelf-header h1 {
  margin: 0;
  font-size: 1.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.icon-button,
.back-button {
  min-height: 36px;
  padding: 0.45rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(230, 240, 237, 0.38);
  color: var(--ink-soft);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.icon-button:disabled { cursor: default; opacity: 0.52; }

.shelf-intro {
  margin: 1.25rem 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.8;
}

.site-policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  margin: 1.15rem auto 0;
}

.site-policy-links button {
  min-height: 34px;
  padding: 0.35rem 0.15rem;
  border: 0;
  border-bottom: 1px solid transparent;
  color: rgba(40, 70, 76, 0.68);
  background: transparent;
  font: inherit;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.site-policy-links button:hover,
.site-policy-links button:focus-visible {
  border-bottom-color: rgba(40, 70, 76, 0.42);
  color: var(--blue-deep);
}

.shelf-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(28, 65, 62, 0.5);
  background: #0d3a31;
  box-shadow: 0 14px 34px rgba(30, 61, 65, 0.18);
}

.shelf-illustration {
  display: block;
  width: 100%;
  height: auto;
}

.bottle {
  position: absolute;
  display: grid;
  width: clamp(4.6rem, 20.5%, 6.2rem);
  min-height: clamp(3.35rem, 7.2vw, 4.3rem);
  place-items: center;
  padding: 0.55rem 0.22rem 0.48rem;
  border: 1px solid rgba(173, 191, 165, 0.64);
  clip-path: polygon(9% 0, 91% 0, 100% 14%, 100% 86%, 91% 100%, 9% 100%, 0 86%, 0 14%);
  color: #d8dac6;
  background: rgba(74, 101, 101, 0.74);
  box-shadow:
    inset 0 0 0 3px rgba(134, 169, 151, 0.22),
    0 2px 8px rgba(2, 30, 27, 0.34);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.bottle::before {
  position: absolute;
  inset: 0.28rem;
  border: 1px solid rgba(178, 193, 169, 0.34);
  clip-path: inherit;
  content: "";
  pointer-events: none;
}

.bottle:hover,
.bottle:focus-visible {
  border-color: rgba(217, 225, 201, 0.92);
  color: #f0f0dc;
  background: rgba(89, 119, 116, 0.88);
  box-shadow:
    inset 0 0 0 3px rgba(181, 204, 182, 0.38),
    0 0 10px rgba(183, 210, 192, 0.2);
  transform: translate(-50%, -50%);
}

.bottle-gallery { top: 16.1%; left: 12.4%; }
.bottle-journal { top: 16.1%; left: 50%; }
.bottle-games { top: 16.1%; left: 87.5%; }
.bottle-biography { top: 41%; left: 12%; }
.bottle-commission { top: 41%; left: 50%; }
.bottle-links { top: 41%; left: 87%; }

.bottle-label {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.62rem, 2.65vw, 0.8rem);
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 2px rgba(11, 39, 35, 0.72);
}

.bottle-label small {
  display: block;
  margin-top: 0.32rem;
  color: #bdc9b8;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(0.52rem, 2vw, 0.62rem);
  letter-spacing: 0.12em;
}

.random-button {
  display: grid;
  grid-template-columns: auto 1fr;
  width: 100%;
  min-height: 4.65rem;
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(225, 238, 234, 0.48);
  cursor: pointer;
  letter-spacing: 0.07em;
  text-align: left;
}

.random-button:hover,
.random-button:focus-visible { background: rgba(234, 245, 241, 0.72); }

.random-button > span {
  grid-row: 1 / 3;
  align-self: center;
  margin-right: 0.75rem;
  font-size: 1.35rem;
}

.random-button small {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}

.shelf-overlay-button {
  position: absolute;
  z-index: 2;
  right: 4.5%;
  width: 49%;
  min-height: 4.5rem;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border-color: rgba(201, 220, 208, 0.42);
  color: #edf2ea;
  background: rgba(17, 54, 53, 0.68);
  box-shadow: 0 8px 22px rgba(2, 27, 27, 0.24);
  backdrop-filter: blur(3px) saturate(0.88);
  -webkit-backdrop-filter: blur(3px) saturate(0.88);
  text-shadow: 0 1px 2px rgba(4, 30, 29, 0.9);
}

.shelf-tag-button { top: 64.5%; }
.shelf-random-button { top: 80.5%; }

.shelf-overlay-button:hover,
.shelf-overlay-button:focus-visible {
  color: #fff;
  background: rgba(27, 69, 67, 0.82);
  box-shadow: 0 8px 24px rgba(2, 27, 27, 0.3);
}

.shelf-overlay-button small {
  color: rgba(225, 237, 229, 0.76);
  line-height: 1.5;
}

.quiet-note {
  margin: 1.2rem 0 0;
  color: rgba(49, 78, 88, 0.66);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.content-screen {
  padding: max(1.25rem, env(safe-area-inset-top)) 0.9rem max(2rem, env(safe-area-inset-bottom));
  background:
    repeating-linear-gradient(0deg, rgba(38, 73, 84, 0.022) 0 1px, transparent 1px 5px),
    #b9d0cc;
}

.content-header {
  align-items: center;
  padding: 0 0.15rem 1rem;
}

.content-header .eyebrow { margin: 0; }

.paper {
  min-height: calc(100dvh - 5rem);
  padding: clamp(1.3rem, 6vw, 2.3rem);
  border: 1px solid rgba(43, 73, 82, 0.13);
  background:
    linear-gradient(90deg, rgba(77, 111, 116, 0.04), transparent 8% 92%, rgba(77, 111, 116, 0.04)),
    repeating-linear-gradient(0deg, rgba(50, 79, 86, 0.018) 0 1px, transparent 1px 4px),
    var(--paper-light);
  box-shadow: 0 14px 35px rgba(44, 73, 82, 0.15);
}

.paper-title {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.paper-title h2 {
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(1.6rem, 8vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.paper-title h2:focus {
  outline: 2px solid rgba(67, 108, 119, 0.5);
  outline-offset: 0.35rem;
}

.paper-title > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.9;
}

.entry-date {
  margin: 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.prose {
  padding: 1.2rem 0 0.3rem;
  font-size: 0.88rem;
  line-height: 2.15;
}

.prose p { margin: 0 0 1.25rem; }

mark {
  padding: 0 0.14rem;
  color: inherit;
  background: linear-gradient(transparent 50%, rgba(108, 153, 159, 0.28) 50%);
}

.note-card {
  margin-top: 1.2rem;
  padding: 1rem;
  border-left: 3px solid var(--blue);
  background: rgba(165, 197, 192, 0.25);
}

.note-card > span {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--ink-soft);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
}

.note-card strong { font-size: 0.82rem; font-weight: 500; }

.tags {
  color: var(--blue-deep);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.7rem;
  margin-top: 1.4rem;
}

.art-card:first-child { grid-column: 1 / -1; }

.art-card h3 {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.art-card p { margin: 0; }

.image-placeholder,
.wide-placeholder {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  border: 1px solid rgba(40, 74, 86, 0.12);
  color: rgba(229, 242, 238, 0.5);
  background: linear-gradient(145deg, #789ca5, #355b6d);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.image-placeholder.sea {
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 70% 30%, #c0d8d1, transparent 18%), linear-gradient(145deg, #86aeb0, #31596d);
}

.image-placeholder.bottle-image {
  background: radial-gradient(ellipse at 50% 52%, #b7d4cb 0 14%, transparent 15%), linear-gradient(145deg, #678c98, #284d60);
}

.image-placeholder.night {
  background: radial-gradient(circle at 28% 24%, #cfddd4 0 2%, transparent 2.5%), linear-gradient(145deg, #4f7182, #1e4054);
}

.gallery-year-nav {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding-bottom: 0.85rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-theme-link {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding: 0.8rem 0.15rem;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--blue-deep);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.gallery-theme-link span {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.gallery-theme-link small {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.gallery-theme-link:hover,
.gallery-theme-link:focus-visible {
  background: rgba(168, 201, 195, 0.16);
}

.gallery-filter-panel {
  border-bottom: 1px solid var(--line);
}

.gallery-ai-notice {
  margin: 1.1rem 0 0.3rem;
  padding: 0.7rem 0.85rem;
  border-left: 2px solid rgba(47, 85, 100, 0.52);
  color: var(--blue-deep);
  background: rgba(179, 207, 201, 0.12);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.sales-preparation-note {
  display: grid;
  gap: 0.7rem;
  margin: 1.15rem 0 0.3rem;
  padding: 1rem;
  border: 1px solid rgba(72, 111, 113, 0.2);
  background: rgba(164, 197, 191, 0.12);
}

.sales-preparation-note > span {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sales-preparation-note strong {
  display: block;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.sales-preparation-note p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.85;
}

.sales-preparation-note button {
  justify-self: start;
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--blue-deep);
  background: rgba(229, 239, 236, 0.42);
  font: inherit;
  font-size: 0.62rem;
  cursor: pointer;
}

.sales-preparation-note button:hover,
.sales-preparation-note button:focus-visible {
  background: rgba(229, 239, 236, 0.72);
}

.gallery-filter-panel > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.15rem;
  color: var(--blue-deep);
  cursor: pointer;
  list-style: none;
}

.gallery-filter-panel > summary::-webkit-details-marker { display: none; }

.gallery-filter-panel > summary::after {
  margin-left: auto;
  color: var(--ink-soft);
  content: "＋";
  font-size: 0.72rem;
}

.gallery-filter-panel[open] > summary::after { content: "−"; }

.gallery-filter-panel > summary > span {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.gallery-filter-panel > summary > small {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

.gallery-filter-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 0.7rem;
  padding: 0.35rem 0 1rem;
}

.gallery-filter-form > label {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.gallery-filter-form select,
.gallery-filter-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: rgba(229, 239, 236, 0.58);
  font: inherit;
  font-size: 0.7rem;
}

.gallery-filter-form select { padding: 0.55rem 1.7rem 0.55rem 0.55rem; }
.gallery-filter-form input { padding: 0.55rem; }

.gallery-filter-form select:focus-visible,
.gallery-filter-form input:focus-visible {
  outline: 2px solid rgba(39, 72, 91, 0.38);
  outline-offset: 2px;
}

.gallery-price-input {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(229, 239, 236, 0.58);
}

.gallery-price-input > span {
  justify-self: end;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
}

.gallery-price-input input {
  border: 0;
  background: transparent;
}

.gallery-filter-reset {
  min-height: 42px;
  align-self: end;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(168, 201, 195, 0.13);
  cursor: pointer;
  font-size: 0.66rem;
}

.gallery-filter-reset:hover,
.gallery-filter-reset:focus-visible {
  background: rgba(168, 201, 195, 0.26);
}

.gallery-year-nav button {
  flex: 0 0 auto;
  min-width: 4.6rem;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(220, 234, 230, 0.3);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.gallery-year-nav button[aria-pressed="true"] {
  border-color: rgba(47, 85, 100, 0.48);
  color: var(--paper);
  background: var(--blue-deep);
}

.gallery-year-caption {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.offline-gallery-note {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.offline-gallery-note .image-placeholder {
  aspect-ratio: 4 / 5;
}

.offline-gallery-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.9;
}

.live-art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 0.7rem;
  margin-top: 0.9rem;
}

.live-art-card {
  min-width: 0;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.gallery-filter-empty {
  grid-column: 1 / -1;
  margin: 0.5rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.9;
}

.theme-back-button {
  min-height: 42px;
  margin: 0 0 1rem;
  padding: 0 0.2rem;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.theme-tag-list {
  display: grid;
  gap: 0;
  margin: 1.35rem 0 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.theme-tag-list li {
  border-bottom: 1px solid var(--line);
  color: var(--blue);
}

.theme-tag-list button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.2rem;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.theme-tag-list button small {
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.theme-tag-list button[aria-pressed="true"] span,
.theme-tag-list button:hover span,
.theme-tag-list button:focus-visible span {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.theme-results {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.theme-result-heading {
  margin: 0 0 1.3rem;
  font-size: 0.94rem;
  font-weight: 500;
}

.theme-year-group + .theme-year-group {
  margin-top: 1.8rem;
}

.theme-year-group > h4 {
  margin: 0 0 0.7rem;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.theme-art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 0.7rem;
}

.theme-art-card {
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.theme-art-card:hover img,
.theme-art-card:focus-visible img {
  opacity: 0.92;
  transform: scale(1.015);
}

.theme-prompt,
.theme-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.9;
}

.live-art-image {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(164, 196, 190, 0.18);
}

.gallery-sale-label {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  padding: 0.28rem 0.46rem;
  border: 1px solid rgba(222, 239, 234, 0.42);
  color: #e8f3ef;
  background: rgba(39, 72, 91, 0.72);
  box-shadow: 0 2px 10px rgba(23, 52, 65, 0.16);
  backdrop-filter: blur(3px);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
}

.gallery-sale-label-inquiry { background: rgba(74, 105, 113, 0.72); }
.gallery-sale-label-reserved { background: rgba(73, 94, 105, 0.72); }
.gallery-sale-label-sold { background: rgba(48, 68, 78, 0.74); }

.live-art-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease, opacity 220ms ease;
}

.live-art-card:hover img,
.live-art-card:focus-visible img {
  opacity: 0.92;
  transform: scale(1.015);
}

.live-art-meta {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.55rem;
}

.live-art-meta time {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.live-art-meta strong {
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.55;
}

.art-dialog {
  width: min(calc(100% - 1.5rem), 780px);
  max-height: calc(100dvh - 1.5rem);
  padding: 2.8rem 1rem 1.2rem;
  overflow: auto;
  border: 1px solid rgba(217, 235, 230, 0.34);
  color: var(--paper);
  background: #274b5d;
  box-shadow: 0 24px 70px rgba(17, 43, 56, 0.45);
}

.art-dialog::backdrop {
  background: rgba(18, 43, 54, 0.76);
  backdrop-filter: blur(3px);
}

.art-dialog-close {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(229, 242, 238, 0.28);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(224, 239, 235, 0.08);
  font-size: 1.25rem;
  cursor: pointer;
}

.art-dialog > img {
  display: block;
  width: 100%;
  max-height: 68dvh;
  object-fit: contain;
  background: rgba(218, 234, 230, 0.08);
}

.art-dialog-copy {
  padding: 1rem 0.15rem 0;
}

.art-dialog-copy time {
  color: rgba(229, 242, 238, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.art-dialog-copy h3 {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.art-dialog-copy p {
  margin: 0.75rem 0 0;
  color: rgba(229, 242, 238, 0.78);
  font-size: 0.76rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

.artwork-facts {
  display: grid;
  gap: 0;
  margin: 1.1rem 0 0;
  border-top: 1px solid rgba(229, 242, 238, 0.2);
}

.artwork-facts > div {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(229, 242, 238, 0.15);
}

.artwork-facts dt,
.artwork-facts dd {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.7;
}

.artwork-facts dt {
  color: rgba(229, 242, 238, 0.58);
  letter-spacing: 0.05em;
}

.artwork-facts dd { color: rgba(229, 242, 238, 0.86); }

.artwork-sale-note {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(229, 242, 238, 0.22);
  background: rgba(218, 234, 230, 0.06);
}

.art-dialog-copy .artwork-sale-status {
  margin: 0;
  color: #dcebe7;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.art-dialog-copy .artwork-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin: 0.7rem 0 0;
}

.artwork-price del {
  color: rgba(229, 242, 238, 0.5);
  font-size: 0.7rem;
}

.artwork-price strong {
  color: #f3f8f6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.artwork-price small {
  flex-basis: 100%;
  color: rgba(229, 242, 238, 0.56);
  font-size: 0.58rem;
}

.art-dialog-copy .artwork-sale-copy {
  margin: 0.55rem 0 0;
  font-size: 0.68rem;
}

.artwork-inquiry-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  border: 1px solid rgba(229, 242, 238, 0.3);
  color: #eef7f4;
  background: rgba(168, 210, 218, 0.1);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.artwork-inquiry-link:hover,
.artwork-inquiry-link:focus-visible {
  background: rgba(168, 210, 218, 0.18);
}

.artwork-checkout-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(229, 242, 238, 0.38);
  border-radius: 0;
  color: #f5faf8;
  background: rgba(137, 192, 202, 0.18);
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.artwork-checkout-button:hover,
.artwork-checkout-button:focus-visible {
  background: rgba(168, 210, 218, 0.26);
}

.artwork-checkout-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.artwork-checkout-message {
  min-height: 1.2em;
  margin: 0.55rem 0 0;
  color: rgba(229, 242, 238, 0.78);
  font-size: 0.6rem;
}

.purchase-result {
  max-width: 42rem;
  margin-inline: auto;
}

.purchase-order-number {
  overflow-wrap: anywhere;
  color: rgba(229, 242, 238, 0.62);
  font-size: 0.62rem;
}

.artwork-purchase-note {
  display: block;
  margin-top: 0.55rem;
  color: rgba(229, 242, 238, 0.56);
  font-size: 0.57rem;
  line-height: 1.7;
}

.wide-placeholder { margin-top: 1.35rem; aspect-ratio: 16 / 9; }

.game-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(179, 207, 201, 0.12);
}

.game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 460 / 215;
  object-fit: cover;
}

.game-card a {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease;
}

.game-card a:hover,
.game-card a:focus-visible {
  background: rgba(164, 197, 191, 0.2);
}

.game-card span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.game-card small {
  color: var(--ink-soft);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.biography-profile {
  display: grid;
  gap: 1rem;
  padding-top: 1.35rem;
}

.biography-profile > img {
  display: block;
  width: min(11rem, 58vw);
  aspect-ratio: 1;
  justify-self: center;
  object-fit: cover;
  border: 1px solid var(--line);
}

.biography-profile .prose {
  padding-top: 0;
}

.biography-section {
  margin-top: 1.6rem;
}

.biography-section > h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.credit-list {
  margin: 0.8rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.credit-list li {
  display: flex;
  min-height: 3.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.credit-list span {
  font-size: 0.78rem;
  line-height: 1.6;
}

.credit-list small {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.biography-note {
  margin-top: 1.6rem;
  padding: 1rem;
  border-left: 2px solid var(--blue);
  background: rgba(165, 197, 192, 0.16);
}

.biography-note p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.9;
}

.biography-note small {
  display: block;
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.61rem;
  line-height: 1.7;
}

.plain-list,
.link-list,
.price-list {
  display: grid;
  gap: 0;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li,
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.8rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.plain-list span,
.link-list small,
.price-list span {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.plain-list strong { font-size: 0.78rem; font-weight: 500; }

.timeline { margin: 1.4rem 0 0; }

.timeline div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline dt {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
}

.timeline dd { margin: 0; font-size: 0.78rem; }

.price-list { grid-template-columns: 1fr; gap: 0.65rem; }

.price-list article {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(179, 207, 201, 0.17);
}

.price-list strong {
  display: block;
  margin: 0.35rem 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.price-list p,
.contact-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.8;
}

.contact-note { margin-top: 1.2rem; }

.commission-intro {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.9;
}

.commission-details {
  padding-bottom: 0;
}

.commission-samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.commission-samples img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(179, 207, 201, 0.14);
}

.commission-samples img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 884 / 824;
}

.commission-contact {
  display: flex;
  min-height: 4.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  color: inherit;
  background: rgba(164, 197, 191, 0.18);
  text-decoration: none;
}

.commission-contact span {
  font-size: 0.8rem;
}

.commission-contact small {
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.commission-contact:hover,
.commission-contact:focus-visible {
  background: rgba(164, 197, 191, 0.3);
}

.link-list a {
  color: inherit;
  text-decoration: none;
  transition: padding 180ms ease, background 180ms ease;
}

.link-list a:hover,
.link-list a:focus-visible {
  padding-inline: 0.6rem;
  background: rgba(164, 197, 191, 0.18);
}

.link-list span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.legal-document {
  display: grid;
  gap: 0;
}

.legal-document section {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-document h3 {
  margin: 0 0 0.75rem;
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.legal-document p,
.legal-document li {
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 2;
}

.legal-document p { margin: 0 0 0.8rem; }
.legal-document p:last-child { margin-bottom: 0; }

.legal-document ul {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-contact {
  display: inline-block;
  color: var(--blue-deep);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.legal-date { font-size: 0.64rem !important; }

.commerce-list {
  margin: 1.1rem 0 0;
}

.commerce-list div {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.commerce-list dt {
  color: var(--blue-deep);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.commerce-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.95;
}

.commerce-list a { color: var(--blue-deep); }

.random-result { padding-top: 1.2rem; }

.random-number {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.random-result h3 {
  margin: 0.6rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.6;
}

.random-result-image {
  display: block;
  width: 100%;
  margin: 1rem 0 1.35rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(179, 207, 201, 0.14);
  cursor: pointer;
}

.random-result-image img {
  display: block;
  width: 100%;
  max-height: 72dvh;
  object-fit: contain;
}

.random-result blockquote {
  margin: 1.3rem 0;
  padding: 1.1rem 0 1.1rem 1rem;
  border-left: 2px solid var(--blue);
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 2;
}

.random-open-entry,
.another-random {
  width: 100%;
  min-height: 48px;
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(168, 201, 195, 0.2);
  cursor: pointer;
}

.random-open-entry {
  background: rgba(116, 165, 160, 0.28);
}

.live-journal-list {
  display: grid;
  gap: 0;
  margin-top: 0.8rem;
}

.journal-detail-image {
  margin: 1.25rem 0 1.5rem;
}

.journal-detail-image img {
  display: block;
  width: 100%;
  max-height: 72dvh;
  object-fit: contain;
  border: 1px solid var(--line);
  background: rgba(179, 207, 201, 0.14);
}

.live-entry {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.live-entry h3 {
  margin: 0.45rem 0 0.75rem;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.6;
}

.live-entry-body {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 2.05;
  white-space: pre-wrap;
}

.journal-year-list {
  display: grid;
  gap: 1.8rem;
  margin-top: 1.4rem;
}

.journal-year-group > h3 {
  margin: 0 0 0.55rem;
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.journal-year-group > div {
  border-top: 1px solid var(--line);
}

.journal-index-entry {
  display: grid;
  grid-template-columns: 5.8rem minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  width: 100%;
  min-height: 4.7rem;
  padding: 0.9rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.journal-index-entry:hover,
.journal-index-entry:focus-visible {
  background: rgba(164, 197, 191, 0.14);
}

.journal-index-entry time {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.journal-index-entry strong {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.6;
}

.journal-index-entry .tags {
  grid-column: 2;
}

.journal-list-back {
  min-height: 42px;
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(220, 234, 230, 0.34);
  cursor: pointer;
}

.journal-detail-body {
  margin: 0;
  padding: 1.5rem 0 0.5rem;
  font-size: 0.88rem;
  line-height: 2.15;
  white-space: pre-wrap;
}

.journal-detail-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.journal-detail-tags button,
.tag-cloud button {
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-deep);
  background: rgba(168, 201, 195, 0.18);
  cursor: pointer;
  font-size: 0.68rem;
}

.entry-share {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.entry-share-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--blue-deep);
  background: rgba(220, 234, 230, 0.28);
  cursor: pointer;
}

.entry-share-button:hover,
.entry-share-button:focus-visible {
  background: rgba(220, 234, 230, 0.58);
}

.entry-share-status {
  color: var(--ink-soft);
  font-size: 0.6rem;
  line-height: 1.5;
}

.tag-cloud button small {
  margin-left: 0.25rem;
  color: var(--ink-soft);
}

.tag-search-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.tag-search-form > label {
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.tag-search-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tag-search-form input,
.tag-search-form button {
  min-height: 48px;
  border: 1px solid var(--line);
  font: inherit;
}

.tag-search-form input {
  min-width: 0;
  padding: 0.75rem 0.8rem;
  border-right: 0;
  color: var(--ink);
  background: rgba(232, 241, 238, 0.54);
  font-size: 16px;
}

.tag-search-form button {
  padding: 0.65rem 1rem;
  color: var(--paper-light);
  background: var(--blue-deep);
  cursor: pointer;
  font-size: 0.72rem;
}

.tag-search-results {
  display: grid;
  margin-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.tag-search-count,
.tag-search-empty {
  margin: 0;
  padding: 1rem 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.tag-result {
  width: 100%;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.tag-result-journal {
  display: grid;
  gap: 0.45rem;
}

.tag-result-artwork {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
}

.tag-result-artwork img {
  width: 5.5rem;
  height: 5.5rem;
  border: 1px solid var(--line);
  object-fit: contain;
}

.tag-result-artwork > span {
  display: grid;
  gap: 0.4rem;
}

.tag-result strong {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.6;
}

.tag-result-kind {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.tag-result-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.word-room {
  --word-ink: var(--ink);
  --word-soft: var(--ink-soft);
  --word-line: var(--line);
  --word-field: rgba(229, 239, 236, 0.64);
  --word-button: rgba(145, 190, 199, 0.2);
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--word-line);
  color: var(--word-ink);
}

.word-room-heading > p {
  margin: 0;
  color: var(--word-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.word-room-heading h3 {
  margin: 0.3rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.word-room .word-room-guidance {
  margin: 0.8rem 0 0;
  color: var(--word-soft);
  font-size: 0.68rem;
  line-height: 1.9;
}

.word-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.word-form > label:not(.word-honeypot) {
  display: grid;
  gap: 0.4rem;
}

.word-form label > span {
  color: var(--word-soft);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.word-form input,
.word-form textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--word-line);
  border-radius: 0;
  color: var(--word-ink);
  background: var(--word-field);
  font: inherit;
  font-size: 0.76rem;
}

.word-form textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.85;
}

.word-form input:focus,
.word-form textarea:focus {
  outline: 2px solid rgba(113, 176, 194, 0.42);
  outline-offset: 2px;
}

.word-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.word-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.word-form-footer small {
  color: var(--word-soft);
  font-size: 0.58rem;
  line-height: 1.6;
}

.word-form-footer button {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--word-line);
  color: var(--word-ink);
  background: var(--word-button);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
}

.word-form-footer button:disabled {
  cursor: wait;
  opacity: 0.56;
}

.word-form-status {
  min-height: 1.3rem;
  margin: 0;
  color: var(--word-soft);
  font-size: 0.66rem;
  line-height: 1.7;
}

.word-form-status.is-success {
  color: #4c7c86;
}

.word-form-status.is-error {
  color: #8a5c65;
}

.word-list {
  display: grid;
  gap: 0;
  margin-top: 1.6rem;
  border-top: 1px solid var(--word-line);
}

.word-list-loading,
.word-list-empty {
  margin: 0;
  padding: 1rem 0;
  color: var(--word-soft);
  font-size: 0.67rem;
  line-height: 1.8;
}

.received-word {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--word-line);
}

.received-word header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.received-word strong {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.received-word time {
  color: var(--word-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.58rem;
}

.word-room .received-word > p {
  margin: 0.65rem 0 0;
  color: var(--word-ink);
  font-size: 0.76rem;
  line-height: 1.95;
  white-space: pre-wrap;
}

.word-heart {
  display: block;
  margin-top: 0.8rem;
  color: #69a9c0;
  font-size: 0.64rem;
}

.art-dialog .word-room {
  --word-ink: #e5f0ed;
  --word-soft: rgba(229, 242, 238, 0.68);
  --word-line: rgba(229, 242, 238, 0.22);
  --word-field: rgba(218, 234, 230, 0.08);
  --word-button: rgba(168, 210, 218, 0.12);
}

.art-dialog .entry-share {
  border-color: rgba(229, 242, 238, 0.22);
}

.art-dialog .entry-share-button {
  border-color: rgba(229, 242, 238, 0.28);
  color: #e5f0ed;
  background: rgba(218, 234, 230, 0.08);
}

.art-dialog .entry-share-button:hover,
.art-dialog .entry-share-button:focus-visible {
  background: rgba(218, 234, 230, 0.16);
}

.art-dialog .entry-share-status {
  color: rgba(229, 242, 238, 0.68);
}

.art-dialog .word-form-status.is-success,
.art-dialog .word-heart {
  color: #9bd5e5;
}

.art-dialog .word-form-status.is-error {
  color: #e0aeb6;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.58; box-shadow: 0 0 0 rgba(221, 240, 234, 0); }
  50% { opacity: 1; box-shadow: 0 0 18px rgba(221, 240, 234, 0.25); }
}

@keyframes water {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-4px); }
}

@media (min-width: 700px) {
  body { padding: 1.5rem 0; }

  .site-shell,
  .screen,
  .cover-enter { min-height: calc(100dvh - 3rem); }

  .site-shell { border: 1px solid rgba(222, 239, 234, 0.18); }

  .live-art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .theme-art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .art-dialog { padding: 3rem 1.5rem 1.5rem; }

  .biography-profile {
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: start;
  }

  .biography-profile > img {
    width: 100%;
  }

  .price-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commission-samples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .commission-samples img:first-child {
    grid-column: auto;
  }

  .commerce-list div {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 520px) {
  .shelf-overlay-button {
    right: 3.5%;
    width: 52%;
    min-height: 4.35rem;
    padding: 0.65rem 0.7rem;
  }

  .word-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .word-form-footer button {
    width: 100%;
  }

  .gallery-filter-form { grid-template-columns: 1fr; }

  .gallery-filter-panel > summary > small { display: none; }
}

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