:root {
  --ink: #eaf6ff;
  --muted: #a8c4d7;
  --deep: #071425;
  --navy: #0b1e36;
  --blue: #124a74;
  --cyan: #74d8ef;
  --line: rgba(160, 214, 240, 0.22);
  --panel: rgba(9, 28, 50, 0.78);
  --panel-solid: #10253c;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

/* Akiko's Daily Life */
.akiko-page {
  background: #120b08;
}

.akiko-system {
  min-height: calc(100vh - 76px);
}

.akiko-stage {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background-image: url("../contents/akiko-daily/images/backgrounds/病院.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff8eb;
}

.akiko-stage::before,
.akiko-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.akiko-stage::before {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 215, 150, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(16, 8, 4, 0.58), rgba(22, 12, 9, 0.08) 46%, rgba(8, 10, 18, 0.48));
}

.akiko-stage::after {
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(255, 239, 206, 0.42) 0 1px, transparent 1.4px);
  background-size: 88px 88px;
  animation: akikoLightDust 16s ease-in-out infinite alternate;
}

.akiko-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 16, 0.12), rgba(6, 4, 2, 0.36));
  pointer-events: none;
}

.akiko-loading {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(12, 7, 5, 0.92);
}

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

.akiko-loading > div {
  display: grid;
  gap: 12px;
  text-align: center;
}

.akiko-loading strong {
  font-size: clamp(2rem, 5vw, 4.4rem);
  color: #ffe2b3;
  text-shadow: 0 0 22px rgba(255, 165, 82, 0.38);
}

.akiko-loading span {
  color: #7ee8ff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.akiko-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.12fr) minmax(300px, 0.92fr);
  gap: 22px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 20px clamp(18px, 3vw, 48px);
}

.akiko-control,
.akiko-talk-panel {
  border: 1px solid rgba(244, 177, 104, 0.42);
  border-radius: 8px;
  background: rgba(25, 12, 9, 0.78);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
}

.akiko-control {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 16px;
}

.akiko-logo-image {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.45));
}

.akiko-clock {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  color: #d8edff;
}

.akiko-clock span {
  font-weight: 800;
  color: #7ee8ff;
}

.akiko-clock strong {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1;
}

.akiko-mini-card,
.akiko-room-caption {
  border: 1px solid rgba(255, 221, 161, 0.24);
  border-radius: 8px;
  background: rgba(8, 15, 26, 0.48);
  padding: 12px;
}

.akiko-mini-card h2 {
  margin: 2px 0 6px;
  font-size: 1.12rem;
}

.akiko-food-card {
  display: grid;
  grid-template-columns: 98px 1fr;
  grid-template-areas:
    "label label"
    "image title"
    "image stars"
    "image comment"
    "album album";
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
}

.akiko-food-card .eyebrow {
  grid-area: label;
}

.akiko-food-card h2 {
  grid-area: title;
}

.akiko-food-card .akiko-stars {
  grid-area: stars;
}

#akiko-meal-comment,
#akiko-drink-comment {
  grid-area: comment;
}

.akiko-album-button {
  grid-area: album;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  margin-top: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 219, 147, 0.42);
  border-radius: 8px;
  color: #fff4d8;
  background: linear-gradient(135deg, rgba(116, 49, 30, 0.76), rgba(176, 98, 49, 0.68));
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.akiko-album-button span {
  color: #7ee8ff;
  font-weight: 900;
}

.akiko-album-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 219, 147, 0.78);
  box-shadow: 0 0 18px rgba(255, 195, 113, 0.22);
}

.akiko-image-button {
  grid-area: image;
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
}

.akiko-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 221, 161, 0.26);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.akiko-image-button:hover .akiko-card-image,
.akiko-image-button:focus-visible .akiko-card-image {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(255, 218, 153, 0.78);
  box-shadow: 0 0 22px rgba(255, 195, 113, 0.28), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.akiko-mini-card p:last-child {
  margin-bottom: 0;
  color: #f3dfc2;
  font-size: 0.95rem;
}

.akiko-stars {
  color: #ffd782;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.akiko-character-area {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: calc(100vh - 116px);
}

.akiko-portrait {
  display: block;
  width: min(88%, 500px);
  max-height: calc(100vh - 112px);
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(3vh);
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.42));
}

.akiko-rare {
  position: absolute;
  top: 9%;
  right: 16%;
  z-index: 2;
  padding: 7px 16px;
  border: 1px solid rgba(255, 232, 155, 0.9);
  border-radius: 999px;
  color: #fff0b8;
  background: rgba(139, 49, 63, 0.84);
  box-shadow: 0 0 22px rgba(255, 180, 102, 0.4);
  font-weight: 900;
}

.akiko-birthday-badge {
  top: 9%;
  right: auto;
  left: 16%;
  border-color: rgba(255, 200, 220, 0.9);
  color: #fff0f5;
  background: rgba(196, 68, 120, 0.86);
  box-shadow: 0 0 22px rgba(255, 130, 170, 0.45);
}

.akiko-talk-panel {
  display: grid;
  align-self: center;
  gap: 10px;
  padding: 16px;
}

.akiko-room-caption p {
  margin: 0 0 6px;
  color: #fff2d5;
  font-weight: 900;
}

.akiko-room-caption span,
.akiko-room-caption small {
  display: block;
  color: #d7e6f5;
}

.akiko-room-caption small {
  margin-top: 8px;
  color: #7ee8ff;
}

.akiko-speaker {
  width: fit-content;
  margin: 0;
}

.akiko-dialogue {
  min-height: 110px;
  padding: 16px;
  border: 1px solid rgba(255, 226, 179, 0.28);
  border-left: 4px solid #ffc774;
  background: rgba(4, 10, 18, 0.68);
  color: #fff8eb;
  font-weight: 800;
  line-height: 1.9;
}

.akiko-dialogue span {
  color: #ffe2b3;
}

.akiko-dialogue.is-reacting {
  animation: akikoTalkGlow 0.48s ease;
}

.akiko-line-button {
  min-height: 42px;
  border: 1px solid rgba(255, 219, 147, 0.56);
  border-radius: 8px;
  color: #fff4d8;
  background: linear-gradient(135deg, rgba(116, 49, 30, 0.92), rgba(176, 98, 49, 0.86));
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.akiko-line-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 195, 113, 0.24);
}

.akiko-modal-open {
  overflow: hidden;
}

.akiko-image-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.akiko-image-modal[hidden] {
  display: none;
}

.akiko-album-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 28px;
}

.akiko-album-modal[hidden] {
  display: none;
}

.akiko-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 3, 5, 0.78);
  backdrop-filter: blur(5px);
  cursor: zoom-out;
}

.akiko-modal-card {
  position: relative;
  z-index: 1;
  width: min(78vh, 760px, 90vw);
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 219, 147, 0.58);
  border-radius: 10px;
  background: rgba(25, 12, 9, 0.92);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.akiko-modal-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.akiko-modal-card figcaption {
  margin-top: 12px;
  color: #fff2d5;
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
}

.akiko-album-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(980px, 92vw);
  max-height: min(760px, 88vh);
  padding: 20px;
  border: 1px solid rgba(255, 219, 147, 0.58);
  border-radius: 10px;
  background: rgba(25, 12, 9, 0.94);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.akiko-album-scroll {
  min-height: 0;
  overflow-y: auto;
}

.akiko-album-card h1 {
  margin: 4px 0 8px;
  color: #fff2d5;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.akiko-album-scroll > p:not(.eyebrow) {
  margin: 0 0 16px;
  color: #f3dfc2;
}

.akiko-album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.akiko-album-item {
  min-height: 150px;
  padding: 10px;
  border: 1px solid rgba(255, 221, 161, 0.22);
  border-radius: 8px;
  background: rgba(8, 15, 26, 0.54);
  text-align: center;
}

.akiko-album-item img,
.akiko-album-hidden {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.akiko-album-hidden {
  border: 1px dashed rgba(255, 221, 161, 0.28);
  color: rgba(255, 242, 213, 0.42);
  font-size: 2.4rem;
  font-weight: 900;
}

.akiko-album-item h2 {
  margin: 8px 0 0;
  color: #fff2d5;
  font-size: 0.95rem;
}

.akiko-album-item:not(.is-unlocked) h2 {
  color: rgba(243, 223, 194, 0.58);
}

.akiko-reward {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 221, 161, 0.28);
}

.akiko-reward h2 {
  margin: 4px 0 6px;
  color: #fff2d5;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.akiko-reward > p:not(.eyebrow) {
  margin: 0 0 14px;
  color: #f3dfc2;
}

.akiko-reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.akiko-reward-item {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 221, 161, 0.3);
  border-radius: 8px;
  background: rgba(8, 15, 26, 0.54);
  color: #ffe9c4;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.akiko-reward-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.akiko-reward-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.bar-side-actions {
  display: grid;
  gap: 8px;
}

.bar-side-actions .button {
  width: 100%;
  justify-content: center;
}

.bar-violin-button {
  border-color: rgba(225, 178, 96, 0.58);
  color: #fff2bf;
  background:
    linear-gradient(135deg, rgba(76, 24, 35, 0.86), rgba(109, 69, 31, 0.82)),
    radial-gradient(circle at 20% 10%, rgba(255, 229, 166, 0.22), transparent 11rem);
  box-shadow: inset 0 1px 0 rgba(255, 237, 193, 0.14), 0 0 20px rgba(225, 178, 96, 0.12);
}

.bar-violin-button:hover:not(:disabled) {
  border-color: rgba(255, 226, 159, 0.95);
  box-shadow: 0 0 0 1px rgba(227, 182, 106, 0.34), 0 0 24px rgba(227, 182, 106, 0.28);
}

.bar-violin-button:disabled {
  cursor: default;
  opacity: 0.88;
}

.bar-album-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(5px);
}

.bar-album-modal[hidden] {
  display: none;
}

.bar-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.bar-album-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(980px, 92vw);
  max-height: min(760px, 88vh);
  padding: 20px;
  border: 1px solid rgba(121, 229, 255, 0.42);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(9, 20, 38, 0.96), rgba(15, 30, 52, 0.94));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
}

.bar-album-scroll {
  min-height: 0;
  overflow-y: auto;
}

.bar-album-card h1 {
  margin: 4px 0 8px;
  color: #eaf8ff;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.bar-album-scroll > p:not(.eyebrow) {
  margin: 0 0 16px;
  color: #bcdcec;
}

.bar-album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bar-album-item {
  min-height: 150px;
  padding: 10px;
  border: 1px solid rgba(121, 229, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 15, 26, 0.54);
  text-align: center;
}

.bar-album-item img,
.bar-album-hidden {
  display: grid;
  place-items: center;
  width: 100%;
  /* カクテルカードは1536x1024(3:2)の横長。枠も3:2にして見切れを防ぐ */
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.bar-album-hidden {
  border: 1px dashed rgba(121, 229, 255, 0.28);
  color: rgba(210, 240, 255, 0.42);
  font-size: 2.4rem;
  font-weight: 900;
}

.bar-album-item h2 {
  margin: 8px 0 0;
  color: #eaf8ff;
  font-size: 0.95rem;
}

.bar-album-item:not(.is-unlocked) h2 {
  color: rgba(188, 220, 236, 0.58);
}

.bar-album-reward {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(121, 229, 255, 0.28);
  color: #eaf8ff;
}

.bar-album-reward h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.bar-album-reward p:not(.eyebrow) {
  margin: 0;
  color: #bcdcec;
}

.bar-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(121, 229, 255, 0.68);
  border-radius: 50%;
  color: #0b1e36;
  background: #79e5ff;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(121, 229, 255, 0.32);
}

@media (max-width: 640px) {
  .bar-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.akiko-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 232, 155, 0.78);
  border-radius: 50%;
  color: #2b140b;
  background: #ffe2a6;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 195, 113, 0.32);
}

.akiko-checkup {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 221, 161, 0.24);
  border-radius: 8px;
  background: rgba(8, 15, 26, 0.48);
}

.akiko-checkup-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.akiko-checkup-buttons button {
  min-height: 34px;
  border: 1px solid rgba(255, 219, 147, 0.38);
  border-radius: 8px;
  color: #fff4d8;
  background: rgba(116, 49, 30, 0.66);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.akiko-checkup-buttons button:hover,
.akiko-checkup-buttons button.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 219, 147, 0.78);
  background: rgba(176, 98, 49, 0.86);
}

.akiko-checkup-result {
  margin: 0;
  color: #f3dfc2;
  font-size: 0.92rem;
  line-height: 1.7;
}

@keyframes akikoLightDust {
  from {
    transform: translate3d(-1%, -1%, 0);
    opacity: 0.22;
  }
  to {
    transform: translate3d(1%, 1%, 0);
    opacity: 0.52;
  }
}

@keyframes akikoTalkGlow {
  0% {
    box-shadow: 0 0 0 rgba(255, 195, 113, 0);
  }
  55% {
    box-shadow: 0 0 22px rgba(255, 195, 113, 0.25);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 195, 113, 0);
  }
}

@media (max-width: 1180px) {
  .akiko-content {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .akiko-control {
    max-height: none;
    overflow: visible;
  }

  .akiko-character-area {
    order: -1;
    min-height: 520px;
  }

  .akiko-portrait {
    max-height: 520px;
  }
}

@media (max-width: 640px) {
  .akiko-content {
    padding: 20px 14px 28px;
  }

  .akiko-control,
  .akiko-talk-panel {
    padding: 14px;
  }

  .akiko-character-area {
    min-height: 420px;
  }

  .akiko-portrait {
    width: min(100%, 360px);
    max-height: 420px;
  }
}

.special-card.akiko {
  border-color: rgba(244, 177, 104, 0.46);
}

.special-card.akiko img {
  object-fit: contain;
  object-position: center bottom;
  background: radial-gradient(circle at center, rgba(255, 189, 113, 0.18), transparent 58%), #050b12;
}

.special-card.akiko span {
  border-color: rgba(244, 177, 104, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(90, 176, 209, 0.22), transparent 30rem),
    linear-gradient(180deg, #06101e 0%, #0b1c32 52%, #081423 100%);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

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

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.room-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.room-loading.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.room-loading > div {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(560px, 88vw);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 14, 26, 0.78);
  box-shadow: 0 0 40px rgba(116, 216, 239, 0.16);
  backdrop-filter: blur(12px);
}

.room-loading-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.room-loading-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
}

.room-loading-text {
  margin: 0;
  color: var(--muted);
}

.room-loading span {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--cyan);
  border-radius: 999px;
  animation: roomLoadingSpin 0.9s linear infinite;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 30, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(116, 216, 239, 0.7);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(116, 216, 239, 0.18), rgba(255, 255, 255, 0.04));
  color: var(--cyan);
  font-size: 0.9rem;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(116, 216, 239, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-image: var(--hero-season-bg, url("../assets/background/night-sea-hero.png"));
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: 1;
  pointer-events: none;
  background-image: var(--hero-season-effect, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--hero-season-effect-opacity, 0);
  animation: heroEffectDrift 26s ease-in-out infinite;
}

@keyframes heroEffectDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-1.4%, -1%, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 120px;
  background: linear-gradient(180deg, transparent, #071425);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 26, 0.86), rgba(5, 13, 26, 0.42) 48%, rgba(5, 13, 26, 0.62)),
    linear-gradient(180deg, rgba(5, 13, 26, 0.18), rgba(5, 13, 26, 0.76));
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(720px, 90vw);
  margin-left: 5vw;
  padding: 80px 0 140px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  letter-spacing: 0;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.catch {
  margin: 18px 0 14px;
  color: var(--white);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.hero-copy {
  max-width: 660px;
  margin: 0;
  color: #d7e8f3;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  color: #04101b;
  background: linear-gradient(135deg, #b9f4ff, #74d8ef);
  box-shadow: 0 12px 28px rgba(116, 216, 239, 0.22);
}

.button.trial {
  border-color: rgba(255, 191, 117, 0.72);
  color: #2a1205;
  background: linear-gradient(135deg, #ffe3a3, #ff9f6f);
  box-shadow: 0 12px 28px rgba(255, 159, 111, 0.22);
}

.button.trial:hover {
  color: #160901;
  box-shadow: 0 14px 32px rgba(255, 181, 105, 0.34), 0 0 18px rgba(255, 219, 154, 0.24);
}

.button.ghost,
.button.muted {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.button.small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.9rem;
}

.content-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.content-back-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(116, 216, 239, 0.38);
  border-radius: 999px;
  color: #dff7ff;
  background: rgba(6, 16, 30, 0.52);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.content-back-button:hover {
  transform: translateY(-1px);
  border-color: rgba(116, 216, 239, 0.78);
  background: rgba(25, 73, 102, 0.56);
  box-shadow: 0 0 18px rgba(116, 216, 239, 0.18);
}

.content-audio-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  padding: 5px 8px 5px 5px;
  border: 1px solid rgba(255, 213, 141, 0.44);
  border-radius: 999px;
  background: rgba(6, 16, 30, 0.58);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.content-bgm-toggle {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-width: 84px;
  min-height: 36px;
  padding: 6px 11px !important;
  border: 1px solid rgba(255, 213, 141, 0.8) !important;
  border-radius: 999px !important;
  color: #fff3cf !important;
  background: linear-gradient(135deg, rgba(78, 38, 22, 0.92), rgba(142, 80, 43, 0.88)) !important;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 16px rgba(255, 196, 120, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.content-bgm-toggle span {
  display: grid !important;
  place-items: center;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  color: #2c1608 !important;
  background: #ffe0a0 !important;
  font-size: 0.9rem !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.content-bgm-toggle strong {
  color: inherit !important;
  font-size: 0.9rem !important;
}

.content-bgm-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 24px rgba(255, 196, 120, 0.28);
}

.content-bgm-toggle[aria-pressed="true"] {
  color: #101018 !important;
  background: linear-gradient(135deg, #ffe3a3, #9eeeff) !important;
  box-shadow: 0 0 26px rgba(158, 238, 255, 0.26), 0 0 18px rgba(255, 227, 163, 0.22);
}

.content-bgm-toggle[aria-pressed="true"] span {
  color: #fff7db !important;
  background: #2a170b !important;
}

.content-volume-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-right: 0;
  color: #f8e8c6;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.content-volume-slider {
  flex: 0 1 64px;
  width: 64px;
  min-width: 48px;
  max-width: 64px;
  accent-color: #9eeeff;
}

.section {
  padding: 82px 0;
}

.section-tint {
  background: rgba(255, 255, 255, 0.035);
  border-block: 1px solid rgba(160, 214, 240, 0.12);
}

.section-inner {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: #cfe0ec;
}

.gateway-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.18fr) minmax(280px, 0.82fr);
  gap: 20px;
  align-items: stretch;
}

.today-pick,
.gateway-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.today-pick {
  overflow: hidden;
}

.today-pick a {
  display: grid;
  grid-template-columns: minmax(240px, 42%) 1fr;
  min-height: 100%;
}

.today-pick-media {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 140, 207, 0.18), rgba(128, 231, 255, 0.12)),
    var(--today-pick-bg, url("../contents/kaede-rhythm/images/ライブドーム背景.png")) center / cover no-repeat;
}

.today-pick-media img {
  display: block;
  width: min(100%, 300px);
  filter: drop-shadow(0 0 18px rgba(255, 140, 207, 0.32));
}

.today-pick-body {
  display: grid;
  align-content: center;
  padding: clamp(20px, 3vw, 34px);
}

.today-pick-body h3 {
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.today-pick-body p:not(.genre) {
  color: #cfe0ec;
}

.today-pick-body span,
.gateway-tile span {
  color: #b9f4ff;
  font-weight: 700;
}

.today-pick-body span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 16px;
  padding: 4px 13px;
  border: 1px solid rgba(255, 140, 207, 0.5);
  border-radius: 999px;
  color: #ffbde4;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gateway-tile {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.gateway-tile strong {
  color: #ffffff;
  font-size: 1.1rem;
}

.gateway-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(116, 216, 239, 0.48);
  background: rgba(116, 216, 239, 0.08);
}

.content-type-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 22px;
}

.content-type-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 13px;
  border: 1px solid rgba(116, 216, 239, 0.34);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.045);
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-list article {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--cyan);
  font-weight: 700;
}

.news-list p {
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.work-card,
.mini-card,
.prompt-card,
.link-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.work-card {
  overflow: hidden;
}

.work-card.wide {
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
}

.thumb {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(135deg, #12375a, #1d7198);
}

.thumb span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.thumb-cyan {
  background: linear-gradient(135deg, #0f4058, #49a8c5);
}

.thumb-violet {
  background: linear-gradient(135deg, #18254d, #6c75c8);
}

.thumb-moon {
  background: linear-gradient(135deg, #0b2139, #8ca5c7);
}

.thumb-rose {
  background: linear-gradient(135deg, #173249, #b17a9b);
}

.work-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--panel-solid);
}

.work-media::before {
  content: "";
  display: block;
  padding-top: 66.6667%;
}

.work-card.wide .work-media {
  height: 100%;
}

.work-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.special-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.special-window {
  overflow: hidden;
}

.special-grid {
  display: flex;
  gap: 18px;
  transition: transform 0.36s ease;
  will-change: transform;
}

.special-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(116, 216, 239, 0.42);
  border-radius: 999px;
  color: #eaf6ff;
  background: rgba(9, 28, 50, 0.78);
  font: inherit;
  font-size: 2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, background 0.22s ease, opacity 0.22s ease;
}

.special-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(18, 74, 116, 0.78);
}

.special-arrow:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.special-card {
  flex: 0 0 calc((100% - 36px) / 3);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.special-card a {
  display: grid;
  min-height: 100%;
}

.special-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  padding: 18px;
  background: #050d18;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.special-card.yuki img {
  padding: 8px;
}

.special-card.haruka img {
  padding: 20px;
}

.special-card.fuyu img {
  padding: 14px;
}

.special-card.sakura img {
  padding: 14px;
  object-position: center;
}

.special-card.kaede img {
  padding: 14px;
  object-position: center;
}

.special-card.yukine img {
  padding: 18px;
  object-fit: contain;
}

.special-card div {
  padding: 18px;
}

.special-card h3 {
  margin-bottom: 8px;
  color: #ffffff;
}

.special-card span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(116, 216, 239, 0.42);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 700;
}

.special-card:hover img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.special-card:hover span {
  color: #ffffff;
  background: rgba(116, 216, 239, 0.14);
}

.special-card.reika {
  border-color: rgba(225, 178, 96, 0.36);
}

.special-card.reika span {
  border-color: rgba(225, 178, 96, 0.5);
  color: #ffe9bd;
}

.special-card.yuki {
  border-color: rgba(206, 190, 255, 0.34);
}

.special-card.yuki span {
  border-color: rgba(206, 190, 255, 0.5);
  color: #ded6ff;
}

.special-card.ami {
  border-color: rgba(255, 111, 185, 0.34);
}

.special-card.ami span {
  border-color: rgba(255, 111, 185, 0.5);
  color: #ffb7de;
}

.special-card.haruka {
  border-color: rgba(255, 213, 141, 0.38);
}

.special-card.haruka span {
  border-color: rgba(255, 213, 141, 0.55);
  color: #ffe4ad;
}

.special-card.fuyu {
  border-color: rgba(255, 172, 99, 0.38);
}

.special-card.fuyu span {
  border-color: rgba(255, 172, 99, 0.55);
  color: #ffd2a3;
}

.special-card.sakura {
  border-color: rgba(255, 159, 205, 0.38);
}

.special-card.sakura span {
  border-color: rgba(255, 159, 205, 0.55);
  color: #ffc9e4;
}

.special-card.natsumi {
  border-color: rgba(116, 216, 239, 0.42);
}

.special-card.natsumi span {
  border-color: rgba(116, 216, 239, 0.58);
  color: #dff8ff;
}

.special-card.kaede {
  border-color: rgba(255, 140, 207, 0.42);
}

.special-card.kaede span {
  border-color: rgba(255, 140, 207, 0.58);
  color: #ffbde4;
}

.special-card.yukine {
  border-color: rgba(179, 200, 255, 0.42);
}

.special-card.yukine span {
  border-color: rgba(179, 200, 255, 0.58);
  color: #dbe6ff;
}

.card-body {
  padding: 22px;
}

.genre {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 700;
}

.card-body p:not(.genre) {
  color: #cfe0ec;
}

.text-link {
  color: var(--cyan);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(116, 216, 239, 0.45);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(116, 216, 239, 0.1);
  font-size: 0.9rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.link-panel,
.link-list {
  display: grid;
  gap: 12px;
}

.link-panel a,
.link-list a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-weight: 700;
}

.page-hero {
  padding: 84px 0 50px;
  background:
    linear-gradient(180deg, rgba(12, 42, 70, 0.78), rgba(7, 20, 37, 0.96)),
    url("../assets/background/night-sea-hero.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.page-hero p:last-child {
  max-width: 700px;
  color: #cfe0ec;
}

.work-list,
.prompt-list {
  display: grid;
  gap: 20px;
}

.prompt-table-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.prompt-table-panel .section-heading {
  padding: 22px 22px 0;
}

.prompt-table-wrap {
  overflow-x: auto;
  padding: 0 22px 22px;
}

.prompt-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.prompt-table th,
.prompt-table td {
  border: 1px solid rgba(160, 214, 240, 0.2);
  padding: 12px;
  vertical-align: top;
}

.prompt-table th {
  color: var(--white);
  background: rgba(116, 216, 239, 0.2);
  text-align: left;
}

.prompt-table .prompt-category th {
  color: var(--cyan);
  background: rgba(116, 216, 239, 0.12);
  font-size: 1rem;
}

.prompt-table td:nth-child(1),
.prompt-table td:nth-child(3) {
  color: #eaf6ff;
  background: rgba(255, 255, 255, 0.045);
  font-weight: 700;
}

.copy-prompt {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid rgba(116, 216, 239, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.copy-prompt:hover,
.copy-prompt.is-copied {
  color: #04101b;
  background: var(--cyan);
}

.copy-status {
  min-height: 28px;
  margin: -10px 22px 18px;
  color: var(--cyan);
  font-size: 0.9rem;
}

.free-novels {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.free-novels h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.free-novel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.free-novel-card {
  overflow: hidden;
  border: 1px solid rgba(160, 214, 240, 0.16);
  border-radius: 8px;
  background: rgba(9, 28, 50, 0.58);
}

.free-novel-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--panel-solid);
}

.free-novel-card div {
  padding: 14px;
}

.free-novel-card h3 {
  font-size: 1rem;
}

.free-novel-card p {
  margin: 8px 0 10px;
  color: #cfe0ec;
  font-size: 0.9rem;
}

.free-novel-card ul {
  margin: 8px 0 10px;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.86rem;
}

.free-novel-card .text-link {
  font-size: 0.9rem;
}

.detail-hero {
  padding: 74px 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12, 42, 70, 0.78), rgba(7, 20, 37, 0.96)),
    url("../assets/background/night-sea-hero.png");
  background-size: cover;
  background-position: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 44%) 1fr;
  gap: 32px;
  align-items: center;
}

.detail-cover,
.sample-placeholder {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
}

.detail-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.detail-copy h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.detail-copy p {
  color: #d7e8f3;
}

.detail-sections {
  display: grid;
  gap: 22px;
}

.info-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.info-panel h2 {
  margin-bottom: 14px;
}

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

.info-grid div {
  padding: 14px;
  border: 1px solid rgba(160, 214, 240, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.info-grid strong,
.info-grid span {
  display: block;
}

.info-grid strong {
  color: var(--cyan);
  font-size: 0.85rem;
}

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

.sample-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  color: var(--muted);
  font-weight: 700;
}

.sample-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
}

.zoomable-image {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 10, 18, 0.82);
  backdrop-filter: blur(8px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.image-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(160, 214, 240, 0.6);
  border-radius: 999px;
  color: #eaf8ff;
  background: rgba(9, 28, 50, 0.9);
  font: inherit;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.room-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.room-link-grid.single {
  grid-template-columns: minmax(200px, 320px);
}

.room-link-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(160, 214, 240, 0.16);
  border-radius: 8px;
  color: inherit;
  background: rgba(9, 28, 50, 0.58);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.room-link-card:hover {
  border-color: rgba(121, 229, 255, 0.5);
  transform: translateY(-2px);
}

.room-link-card img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.room-link-card h3 {
  margin: 10px 12px 4px;
  color: #eaf8ff;
  font-size: 1rem;
}

.room-link-card p {
  margin: 0 12px 12px;
  color: rgba(214, 236, 248, 0.75);
  font-size: 0.85rem;
}

.character-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.character-link-grid.single {
  grid-template-columns: minmax(180px, 260px);
}

.character-link-grid.two {
  grid-template-columns: repeat(2, minmax(180px, 260px));
}

.character-link-card {
  overflow: hidden;
  border: 1px solid rgba(160, 214, 240, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.character-link-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.character-link-card span {
  display: block;
  padding: 10px 12px;
  color: var(--cyan);
  font-weight: 700;
}

.character-link-card p {
  margin: -4px 12px 12px;
  color: #cfe0ec;
  font-size: 0.9rem;
}

.character-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 54px;
  border-bottom: 1px solid var(--line);
  background: #050d18;
}

.character-detail-inner {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 34px;
  align-items: center;
}

.character-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.character-detail-copy {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(160, 214, 240, 0.16);
  border-radius: 8px;
  background: rgba(5, 13, 26, 0.72);
}

.character-copy-back {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.48;
}

.character-detail-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 13, 26, 0.12), rgba(5, 13, 26, 0.6));
}

.character-detail-copy > :not(.character-copy-back) {
  position: relative;
  z-index: 2;
}

.character-detail-copy h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.character-detail-copy p {
  color: #d7e8f3;
}

.character-detail-copy blockquote {
  padding-left: 16px;
  border-left: 3px solid var(--cyan);
  font-size: 1.15rem;
}

.profile-table.compact div {
  grid-template-columns: 160px 1fr;
}

.character-extra-sections {
  display: grid;
  gap: 22px;
}

.back-art {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  border: 1px solid rgba(160, 214, 240, 0.16);
  border-radius: 8px;
  background: var(--panel-solid);
}

.theme-song audio {
  width: 100%;
  margin: 8px 0 18px;
}

.lyric-card {
  display: block;
  width: 100%;
  object-fit: contain;
  border: 1px solid rgba(160, 214, 240, 0.16);
  border-radius: 8px;
  background: var(--panel-solid);
}

.bar-page {
  background: #050908;
}

.bar-system {
  min-height: calc(100vh - 72px);
}

.bar-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: url("../contents/reika-bar/images/レイカのバー.png") center / cover no-repeat;
}

.bar-stage::before,
.bar-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bar-stage::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 209, 132, 0.12), transparent 14rem),
    radial-gradient(circle at 72% 18%, rgba(255, 209, 132, 0.1), transparent 12rem);
  mix-blend-mode: screen;
  animation: barLightBreath 6.5s ease-in-out infinite;
}

.bar-stage::after {
  opacity: 0.32;
  background-image:
    radial-gradient(circle, rgba(255, 225, 164, 0.36) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.6px);
  background-position: 12% 24%, 68% 36%;
  background-size: 240px 180px, 320px 220px;
  animation: barDust 14s linear infinite;
}

.bar-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 49% 38%, rgba(141, 65, 32, 0.22), transparent 24rem),
    radial-gradient(circle at 80% 42%, rgba(225, 178, 96, 0.15), transparent 30rem),
    linear-gradient(90deg, rgba(5, 8, 10, 0.94), rgba(5, 8, 10, 0.48) 45%, rgba(5, 8, 10, 0.88));
}

.bar-content {
  position: relative;
  z-index: 2;
  width: min(1780px, 94vw);
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(260px, 25fr) minmax(300px, 30fr) minmax(440px, 45fr);
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  margin: 0 auto;
  padding: 18px 0;
}

.bar-ui {
  align-content: start;
}

.bar-ui,
.cocktail-result {
  border: 1px solid rgba(225, 178, 96, 0.42);
  border-radius: 8px;
  background: rgba(12, 9, 9, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.bar-ui {
  position: relative;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: clamp(18px, 1.7vw, 28px);
}

.bar-logo {
  display: block;
  width: min(230px, 70%);
  margin: 0 auto 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(227, 182, 106, 0.24));
}

.speaker-name {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 4px 16px;
  border: 1px solid rgba(225, 178, 96, 0.5);
  border-radius: 8px 8px 0 0;
  color: #fff5dd;
  background: linear-gradient(180deg, rgba(120, 31, 42, 0.72), rgba(65, 21, 22, 0.86));
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px rgba(225, 178, 96, 0.18);
}

.bar-dialogue {
  position: relative;
  margin: 0 0 14px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(225, 178, 96, 0.38);
  border-left: 4px solid #d9a85c;
  color: #ffe9bd;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.78), rgba(31, 22, 17, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 231, 184, 0.08), 0 10px 24px rgba(0, 0, 0, 0.24);
}

.bar-dialogue::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 0 12px;
  background: linear-gradient(90deg, rgba(225, 178, 96, 0.85), rgba(225, 178, 96, 0.12));
}

.bar-dialogue span {
  display: inline-block;
  margin-top: 8px;
  color: #ffffff;
}

.mood-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.mood-buttons button,
.bgm-toggle {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(225, 178, 96, 0.44);
  border-radius: 8px;
  color: #ffe9bd;
  background: rgba(120, 31, 42, 0.44);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mood-buttons button {
  justify-content: flex-start;
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.mood-drunk {
  background: rgba(120, 31, 42, 0.7) !important;
}

.mood-relax {
  background: rgba(54, 75, 86, 0.7) !important;
}

.mood-high {
  background: rgba(46, 78, 132, 0.72) !important;
}

.mood-sweet {
  background: rgba(127, 55, 89, 0.72) !important;
}

.mood-adult {
  background: rgba(82, 57, 39, 0.78) !important;
}

.mood-buttons button:hover,
.bgm-toggle:hover {
  border-color: rgba(255, 226, 159, 0.94);
  color: #fff8de;
  box-shadow: 0 0 0 1px rgba(227, 182, 106, 0.34), 0 0 20px rgba(227, 182, 106, 0.32);
}

.mood-buttons button:hover {
  transform: translateY(-2px);
}

.bgm-toggle {
  position: absolute;
  top: -28px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  min-height: 54px;
  padding: 0 15px 0 10px;
  border-radius: 999px;
  margin: 0;
  color: #ffe9bd;
  background: radial-gradient(circle at 35% 35%, rgba(80, 46, 27, 0.95), rgba(12, 8, 7, 0.92));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bgm-toggle span {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 232, 170, 0.9);
  background: radial-gradient(circle, rgba(33, 17, 12, 0.96) 0 28%, rgba(226, 182, 106, 0.78) 31% 36%, rgba(28, 16, 12, 0.95) 39%);
  font-size: 1rem;
  line-height: 1;
  text-indent: -999px;
  overflow: hidden;
}

.bgm-toggle span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffe9bd;
  box-shadow: 0 0 8px rgba(255, 232, 170, 0.72);
}

.bgm-toggle strong {
  color: #fff2bf;
  font-size: 0.95rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(227, 182, 106, 0.58);
}

.bgm-toggle[aria-pressed="true"] {
  color: #fff4c8;
  background: radial-gradient(circle at 35% 35%, rgba(145, 80, 36, 0.96), rgba(60, 24, 16, 0.94));
  box-shadow: 0 0 0 1px rgba(227, 182, 106, 0.35), 0 0 28px rgba(227, 182, 106, 0.44);
}

.bgm-toggle[aria-pressed="true"] strong {
  color: #fff4c8;
  text-shadow: 0 0 10px rgba(227, 182, 106, 0.58);
}

.bgm-toggle[aria-pressed="true"] span {
  animation: recordSpin 4s linear infinite;
}

.bgm-toggle[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 2px;
  background: #e76d6d;
  transform: rotate(-38deg);
  border-radius: 999px;
}

.cocktail-result {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  max-height: calc(100vh - 120px);
  gap: 12px;
  padding: clamp(14px, 1.5vw, 22px);
  opacity: 1;
  transform: translateY(0);
}

.serving-overlay {
  display: grid;
  place-items: center;
  min-height: min(42vh, 420px);
  border: 1px solid rgba(225, 178, 96, 0.42);
  border-radius: 8px;
  color: #fff2bf;
  background: radial-gradient(circle at center, rgba(124, 70, 30, 0.32), rgba(5, 5, 7, 0.76));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(227, 182, 106, 0.48);
}

.cocktail-card-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  border: 1px dashed rgba(225, 178, 96, 0.52);
  border-radius: 8px;
  color: #e3b66a;
  background: rgba(0, 0, 0, 0.24);
  font-weight: 700;
}

.cocktail-empty {
  display: grid;
  align-content: center;
  min-height: min(42vh, 420px);
  padding: clamp(22px, 3vw, 44px);
  border: 1px dashed rgba(225, 178, 96, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(25, 15, 9, 0.72), rgba(5, 5, 7, 0.66));
}

.cocktail-empty h2 {
  margin: 8px 0 14px;
  color: #fff5dd;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
}

.cocktail-empty p {
  color: #ffe9bd;
}

.cocktail-card-image {
  display: block;
  width: 100%;
  max-height: min(58vh, 620px);
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border: 1px solid rgba(225, 178, 96, 0.42);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.cocktail-result.is-selected {
  animation: cocktailFade 0.46s ease both;
}

.cocktail-result:not(.is-selected) .cocktail-text {
  display: none;
}

.cocktail-result.is-selected .cocktail-text {
  display: block;
}

.cocktail-text h2 {
  color: #fff5dd;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
}

.cocktail-text p {
  color: #ffe9bd;
}

.bar-character {
  position: relative;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: calc(100vh - 112px);
  pointer-events: none;
}

.bar-reika {
  width: min(31vw, 520px);
  max-height: calc(100vh - 96px);
  object-fit: contain;
  object-position: bottom center;
  transform: translateY(22px);
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.55));
}

.bar-stage.is-violin .bar-reika {
  width: min(34vw, 570px);
  filter:
    drop-shadow(0 24px 36px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 24px rgba(225, 178, 96, 0.22));
}

.bar-stage.is-violin .bar-character::before {
  content: "";
  position: absolute;
  width: min(34vw, 520px);
  height: min(34vw, 520px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(225, 178, 96, 0.18), transparent 68%);
  pointer-events: none;
}

@keyframes cocktailFade {
  from {
    opacity: 0.35;
    transform: translateY(10px) scale(0.985);
  }

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

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

@keyframes barLightBreath {
  0%,
  100% {
    opacity: 0.48;
  }

  50% {
    opacity: 0.78;
  }
}

@keyframes barDust {
  to {
    background-position: 12% 34%, 68% 46%;
  }
}

.fortune-page {
  background: #050713;
}

.fortune-system {
  min-height: calc(100vh - 72px);
}

.fortune-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: url("../contents/yuki-fortune/images/ユウキの占い部屋.png") center / cover no-repeat;
}

.fortune-stage::before,
.fortune-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fortune-stage::before {
  background:
    radial-gradient(circle at 26% 28%, rgba(179, 150, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 70% 18%, rgba(202, 222, 255, 0.14), transparent 16rem);
  mix-blend-mode: screen;
  animation: fortuneMoonGlow 7s ease-in-out infinite;
}

.fortune-stage::after {
  opacity: 0.34;
  background-image:
    radial-gradient(circle, rgba(221, 224, 255, 0.55) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(178, 139, 255, 0.32) 0 1px, transparent 1.6px);
  background-position: 14% 22%, 72% 32%;
  background-size: 230px 180px, 310px 230px;
  animation: fortuneStars 18s linear infinite;
}

.fortune-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 19, 0.92), rgba(11, 10, 35, 0.48) 46%, rgba(5, 7, 19, 0.88)),
    radial-gradient(circle at 50% 44%, rgba(96, 61, 142, 0.18), transparent 32rem);
}

.fortune-content {
  position: relative;
  z-index: 2;
  width: min(1780px, 94vw);
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(280px, 27fr) minmax(300px, 29fr) minmax(420px, 44fr);
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  margin: 0 auto;
  padding: 18px 0;
}

.fortune-ui,
.fortune-result {
  border: 1px solid rgba(206, 190, 255, 0.38);
  border-radius: 8px;
  background: rgba(8, 9, 26, 0.74);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.4), 0 0 28px rgba(116, 88, 176, 0.16);
  backdrop-filter: blur(11px);
}

.fortune-ui {
  position: relative;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: clamp(18px, 1.7vw, 28px);
}

.fortune-logo {
  display: block;
  width: min(270px, 78%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: -30px auto -12px;
  filter: drop-shadow(0 0 18px rgba(190, 170, 255, 0.24));
}

.fortune-speaker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 4px 16px;
  border: 1px solid rgba(206, 190, 255, 0.46);
  border-radius: 8px 8px 0 0;
  color: #f6f1ff;
  background: linear-gradient(180deg, rgba(61, 48, 112, 0.78), rgba(24, 20, 52, 0.9));
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fortune-dialogue {
  margin: 0 0 14px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(206, 190, 255, 0.36);
  border-left: 4px solid #c9b8ff;
  color: #eee9ff;
  background: linear-gradient(180deg, rgba(7, 8, 22, 0.78), rgba(26, 22, 54, 0.72));
  box-shadow: inset 0 1px 0 rgba(235, 229, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.fortune-dialogue::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 12px;
  background: linear-gradient(90deg, rgba(206, 190, 255, 0.82), rgba(206, 190, 255, 0.08));
}

.fortune-dialogue span {
  display: inline-block;
  margin-top: 8px;
  color: #ffffff;
}

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

.zodiac-buttons button,
.fortune-bgm-toggle {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(206, 190, 255, 0.36);
  border-radius: 8px;
  color: #eee9ff;
  background: rgba(41, 37, 84, 0.68);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.zodiac-buttons button {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.zodiac-buttons button:hover,
.fortune-bgm-toggle:hover {
  border-color: rgba(234, 226, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(206, 190, 255, 0.28), 0 0 18px rgba(151, 120, 255, 0.28);
}

.zodiac-buttons button:hover {
  transform: translateY(-2px);
}

.zodiac-buttons button.is-last-visited {
  border-color: rgba(151, 120, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(151, 120, 255, 0.4), 0 0 16px rgba(151, 120, 255, 0.32);
}

.zodiac-buttons button.is-last-visited::after {
  content: " ✓";
  color: #c9b6ff;
}

.fortune-bgm-toggle {
  position: absolute;
  top: -28px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  color: #f3edff;
  background: radial-gradient(circle at 35% 35%, rgba(78, 65, 128, 0.98), rgba(11, 10, 28, 0.94));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
}

.fortune-bgm-toggle span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(238, 231, 255, 0.8);
  border-radius: 999px;
  color: #fff9d4;
  background: radial-gradient(circle, rgba(255, 248, 214, 0.22), rgba(45, 35, 90, 0.9));
}

.fortune-bgm-toggle[aria-pressed="true"] {
  box-shadow: 0 0 0 1px rgba(206, 190, 255, 0.32), 0 0 26px rgba(151, 120, 255, 0.38);
}

.fortune-bgm-toggle[aria-pressed="true"] span {
  animation: fortunePulse 2.4s ease-in-out infinite;
}

.fortune-result {
  position: relative;
  display: grid;
  align-content: center;
  min-height: min(62vh, 620px);
  max-height: calc(100vh - 120px);
  padding: clamp(18px, 2vw, 28px);
  overflow: hidden;
}

.fortune-result::before {
  content: "";
  position: absolute;
  inset: -28%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at center, rgba(211, 182, 255, 0.42), transparent 28%),
    radial-gradient(circle at 48% 52%, rgba(125, 85, 255, 0.24), transparent 42%);
  transform: scale(0.72);
}

.fortune-result.is-ready::before {
  animation: fortuneResultGlow 1.15s ease-out both;
}

.fortune-empty,
.fortune-waiting,
.fortune-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(206, 190, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 14, 38, 0.78), rgba(7, 8, 22, 0.7));
}

.fortune-empty,
.fortune-waiting {
  display: grid;
  align-content: center;
  min-height: min(46vh, 440px);
  padding: clamp(24px, 4vw, 52px);
}

.fortune-empty h2,
.fortune-card h2 {
  margin: 8px 0 14px;
  color: #fbf8ff;
}

.fortune-empty p {
  color: #ded6ff;
}

.fortune-waiting {
  place-items: center;
  color: #f6f1ff;
  font-size: clamp(1.3rem, 2.2vw, 2.3rem);
  text-shadow: 0 0 18px rgba(190, 170, 255, 0.42);
  animation: fortuneWaiting 1.6s ease-in-out infinite;
}

.fortune-card {
  padding: clamp(22px, 3vw, 44px);
  animation: fortuneCard 0.48s ease both;
}

.fortune-card blockquote {
  margin: 16px 0 22px;
  padding-left: 16px;
  border-left: 3px solid #c9b8ff;
  color: #fff;
}

.fortune-lucky {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.fortune-lucky div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(206, 190, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.fortune-lucky dt {
  color: #c9b8ff;
  font-weight: 700;
}

.fortune-lucky dd {
  margin: 0;
  color: #f6f1ff;
}

.fortune-character {
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: calc(100vh - 112px);
  pointer-events: none;
}

.fortune-yuuki {
  width: min(32vw, 500px);
  max-height: calc(100vh - 98px);
  object-fit: contain;
  object-position: bottom center;
  transform: translateY(20px);
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.5));
}

.fortune-result.is-reading,
.fortune-yuuki {
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.fortune-result.is-reading ~ * {
  pointer-events: none;
}

@keyframes fortuneMoonGlow {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.82;
  }
}

@keyframes fortuneStars {
  to {
    background-position: 14% 32%, 72% 42%;
  }
}

@keyframes fortuneWaiting {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }
}

@keyframes fortuneCard {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

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

@keyframes fortuneResultGlow {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  38% {
    opacity: 0.88;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes fortunePulse {
  0%,
  100% {
    box-shadow: 0 0 6px rgba(206, 190, 255, 0.28);
  }

  50% {
    box-shadow: 0 0 16px rgba(206, 190, 255, 0.68);
  }
}

.stream-page {
  background: #070912;
}

.stream-system {
  min-height: calc(100vh - 72px);
}

.stream-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: var(--stream-bg, url("../contents/ami-room/images/亜美の部屋_深夜.png")) center / cover no-repeat;
}

.stream-stage::before,
.stream-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stream-stage::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 111, 185, 0.18), transparent 18rem),
    radial-gradient(circle at 78% 24%, rgba(93, 229, 255, 0.16), transparent 18rem);
  mix-blend-mode: screen;
  animation: streamGlow 6s ease-in-out infinite;
}

.stream-stage::after {
  opacity: 0.2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 4px;
}

.stream-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 16, 0.88), rgba(5, 8, 18, 0.42) 48%, rgba(6, 7, 18, 0.88)),
    radial-gradient(circle at 50% 50%, rgba(255, 82, 174, 0.12), transparent 34rem);
}

.stream-content {
  position: relative;
  z-index: 2;
  width: min(1780px, 94vw);
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(300px, 28fr) minmax(300px, 30fr) minmax(420px, 42fr);
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  margin: 0 auto;
  padding: 18px 0;
}

.stream-control,
.stream-comments {
  border: 1px solid rgba(121, 229, 255, 0.32);
  border-radius: 8px;
  background: rgba(7, 10, 24, 0.72);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38), 0 0 26px rgba(255, 111, 185, 0.15);
  backdrop-filter: blur(12px);
}

.stream-control {
  position: relative;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: clamp(18px, 1.7vw, 28px);
}

.stream-howto {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(121, 229, 255, 0.24);
  border-radius: 8px;
  background: rgba(10, 30, 54, 0.5);
  font-size: 0.82rem;
  color: #d8ecff;
}

.stream-howto strong {
  display: block;
  margin-bottom: 5px;
  color: #7ee8ff;
}

.stream-howto ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 3px;
}

.stream-howto li {
  line-height: 1.5;
}

.stream-logo {
  display: block;
  width: min(270px, 78%);
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin: -18px auto 4px;
  filter: drop-shadow(0 0 18px rgba(121, 229, 255, 0.24));
}

.stream-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 50, 104, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.stream-status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.88);
  animation: livePulse 1.5s ease-in-out infinite;
}

.stream-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.stream-status-row .stream-status {
  margin: 0;
}

.stream-viewers {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  margin: 0;
  padding: 3px 11px;
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(10, 30, 54, 0.72);
  border: 1px solid rgba(121, 229, 255, 0.42);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.stream-viewers b {
  color: #7ee8ff;
}

.stream-likes b {
  color: #ff9ec9;
}

.stream-title {
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #eaf8ff;
  background: rgba(10, 30, 54, 0.55);
  border: 1px solid rgba(121, 229, 255, 0.28);
  font-size: 0.92rem;
  font-weight: 800;
}

.stream-like {
  margin-top: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 111, 185, 0.55);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 111, 185, 0.9), rgba(151, 83, 255, 0.7));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.stream-like:hover {
  box-shadow: 0 0 18px rgba(255, 111, 185, 0.4);
}

.stream-like:active {
  transform: scale(0.96);
}

.stream-hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.stream-heart {
  position: absolute;
  bottom: 8%;
  color: #ff7eca;
  text-shadow: 0 0 10px rgba(255, 111, 185, 0.6);
  pointer-events: none;
  animation: heartFloat 1.5s ease-out forwards;
}

@keyframes heartFloat {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--heart-drift, 0), -180px) scale(1.15); }
}

.stream-speaker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 4px 16px;
  border: 1px solid rgba(121, 229, 255, 0.42);
  border-radius: 8px 8px 0 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 91, 173, 0.76), rgba(103, 55, 146, 0.82));
  font-weight: 700;
}

.stream-dialogue {
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid rgba(121, 229, 255, 0.32);
  border-left: 4px solid #79e5ff;
  color: #f5fbff;
  background: linear-gradient(180deg, rgba(7, 10, 24, 0.78), rgba(34, 20, 52, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stream-dialogue span {
  display: inline-block;
  margin-top: 8px;
}

.stream-dialogue.is-reacting {
  animation: streamReact 0.52s ease;
}

.stream-form label {
  display: block;
  margin-bottom: 8px;
  color: #79e5ff;
  font-weight: 700;
}

.stream-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.stream-form input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(121, 229, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.stream-form input:focus {
  outline: none;
  border-color: rgba(121, 229, 255, 0.86);
  box-shadow: 0 0 0 3px rgba(121, 229, 255, 0.14);
}

.stream-form button,
.stream-bgm-toggle {
  min-height: 44px;
  border: 1px solid rgba(121, 229, 255, 0.36);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 91, 173, 0.76), rgba(62, 165, 214, 0.68));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.stream-form button {
  padding: 0 16px;
}

.stream-form button:hover,
.stream-bgm-toggle:hover {
  box-shadow: 0 0 0 1px rgba(121, 229, 255, 0.28), 0 0 20px rgba(255, 111, 185, 0.26);
}

.stream-bgm-toggle {
  position: absolute;
  top: -28px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 91, 173, 0.92), rgba(22, 22, 58, 0.94));
  backdrop-filter: blur(10px);
}

.stream-bgm-toggle span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
}

.stream-bgm-toggle[aria-pressed="true"] span {
  animation: livePulse 1.6s ease-in-out infinite;
}

.stream-character {
  position: relative;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: calc(100vh - 112px);
  pointer-events: none;
}

.stream-ami {
  width: min(34vw, 520px);
  max-height: calc(100vh - 96px);
  object-fit: contain;
  object-position: bottom center;
  transform: translateY(20px);
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.5));
}

.stream-comments {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: min(70vh, 700px);
  max-height: calc(100vh - 120px);
  padding: clamp(16px, 1.6vw, 22px);
}

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

.stream-comments-head div {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.stream-comments-head span,
.stream-comments-head time {
  color: #ffb7de;
  font-size: 0.9rem;
  font-weight: 700;
}

.stream-comments-head time {
  color: #dff8ff;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.comment-log {
  overflow-y: auto;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(121, 229, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
}

.comment-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #eaf8ff;
  border: 1px solid rgba(121, 229, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  animation: commentIn 0.26s ease both;
}

.comment-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: rgba(121, 229, 255, 0.72);
  box-shadow: 0 0 12px rgba(121, 229, 255, 0.42);
}

.comment-item strong {
  color: #79e5ff;
  font-size: 0.82rem;
}

.comment-item.user {
  border-color: rgba(121, 229, 255, 0.48);
  background: linear-gradient(135deg, rgba(121, 229, 255, 0.2), rgba(74, 126, 255, 0.14));
  box-shadow: 0 0 16px rgba(121, 229, 255, 0.18);
}

.comment-item.user::before {
  background: #79e5ff;
}

.comment-item.user strong {
  color: #c9fbff;
  text-shadow: 0 0 8px rgba(121, 229, 255, 0.5);
}

.comment-item.ami {
  border-color: rgba(255, 111, 185, 0.5);
  background: linear-gradient(135deg, rgba(255, 111, 185, 0.28), rgba(151, 83, 255, 0.18));
  box-shadow: 0 0 18px rgba(255, 111, 185, 0.2);
}

.comment-item.ami::before {
  background: #ff7eca;
  box-shadow: 0 0 14px rgba(255, 111, 185, 0.56);
}

.comment-item.ami strong {
  color: #ffb7de;
  text-shadow: 0 0 10px rgba(255, 111, 185, 0.56);
}

.comment-item.reading {
  opacity: 0.86;
  background: linear-gradient(135deg, rgba(255, 111, 185, 0.18), rgba(151, 83, 255, 0.12));
}

.comment-item.reading span::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  animation: typingDots 1.1s steps(3, end) infinite;
}

.comment-item.join {
  grid-template-columns: 1fr;
  opacity: 0.9;
  border-color: rgba(121, 229, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.comment-item.join::before {
  display: none;
}

.comment-item .join-text {
  color: #9ec7e6;
  font-size: 0.8rem;
  font-style: italic;
}

@keyframes streamGlow {
  0%,
  100% {
    opacity: 0.56;
  }

  50% {
    opacity: 0.84;
  }
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes streamReact {
  0% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 rgba(255, 111, 185, 0);
  }

  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 22px rgba(255, 111, 185, 0.38);
  }

  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 rgba(255, 111, 185, 0);
  }
}

@keyframes commentIn {
  from {
    opacity: 0;
    transform: translateX(18px) translateY(8px);
  }

  70% {
    opacity: 1;
    transform: translateX(-2px) translateY(0);
  }

  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes typingDots {
  0% {
    content: "";
  }

  33% {
    content: ".";
  }

  66% {
    content: "..";
  }

  100% {
    content: "...";
  }
}

.memory-page {
  background: #07101d;
}

.fuyu-page {
  background: #170f0a;
}

.sakura-game-page {
  background: #071425;
}

.natsumi-escape-page {
  background: #071425;
}

.kaede-rhythm-page {
  background: #13071d;
}

.yukine-page {
  background: #070b18;
}

.sakura-game-system {
  min-height: calc(100vh - 72px);
}

.natsumi-escape-system {
  min-height: calc(100vh - 72px);
}

.kaede-rhythm-system {
  min-height: calc(100vh - 72px);
}

.yukine-system {
  min-height: calc(100vh - 72px);
}

.sakura-game-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: url("../contents/sakura-tennis/images/テニスコート.png") center / cover no-repeat;
}

.sakura-game-stage::before,
.sakura-game-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sakura-game-stage::before {
  background:
    radial-gradient(circle at 25% 24%, rgba(255, 168, 204, 0.2), transparent 18rem),
    radial-gradient(circle at 66% 34%, rgba(116, 216, 239, 0.18), transparent 22rem);
  mix-blend-mode: screen;
  animation: memoryLight 6s ease-in-out infinite;
}

.sakura-game-stage::after {
  opacity: 0.45;
  background:
    radial-gradient(circle, rgba(255, 168, 204, 0.35) 0 1.3px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 226, 144, 0.22) 0 1.2px, transparent 1.8px);
  background-size: 150px 120px, 190px 150px;
}

.sakura-game-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 22, 0.78), rgba(7, 30, 45, 0.38) 50%, rgba(5, 11, 22, 0.78)),
    radial-gradient(circle at center, rgba(255, 151, 93, 0.16), transparent 34rem);
}

.sakura-game-content {
  position: relative;
  z-index: 2;
  width: min(1840px, 95vw);
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(250px, 22fr) minmax(560px, 54fr) minmax(260px, 24fr);
  align-items: center;
  gap: clamp(14px, 1.5vw, 24px);
  margin: 0 auto;
  padding: 10px 0;
}

.sakura-game-status,
.sakura-court-wrap,
.sakura-character {
  border: 1px solid rgba(116, 216, 239, 0.3);
  border-radius: 8px;
  background: rgba(8, 24, 42, 0.78);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36), 0 0 28px rgba(255, 168, 204, 0.12);
  backdrop-filter: blur(11px);
}

.sakura-game-status {
  position: relative;
  display: grid;
  gap: 10px;
  padding: clamp(14px, 1.25vw, 20px);
}

.sakura-bgm-toggle {
  position: absolute;
  top: -28px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 213, 141, 0.5);
  border-radius: 999px;
  color: #fff7df;
  background: linear-gradient(135deg, rgba(255, 151, 185, 0.86), rgba(21, 89, 120, 0.92));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sakura-bgm-toggle span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.sakura-bgm-toggle[aria-pressed="true"] span {
  animation: livePulse 1.6s ease-in-out infinite;
}

.sakura-game-logo {
  display: block;
  width: min(280px, 86%);
  margin: 0 auto;
  padding: 8px 0 4px;
  filter: drop-shadow(0 0 16px rgba(255, 168, 204, 0.28));
}

.sakura-difficulty {
  margin-top: 2px;
}

.sakura-game-score {
  display: grid;
  gap: 7px;
  margin: 0;
}

.sakura-game-score div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(116, 216, 239, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.sakura-game-score dt {
  color: #74d8ef;
  font-weight: 800;
}

.sakura-game-score dd {
  margin: 0;
  color: #fff5dd;
  font-weight: 900;
}

.sakura-court-wrap {
  position: relative;
  padding: clamp(10px, 1.1vw, 16px);
}

#sakura-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 720 / 520;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 24, 38, 0.88);
  box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.08);
}

.sakura-control-note {
  margin: 8px 0 0;
  color: #b8d8e8;
  font-size: 0.82rem;
  text-align: center;
}

.sakura-combo-pop {
  position: absolute;
  top: 32px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 7px 16px;
  border: 1px solid rgba(255, 213, 141, 0.58);
  border-radius: 999px;
  color: #152238;
  background: #ffd58d;
  font-weight: 900;
  opacity: 0;
}

.sakura-combo-pop.is-visible {
  animation: sakuraCombo 0.86s ease both;
}

.sakura-character {
  display: grid;
  align-self: stretch;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  align-content: stretch;
  gap: 4px;
  padding: clamp(14px, 1.25vw, 20px);
}

.sakura-howto {
  padding: 6px 9px;
  border: 1px solid rgba(116, 216, 239, 0.22);
  border-left: 4px solid #ff9fcd;
  border-radius: 8px;
  color: #fff5dd;
  background: rgba(255, 255, 255, 0.055);
}

.sakura-howto strong {
  display: block;
  color: #ffbddb;
  font-size: 0.86rem;
}

.sakura-howto p {
  margin: 3px 0 0;
  font-size: 0.66rem;
  line-height: 1.22;
}

.sakura-howto ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px 8px;
  margin: 3px 0 2px;
  padding-left: 1.1em;
  color: #fff5dd;
  font-size: 0.64rem;
  line-height: 1.2;
}

.sakura-portrait {
  display: block;
  align-self: center;
  justify-self: center;
  width: min(118%, 390px);
  max-width: none;
  max-height: 38vh;
  object-fit: contain;
  object-position: bottom center;
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.sakura-speaker {
  margin: 0;
}

.sakura-talk-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.sakura-assist-button {
  min-height: 34px;
  margin: 0 0 0 auto;
  padding: 5px 11px;
  border: 1px solid rgba(255, 159, 205, 0.5);
  border-radius: 999px;
  color: #fff5dd;
  background: linear-gradient(135deg, rgba(35, 86, 122, 0.9), rgba(126, 64, 110, 0.86));
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 159, 205, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.sakura-assist-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 159, 205, 0.34);
}

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

.sakura-dialogue {
  min-height: 88px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 213, 141, 0.32);
  border-left: 4px solid #ff9fcd;
  color: #fff5dd;
  background: linear-gradient(180deg, rgba(8, 24, 42, 0.82), rgba(28, 38, 58, 0.76));
  font-size: 0.9rem;
  line-height: 1.5;
}

.sakura-dialogue span {
  display: inline-block;
  margin-top: 8px;
  color: #ffffff;
}

.sakura-dialogue.is-reacting {
  animation: memoryTalk 0.48s ease;
}

.sakura-rank {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin: 0;
  border: 1px solid rgba(255, 213, 141, 0.46);
  border-radius: 8px;
  color: #152238;
  background: #ffd58d;
  font-size: 1.05rem;
  font-weight: 900;
}

.sakura-reward {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 7, 14, 0.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.sakura-reward.is-visible {
  opacity: 1;
}

.sakura-reward[hidden] {
  display: none;
}

.sakura-reward-panel {
  position: relative;
  width: min(820px, 88vw);
  max-height: calc(100vh - 120px);
  padding: 18px;
  border: 1px solid rgba(255, 159, 205, 0.62);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(8, 24, 42, 0.96), rgba(24, 37, 56, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56), 0 0 34px rgba(255, 159, 205, 0.18);
}

.sakura-reward-panel h2 {
  margin: 2px 0 12px;
  color: #fff5dd;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.sakura-reward-panel img {
  display: block;
  width: 100%;
  max-height: min(45vh, 430px);
  object-fit: contain;
  border: 1px solid rgba(255, 159, 205, 0.36);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.sakura-reward-panel .button {
  margin-top: 14px;
}

.sakura-reward-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 159, 205, 0.5);
  border-radius: 999px;
  color: #fff5dd;
  background: rgba(72, 28, 54, 0.86);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.natsumi-escape-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: url("../contents/natsumi-escape/交番背景.png") center / cover no-repeat;
}

.natsumi-escape-stage::before,
.natsumi-escape-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.natsumi-escape-stage::before {
  background:
    linear-gradient(90deg, rgba(5, 12, 22, 0.82), rgba(7, 22, 36, 0.38) 50%, rgba(5, 12, 22, 0.78)),
    radial-gradient(circle at 74% 26%, rgba(116, 216, 239, 0.16), transparent 24rem),
    radial-gradient(circle at 28% 70%, rgba(255, 213, 141, 0.12), transparent 20rem);
}

.natsumi-escape-stage::after {
  opacity: 0.4;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(158, 238, 255, 0.08) 45% 47%, transparent 50%),
    radial-gradient(circle, rgba(158, 238, 255, 0.24) 0 1.1px, transparent 1.7px);
  background-size: 100% 100%, 150px 120px;
  animation: memoryLight 7s ease-in-out infinite;
}

.natsumi-escape-shade,
.natsumi-escape-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.natsumi-escape-shade {
  background: radial-gradient(circle at center, rgba(9, 33, 52, 0.14), rgba(3, 9, 17, 0.55) 72%);
}

.natsumi-escape-light {
  opacity: 0.42;
  background:
    conic-gradient(from 210deg at 50% 0%, transparent 0 18deg, rgba(255, 242, 196, 0.14) 20deg 31deg, transparent 34deg 80deg),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%);
  mix-blend-mode: screen;
}

.natsumi-case-loading {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 7, 14, 0.84);
  backdrop-filter: blur(9px);
}

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

.natsumi-case-loading > div {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
}

.natsumi-case-loading img {
  width: min(420px, 76vw);
  filter: drop-shadow(0 0 28px rgba(116, 216, 239, 0.26));
}

.natsumi-case-loading p {
  margin: 0;
  color: #dff8ff;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.natsumi-case-loading span {
  width: 180px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.natsumi-case-loading span::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #74d8ef, #ffd58d);
  animation: loadingBar 0.9s ease-in-out infinite alternate;
}

.natsumi-game-audio {
  position: absolute;
  top: clamp(14px, 2vw, 24px);
  left: clamp(14px, 2vw, 24px);
  z-index: 18;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 213, 141, 0.34);
  border-radius: 999px;
  background: rgba(3, 9, 17, 0.76);
  backdrop-filter: blur(8px);
}

.natsumi-escape-stage.is-story .natsumi-game-audio,
.natsumi-escape-stage.is-cg .natsumi-game-audio,
.natsumi-escape-stage.is-play .natsumi-game-audio,
.natsumi-escape-stage.is-clear .natsumi-game-audio {
  display: flex;
}

.natsumi-game-audio .content-volume-control {
  min-width: 118px;
}

.natsumi-escape-content {
  position: relative;
  z-index: 2;
  width: min(1840px, 95vw);
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(250px, 23fr) minmax(440px, 43fr) minmax(280px, 28fr);
  align-items: center;
  gap: clamp(14px, 1.5vw, 24px);
  margin: 0 auto;
  padding: 10px 0;
}

.natsumi-escape-stage.is-story,
.natsumi-escape-stage.is-cg,
.natsumi-escape-stage.is-play,
.natsumi-escape-stage.is-clear {
  background: #020814;
}

.natsumi-escape-stage.is-story .natsumi-escape-content,
.natsumi-escape-stage.is-cg .natsumi-escape-content,
.natsumi-escape-stage.is-play .natsumi-escape-content,
.natsumi-escape-stage.is-clear .natsumi-escape-content {
  width: 100%;
  min-height: calc(100vh - 72px);
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.natsumi-escape-stage.is-story .natsumi-escape-menu,
.natsumi-escape-stage.is-story .natsumi-character,
.natsumi-escape-stage.is-cg .natsumi-escape-menu,
.natsumi-escape-stage.is-cg .natsumi-character,
.natsumi-escape-stage.is-play .natsumi-escape-menu,
.natsumi-escape-stage.is-play .natsumi-character,
.natsumi-escape-stage.is-clear .natsumi-escape-menu,
.natsumi-escape-stage.is-clear .natsumi-character {
  display: none;
}

.natsumi-escape-stage.is-story .natsumi-case-board,
.natsumi-escape-stage.is-cg .natsumi-case-board,
.natsumi-escape-stage.is-play .natsumi-case-board,
.natsumi-escape-stage.is-clear .natsumi-case-board {
  min-height: calc(100vh - 72px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.natsumi-escape-menu,
.natsumi-case-board,
.natsumi-character {
  border: 1px solid rgba(116, 216, 239, 0.3);
  border-radius: 8px;
  background: rgba(7, 22, 36, 0.8);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36), 0 0 30px rgba(116, 216, 239, 0.12);
  backdrop-filter: blur(12px);
}

.natsumi-escape-menu {
  position: relative;
  display: grid;
  gap: 10px;
  padding: clamp(14px, 1.25vw, 20px);
}

.natsumi-bgm-toggle {
  background: linear-gradient(135deg, rgba(41, 83, 126, 0.94), rgba(18, 46, 77, 0.94)) !important;
}

.natsumi-bgm-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, #ffe3a3, #74d8ef) !important;
}

.natsumi-escape-logo {
  display: block;
  width: min(330px, 92%);
  margin: -6px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(116, 216, 239, 0.28));
}

.natsumi-escape-lead {
  margin: 0;
  padding: 8px 10px;
  border-left: 4px solid #74d8ef;
  color: #fff7df;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.82rem;
  line-height: 1.6;
}

.natsumi-difficulty button.is-active {
  color: #071425;
  background: linear-gradient(135deg, #ffe3a3, #74d8ef);
  box-shadow: 0 0 20px rgba(116, 216, 239, 0.2);
}

.natsumi-case-status {
  display: grid;
  gap: 7px;
  margin: 0;
}

.natsumi-case-status div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(116, 216, 239, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.natsumi-case-status dt {
  color: #74d8ef;
  font-weight: 800;
}

.natsumi-case-status dd {
  margin: 0;
  color: #fff5dd;
  font-weight: 900;
}

.natsumi-case-board {
  position: relative;
  display: grid;
  gap: clamp(14px, 1.4vw, 20px);
  padding: clamp(18px, 2vw, 30px);
}

.natsumi-select-view,
.natsumi-story-view,
.natsumi-cg-view,
.natsumi-play-view,
.natsumi-clear-view {
  display: grid;
  gap: clamp(14px, 1.4vw, 20px);
}

.natsumi-story-view[hidden],
.natsumi-cg-view[hidden],
.natsumi-play-view[hidden],
.natsumi-clear-view[hidden],
.natsumi-select-view[hidden] {
  display: none;
}

.natsumi-file-header {
  min-height: 180px;
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid rgba(116, 216, 239, 0.22);
  border-left: 5px solid #74d8ef;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 18, 31, 0.9), rgba(16, 44, 68, 0.74)),
    radial-gradient(circle at 82% 22%, rgba(255, 213, 141, 0.12), transparent 16rem);
}

.natsumi-file-header h1 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  line-height: 1.1;
}

.natsumi-file-header p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #dff8ff;
  line-height: 1.8;
}

.natsumi-item-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(10px, 1vw, 14px);
}

.natsumi-item-row figure {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 0;
  padding: 14px 10px 12px;
  border: 1px solid rgba(116, 216, 239, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.natsumi-item-row img {
  width: min(120px, 72%);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(116, 216, 239, 0.16));
}

.natsumi-item-row figcaption {
  color: #fff5dd;
  font-size: 0.82rem;
  font-weight: 800;
}

.natsumi-case-note {
  padding: 12px 14px;
  border: 1px dashed rgba(255, 213, 141, 0.38);
  border-radius: 8px;
  color: #fff5dd;
  background: rgba(255, 213, 141, 0.06);
}

.natsumi-case-note strong {
  display: block;
  color: #74d8ef;
  margin-bottom: 6px;
}

.natsumi-case-note p {
  margin: 5px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.natsumi-story-scene {
  position: relative;
  min-height: clamp(360px, 46vh, 520px);
  overflow: hidden;
  display: grid;
  align-items: end;
  border: 1px solid rgba(116, 216, 239, 0.28);
  border-radius: 8px;
  background: var(--story-bg, url("../contents/natsumi-escape/EASY/easy-office.png")) center / cover no-repeat;
  box-shadow: inset 0 -120px 120px rgba(3, 9, 17, 0.62);
}

.natsumi-escape-stage.is-story .natsumi-story-view {
  min-height: calc(100vh - 72px);
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 0 0 28px;
}

.natsumi-escape-stage.is-story .natsumi-story-scene {
  min-height: calc(100vh - 132px);
  border: 0;
  border-radius: 0;
}

.natsumi-escape-stage.is-story #natsumi-next {
  justify-self: center;
  min-width: 180px;
}

.natsumi-story-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 9, 17, 0.02), rgba(3, 9, 17, 0.54)),
    radial-gradient(circle at 60% 20%, rgba(255, 238, 190, 0.08), transparent 20rem);
}

.natsumi-story-text {
  position: relative;
  z-index: 1;
  margin: clamp(16px, 2vw, 26px);
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(255, 213, 141, 0.34);
  border-left: 5px solid #ffd58d;
  border-radius: 8px;
  color: #fff7df;
  background: rgba(4, 12, 22, 0.78);
  backdrop-filter: blur(10px);
}

.natsumi-story-text h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2.35rem);
  line-height: 1.25;
}

.natsumi-story-text p:not(.eyebrow) {
  margin: 0;
  line-height: 1.85;
  white-space: pre-line;
}

.natsumi-cg-view {
  justify-items: center;
}

.natsumi-escape-stage.is-cg .natsumi-cg-view {
  position: relative;
  min-height: calc(100vh - 72px);
  display: block;
}

.natsumi-cg-view img {
  display: block;
  width: min(100%, 820px);
  max-height: min(58vh, 620px);
  object-fit: contain;
  border: 1px solid rgba(116, 216, 239, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
}

.natsumi-escape-stage.is-cg .natsumi-cg-view img {
  width: 100%;
  height: calc(100vh - 72px);
  max-height: none;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: #020814;
}

.natsumi-escape-stage.is-cg #natsumi-cg-next {
  position: absolute;
  left: 50%;
  bottom: 34px;
  min-width: 180px;
  transform: translateX(-50%);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
}

.natsumi-storage-scene {
  position: relative;
  min-height: clamp(360px, 48vh, 540px);
  overflow: hidden;
  border: 1px solid rgba(116, 216, 239, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(3, 9, 17, 0.12), rgba(3, 9, 17, 0.38)),
    url("../contents/natsumi-escape/EASY/easy-storage.png") center / cover no-repeat;
  box-shadow: inset 0 -90px 110px rgba(3, 9, 17, 0.55);
}

.natsumi-escape-stage.is-play .natsumi-play-view {
  position: relative;
  min-height: calc(100vh - 72px);
  display: block;
}

.natsumi-escape-stage.is-play .natsumi-storage-scene {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(3, 9, 17, 0.42), rgba(3, 9, 17, 0.12) 46%, rgba(3, 9, 17, 0.68)),
    var(--play-bg, url("../contents/natsumi-escape/EASY/ものおき.png")) center / cover no-repeat;
}

.natsumi-play-portrait {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: min(36vw, 520px);
  max-height: calc(100vh - 90px);
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.natsumi-play-panel {
  position: absolute;
  right: clamp(22px, 3vw, 54px);
  top: 50%;
  z-index: 3;
  display: grid;
  gap: 12px;
  width: min(410px, 29vw);
  transform: translateY(-50%);
  padding: 16px;
  border: 1px solid rgba(116, 216, 239, 0.3);
  border-radius: 8px;
  background: rgba(7, 22, 36, 0.82);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.natsumi-play-panel .natsumi-objectives,
.natsumi-play-panel .natsumi-inventory {
  background: rgba(3, 9, 17, 0.48);
}

.natsumi-play-dialogue {
  min-height: 120px;
}

.natsumi-code-panel,
.natsumi-door-choice {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 213, 141, 0.28);
  border-radius: 8px;
  color: #fff7df;
  background: rgba(255, 213, 141, 0.08);
}

.natsumi-code-panel[hidden],
.natsumi-door-choice[hidden] {
  display: none;
}

.natsumi-code-panel p,
.natsumi-door-choice p {
  margin: 0;
  line-height: 1.55;
}

.natsumi-code-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.natsumi-code-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(116, 216, 239, 0.42);
  border-radius: 8px;
  color: #fff;
  background: rgba(4, 12, 22, 0.82);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-align: center;
}

.natsumi-door-choice > div {
  display: grid;
  grid-template-columns: 1fr 1fr 1.45fr;
  gap: 8px;
}

.natsumi-door-choice .button.primary,
.natsumi-door-choice .button.ghost {
  border-color: rgba(116, 216, 239, 0.34);
  color: #dff8ff;
  background: rgba(13, 34, 50, 0.86);
  box-shadow: none;
}

.natsumi-door-choice .button.primary:hover,
.natsumi-door-choice .button.ghost:hover {
  border-color: rgba(255, 213, 141, 0.58);
  color: #fff7df;
  background: rgba(23, 57, 88, 0.9);
}

.natsumi-hotspot {
  position: absolute;
  z-index: 4;
  min-width: 118px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 213, 141, 0.6);
  border-radius: 999px;
  color: #fff7df;
  background: rgba(6, 16, 30, 0.74);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 213, 141, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.natsumi-room-label {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  margin: 0;
  padding: 7px 16px;
  border: 1px solid rgba(116, 216, 239, 0.5);
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(3, 15, 28, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(116, 216, 239, 0.14);
  pointer-events: none;
}

.natsumi-hotspot:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(23, 57, 88, 0.86);
  box-shadow: 0 0 26px rgba(116, 216, 239, 0.3);
}

.natsumi-hotspot.is-move {
  border-color: rgba(116, 216, 239, 0.72);
  color: #dff8ff;
  background: rgba(17, 64, 91, 0.82);
  box-shadow: 0 0 20px rgba(116, 216, 239, 0.18);
}

.natsumi-hotspot.is-move::after {
  content: " →";
  color: #9eeeff;
}

.natsumi-hotspot.is-move:hover:not(:disabled) {
  border-color: rgba(158, 238, 255, 0.86);
  background: rgba(22, 93, 126, 0.92);
  box-shadow: 0 0 30px rgba(116, 216, 239, 0.36);
}

.natsumi-hotspot:disabled {
  opacity: 0.42;
  cursor: default;
}

.natsumi-hotspot[hidden] {
  display: none;
}

.natsumi-hotspot.is-cuff-locked {
  filter: grayscale(0.35);
}

.natsumi-hotspot-key {
  left: 19%;
  top: 32%;
}

.natsumi-hotspot-memo {
  right: 28%;
  top: 20%;
}

.natsumi-hotspot-safe {
  left: 47%;
  bottom: 33%;
}

.natsumi-hotspot-door {
  right: 32%;
  bottom: 18%;
}

.natsumi-hotspot-noop-a {
  left: 38%;
  bottom: 24%;
}

.natsumi-hotspot-noop-b {
  left: 8%;
  top: 18%;
}

.natsumi-objectives,
.natsumi-inventory {
  border: 1px solid rgba(116, 216, 239, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.natsumi-objectives {
  padding: 12px 14px;
}

.natsumi-objectives > small {
  display: block;
  margin-top: 4px;
  color: #b9d7e8;
  font-size: 0.76rem;
  line-height: 1.5;
}

.natsumi-objectives ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.natsumi-objectives li {
  padding: 8px 10px;
  border: 1px solid rgba(116, 216, 239, 0.14);
  border-radius: 8px;
  color: #fff5dd;
  background: rgba(7, 18, 31, 0.58);
  font-weight: 800;
}

.natsumi-objectives li.is-complete {
  color: #152238;
  background: linear-gradient(135deg, #ffe3a3, #74d8ef);
}

.natsumi-objectives li.is-pending {
  border-color: rgba(255, 213, 141, 0.72);
  color: #ffd58d;
  background: rgba(255, 213, 141, 0.12);
  box-shadow: inset 0 0 18px rgba(255, 213, 141, 0.08);
}

.natsumi-inventory {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 82px;
  padding: 10px;
}

.natsumi-inventory-title {
  width: 100%;
  margin: 0;
  color: #74d8ef;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.natsumi-inventory figure,
.natsumi-inventory-item {
  display: grid;
  grid-template-columns: 46px auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 213, 141, 0.32);
  border-radius: 8px;
  color: #fff7df;
  background: rgba(255, 213, 141, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.natsumi-inventory-item {
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.natsumi-inventory-item:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(116, 216, 239, 0.72);
  box-shadow: 0 0 20px rgba(116, 216, 239, 0.18);
}

.natsumi-inventory-item:disabled {
  cursor: default;
}

.natsumi-inventory-item.is-used {
  opacity: 0.64;
}

.natsumi-inventory figure[hidden],
.natsumi-inventory-item[hidden] {
  display: none;
}

.natsumi-inventory img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.natsumi-usb-chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 30px;
  border: 1px solid rgba(116, 216, 239, 0.68);
  border-radius: 6px;
  color: #05131f;
  background: linear-gradient(135deg, #dff8ff, #74d8ef);
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(116, 216, 239, 0.18);
}

.natsumi-clear-card {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid rgba(255, 213, 141, 0.42);
  border-radius: 10px;
  color: #fff7df;
  background:
    linear-gradient(135deg, rgba(7, 18, 31, 0.92), rgba(18, 54, 70, 0.86)),
    radial-gradient(circle at 80% 20%, rgba(255, 213, 141, 0.14), transparent 18rem);
}

.natsumi-escape-stage.is-clear .natsumi-clear-view {
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(2, 8, 20, 0.58), rgba(2, 8, 20, 0.88)),
    url("../contents/natsumi-escape/EASY/easy-office.png") center / cover no-repeat;
}

.natsumi-escape-stage.is-clear .natsumi-clear-card {
  width: min(880px, 92vw);
}

.natsumi-clear-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.natsumi-clear-card p {
  margin: 0;
  line-height: 1.8;
}

.natsumi-clear-card img {
  display: block;
  width: min(100%, 820px);
  max-height: min(42vh, 430px);
  object-fit: contain;
  border: 1px solid rgba(255, 213, 141, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.natsumi-clear-card .button + .button {
  margin-top: -4px;
}

.natsumi-character {
  display: grid;
  align-self: stretch;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: clamp(14px, 1.25vw, 20px);
}

.natsumi-select-portrait {
  display: block;
  align-self: end;
  justify-self: center;
  width: min(118%, 470px);
  max-height: 68vh;
  object-fit: contain;
  object-position: bottom center;
  margin: 0 auto -6px;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.34));
}

.natsumi-talk-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 28px;
}

.natsumi-speaker {
  min-width: 86px;
  border-color: rgba(116, 216, 239, 0.68);
  background: linear-gradient(135deg, rgba(32, 87, 130, 0.92), rgba(162, 104, 50, 0.88));
}

.natsumi-dialogue {
  min-height: 96px;
  padding: 16px 18px;
  border: 1px solid rgba(116, 216, 239, 0.35);
  border-left: 4px solid #74d8ef;
  color: #fff7df;
  background: rgba(7, 18, 31, 0.86);
  font-weight: 800;
  line-height: 1.8;
}

.natsumi-dialogue span {
  color: #dff8ff;
}

.natsumi-dialogue.is-reacting {
  animation: dialoguePulse 0.36s ease;
}

.kaede-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: var(--kaede-bg, url("../contents/kaede-rhythm/images/MIdnight bloom背景.jpg")) var(--kaede-bg-position, center) / cover no-repeat;
}

.kaede-stage::before,
.kaede-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kaede-stage::before {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 140, 207, 0.22), transparent 18rem),
    radial-gradient(circle at 70% 26%, rgba(128, 231, 255, 0.18), transparent 22rem),
    linear-gradient(90deg, rgba(9, 4, 20, 0.84), rgba(41, 9, 58, 0.42) 50%, rgba(9, 4, 20, 0.82));
}

.kaede-stage::after {
  opacity: 0.5;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.36) 0 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 140, 207, 0.28) 0 1.3px, transparent 1.8px);
  background-size: 120px 92px, 170px 140px;
  animation: kaedeLights 7s linear infinite;
}

.kaede-stage-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 2, 18, 0.28), rgba(8, 2, 18, 0.72)),
    radial-gradient(circle at center, rgba(255, 140, 207, 0.16), transparent 34rem);
}

.kaede-live-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    conic-gradient(from 210deg at 28% 0%, transparent 0 12deg, rgba(255, 140, 207, 0.18) 12deg 22deg, transparent 22deg 46deg),
    conic-gradient(from 150deg at 72% 0%, transparent 0 12deg, rgba(128, 231, 255, 0.16) 12deg 22deg, transparent 22deg 46deg);
  mix-blend-mode: screen;
  animation: kaedeSpot 5.8s ease-in-out infinite alternate;
}

.kaede-stage.is-fever .kaede-live-light {
  opacity: 0.9;
  animation-duration: 1.8s;
}

.kaede-content {
  position: relative;
  z-index: 2;
  width: min(1840px, 95vw);
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(250px, 22fr) minmax(430px, 43fr) minmax(270px, 25fr);
  align-items: center;
  gap: clamp(14px, 1.5vw, 24px);
  margin: 0 auto;
  padding: 0;
}

.kaede-status,
.kaede-lane-wrap,
.kaede-character {
  border: 1px solid rgba(255, 140, 207, 0.34);
  border-radius: 8px;
  background: rgba(12, 6, 26, 0.78);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38), 0 0 30px rgba(255, 140, 207, 0.14);
  backdrop-filter: blur(12px);
}

.kaede-status {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 9px 12px;
}

.kaede-bgm-toggle {
  position: absolute;
  top: -28px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: #fff7fb;
  background: linear-gradient(135deg, rgba(255, 111, 185, 0.9), rgba(84, 45, 168, 0.9));
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.kaede-bgm-toggle span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.kaede-bgm-toggle[aria-pressed="true"] span {
  animation: livePulse 1.4s ease-in-out infinite;
}

.kaede-logo {
  display: block;
  width: min(250px, 88%);
  margin: 0 auto;
  padding: 4px 0 2px;
  filter: drop-shadow(0 0 18px rgba(255, 140, 207, 0.34));
}

.kaede-song-select {
  display: grid;
  gap: 6px;
}

.kaede-song-select button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 29px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 140, 207, 0.3);
  border-radius: 8px;
  color: #fff5fb;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.kaede-song-select small {
  flex: 0 0 auto;
  color: rgba(255, 245, 251, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
}

.kaede-song-select button.is-active small {
  color: rgba(22, 7, 31, 0.72);
}

.kaede-song-select button:hover:not(.is-active) {
  transform: translateY(-1px);
  background: rgba(255, 140, 207, 0.14);
}

.kaede-song-select button.is-active {
  color: #16071f;
  background: linear-gradient(135deg, #ff8ccf, #80e7ff);
  box-shadow: 0 0 22px rgba(255, 140, 207, 0.24);
}

.kaede-song-description {
  min-height: 34px;
  margin: 0;
  padding: 6px 9px;
  border-left: 4px solid #80e7ff;
  color: #fff5fb;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  line-height: 1.3;
}

.kaede-score {
  display: grid;
  gap: 5px;
  margin: 0;
}

.kaede-score div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(128, 231, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.kaede-score dt {
  color: #80e7ff;
  font-weight: 900;
}

.kaede-score dd {
  margin: 0;
  color: #fff5dd;
  font-weight: 900;
}

.sakura-game-controls {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 8px;
}

.kaede-live-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
}

.kaede-live-controls .button {
  width: 100%;
  min-height: 31px;
  padding: 5px 8px;
  font-size: 0.8rem;
}

.kaede-volume {
  display: grid;
  grid-column: 1 / -1;
  gap: 2px;
  color: #ffd7ee;
  font-size: 0.7rem;
  font-weight: 800;
}

.kaede-volume input {
  width: 100%;
  accent-color: #ff8ccf;
}

.kaede-status > .button {
  min-height: 33px;
  padding: 6px 10px;
}

.kaede-lane-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(10px, 1.1vw, 16px);
}

#kaede-canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(64vh, 510px);
  aspect-ratio: 520 / 640;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(18, 7, 37, 0.9);
  box-shadow: inset 0 0 42px rgba(255, 140, 207, 0.1);
}

.kaede-control-note {
  margin: 8px 0 0;
  color: #ffd7ee;
  font-size: 0.82rem;
  text-align: center;
}

.kaede-bg-preview-button {
  justify-self: center;
  min-height: 34px;
  margin-top: 8px;
  padding: 5px 18px;
  border: 1px solid rgba(255, 140, 207, 0.48);
  border-radius: 999px;
  color: #fff5fb;
  background: rgba(18, 7, 37, 0.78);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 140, 207, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.kaede-bg-preview-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 140, 207, 0.16);
  box-shadow: 0 0 26px rgba(255, 140, 207, 0.3);
}

.kaede-judge-pop {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  padding: 8px 18px;
  border-radius: 999px;
  color: #16071f;
  background: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
}

.kaede-judge-pop.good {
  background: linear-gradient(135deg, #ff8ccf, #80e7ff);
}

.kaede-judge-pop.miss {
  color: #fff5fb;
  background: rgba(70, 44, 92, 0.95);
}

.kaede-judge-pop.is-visible {
  animation: kaedeJudge 0.5s ease both;
}

.kaede-character {
  display: grid;
  align-self: stretch;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 5px;
  padding: clamp(10px, 0.85vw, 14px);
}

.kaede-howto {
  padding: 6px 9px;
  border: 1px solid rgba(128, 231, 255, 0.22);
  border-left: 4px solid #ff8ccf;
  border-radius: 8px;
  color: #fff5fb;
  background: rgba(255, 255, 255, 0.055);
}

.kaede-howto strong {
  display: block;
  color: #80e7ff;
  font-size: 0.88rem;
}

.kaede-howto p {
  margin: 3px 0 0;
  font-size: 0.64rem;
  line-height: 1.2;
}

.kaede-portrait {
  display: block;
  align-self: center;
  justify-self: center;
  width: min(112%, 380px);
  max-width: none;
  max-height: 44vh;
  object-fit: contain;
  object-position: bottom center;
  margin: 0 auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.48));
}

.kaede-speaker {
  margin: 0;
  border-color: rgba(255, 140, 207, 0.48);
  background: linear-gradient(135deg, rgba(255, 140, 207, 0.65), rgba(84, 45, 168, 0.74));
}

.kaede-dialogue {
  min-height: 72px;
  padding: 8px 11px;
  border: 1px solid rgba(128, 231, 255, 0.28);
  border-left: 4px solid #ff8ccf;
  color: #fff5fb;
  background: linear-gradient(180deg, rgba(18, 7, 37, 0.82), rgba(36, 18, 62, 0.78));
  font-size: 0.86rem;
  line-height: 1.42;
}

.kaede-dialogue span {
  display: inline-block;
  margin-top: 8px;
  color: #ffffff;
}

.kaede-dialogue.is-reacting {
  animation: memoryTalk 0.48s ease;
}

.kaede-result {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin: 0;
  border: 1px solid rgba(255, 140, 207, 0.54);
  border-radius: 8px;
  color: #16071f;
  background: linear-gradient(135deg, #ff8ccf, #80e7ff);
  font-size: 1.05rem;
  font-weight: 900;
}

.kaede-reward {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 2, 18, 0.66);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.kaede-reward.is-visible {
  opacity: 1;
}

.kaede-reward[hidden] {
  display: none;
}

.kaede-reward-panel {
  position: relative;
  width: min(820px, 88vw);
  max-height: calc(100vh - 120px);
  padding: 18px;
  border: 1px solid rgba(255, 140, 207, 0.62);
  border-radius: 10px;
  color: #fff5fb;
  background: linear-gradient(180deg, rgba(18, 7, 37, 0.96), rgba(36, 18, 62, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56), 0 0 34px rgba(255, 140, 207, 0.2);
}

.kaede-reward-panel h2 {
  margin: 2px 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.kaede-reward-panel img {
  display: block;
  width: 100%;
  max-height: min(45vh, 430px);
  object-fit: contain;
  border: 1px solid rgba(255, 140, 207, 0.38);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.kaede-reward-panel .button {
  margin-top: 14px;
}

.kaede-reward-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 140, 207, 0.5);
  border-radius: 999px;
  color: #fff5fb;
  background: rgba(72, 28, 86, 0.88);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.kaede-bg-preview-panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: min(360px, 86vw);
  padding: 14px 18px;
  border: 1px solid rgba(255, 140, 207, 0.42);
  border-radius: 10px;
  color: #fff5fb;
  background: rgba(12, 6, 26, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 28px rgba(255, 140, 207, 0.16);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.kaede-bg-preview-panel[hidden] {
  display: none;
}

.kaede-bg-preview-panel h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
}

.kaede-stage.is-bg-preview .kaede-content {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.kaede-stage.is-bg-preview .kaede-stage-shade {
  background:
    linear-gradient(180deg, rgba(8, 2, 18, 0.06), rgba(8, 2, 18, 0.24)),
    radial-gradient(circle at center, rgba(255, 140, 207, 0.08), transparent 34rem);
}

.yukine-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: url("../contents/yukine-room/images/雪音の部屋.png") center / cover no-repeat;
}

.yukine-stage::before,
.yukine-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.yukine-stage::before {
  background:
    linear-gradient(90deg, rgba(4, 8, 22, 0.78), rgba(20, 22, 46, 0.24) 50%, rgba(4, 8, 22, 0.78)),
    radial-gradient(circle at 52% 25%, rgba(171, 193, 255, 0.13), transparent 28rem);
}

.yukine-stage::after {
  opacity: 0.16;
  background:
    radial-gradient(circle at 20% 24%, rgba(235, 242, 255, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 32%, rgba(190, 210, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 46% 76%, rgba(255, 255, 255, 0.16) 0 1px, transparent 2px);
  background-size: 220px 180px, 260px 210px, 190px 240px;
  animation: yukineCurtain 12s ease-in-out infinite alternate;
}

.yukine-stage[data-light="warm"]::before {
  background:
    linear-gradient(90deg, rgba(18, 10, 18, 0.72), rgba(58, 36, 54, 0.28) 50%, rgba(18, 10, 18, 0.76)),
    radial-gradient(circle at 34% 28%, rgba(255, 196, 128, 0.24), transparent 26rem);
}

.yukine-stage[data-light="dark"]::before {
  background:
    linear-gradient(90deg, rgba(1, 4, 13, 0.9), rgba(5, 8, 20, 0.68) 50%, rgba(1, 4, 13, 0.92)),
    radial-gradient(circle at 52% 25%, rgba(82, 98, 150, 0.14), transparent 24rem);
}

.yukine-stage.is-sleeping::before {
  background: rgba(1, 3, 10, 0.92);
}

.yukine-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background:
    radial-gradient(circle, rgba(230, 240, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(179, 200, 255, 0.38) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px);
  background-size: 120px 110px, 180px 150px, 260px 220px;
  background-position: 12px 18px, 80px 44px, 140px 90px;
  animation: yukineLightDust 14s ease-in-out infinite alternate;
}

.yukine-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background: radial-gradient(circle at 72% 28%, rgba(196, 213, 255, 0.17), transparent 22rem);
  animation: yukineGlow 5.5s ease-in-out infinite;
}

.yukine-content {
  position: relative;
  z-index: 2;
  width: min(1840px, 95vw);
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(270px, 24fr) minmax(420px, 42fr) minmax(260px, 24fr);
  align-items: center;
  gap: clamp(14px, 1.5vw, 24px);
  margin: 0 auto;
  padding: 0;
}

.yukine-control,
.yukine-room-view {
  border: 1px solid rgba(179, 200, 255, 0.28);
  border-radius: 8px;
  background: rgba(7, 12, 28, 0.72);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38), 0 0 30px rgba(179, 200, 255, 0.1);
  backdrop-filter: blur(12px);
}

.yukine-control {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}

.yukine-logo {
  display: block;
  width: min(100%, 360px);
  max-height: 150px;
  object-fit: contain;
  justify-self: center;
  margin: -18px 0 -10px;
  transform: scale(1.35);
  transform-origin: center;
  filter: drop-shadow(0 10px 22px rgba(179, 200, 255, 0.18));
}

.yukine-title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.yukine-clock {
  color: #edf4ff;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0;
}

.yukine-panel {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(179, 200, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.yukine-panel h2 {
  color: #c9d8ff;
  font-size: 0.78rem;
}

.yukine-sound-list,
.yukine-light-list,
.yukine-timer-list {
  display: grid;
  gap: 4px;
}

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

.yukine-sound-list button[data-sound-random] {
  grid-column: 1 / -1;
}

.yukine-timer-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yukine-sound-list button,
.yukine-light-list button,
.yukine-timer-list button,
.yukine-line-button {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(179, 200, 255, 0.26);
  border-radius: 8px;
  color: #edf4ff;
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.yukine-sound-list button:hover,
.yukine-light-list button:hover,
.yukine-timer-list button:hover,
.yukine-line-button:hover {
  transform: translateY(-1px);
  background: rgba(179, 200, 255, 0.13);
  box-shadow: 0 0 18px rgba(179, 200, 255, 0.18);
}

.yukine-sound-list button.is-active,
.yukine-light-list button.is-active,
.yukine-timer-list button.is-active {
  color: #071425;
  background: linear-gradient(135deg, #edf4ff, #aebfff);
}

.yukine-audio-controls {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  align-items: center;
  gap: 7px;
}

.yukine-audio-controls label {
  display: grid;
  gap: 3px;
  color: #dbe6ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.yukine-audio-controls input {
  width: 100%;
  accent-color: #aebfff;
}

.yukine-room-view {
  min-height: auto;
  display: grid;
  align-self: center;
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(7, 12, 28, 0.82), rgba(20, 22, 46, 0.76)),
    rgba(7, 12, 28, 0.72);
}

.yukine-room-caption {
  width: 100%;
  padding: 10px 12px;
  border-left: 4px solid #aebfff;
  color: #edf4ff;
  background: rgba(7, 12, 28, 0.62);
}

.yukine-room-caption p {
  margin: 0 0 4px;
  color: #ffffff;
  font-weight: 900;
}

.yukine-room-caption span {
  display: block;
  color: #c9d8ff;
  font-size: 0.86rem;
}

.yukine-room-caption small {
  display: block;
  margin-top: 8px;
  color: rgba(237, 244, 255, 0.76);
  font-size: 0.78rem;
  line-height: 1.5;
}

.yukine-character {
  display: grid;
  align-self: stretch;
  align-items: end;
  justify-items: center;
  min-height: calc(100vh - 100px);
  pointer-events: none;
}

.yukine-portrait {
  display: block;
  align-self: end;
  justify-self: center;
  width: min(112%, 560px);
  max-height: calc(100vh - 100px);
  object-fit: contain;
  transform: translateY(34px);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.48));
}

.yukine-speaker {
  margin: 0;
  border-color: rgba(179, 200, 255, 0.48);
  background: linear-gradient(135deg, rgba(67, 78, 132, 0.74), rgba(131, 110, 168, 0.64));
}

.yukine-dialogue {
  min-height: 78px;
  padding: 9px 12px;
  border: 1px solid rgba(179, 200, 255, 0.28);
  border-left: 4px solid #aebfff;
  color: #edf4ff;
  background: linear-gradient(180deg, rgba(7, 12, 28, 0.82), rgba(20, 22, 46, 0.78));
  font-size: 0.9rem;
  line-height: 1.45;
}

.yukine-dialogue span {
  display: inline-block;
  margin-top: 8px;
  color: #ffffff;
}

.yukine-dialogue.is-reacting {
  animation: memoryTalk 0.48s ease;
}

.yukine-auto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9d8ff;
  font-size: 0.86rem;
  font-weight: 800;
}

.yukine-auto input {
  accent-color: #aebfff;
}

@keyframes yukineLightDust {
  from {
    background-position: 12px 18px, 80px 44px, 140px 90px;
    opacity: 0.24;
  }
  to {
    background-position: 24px 8px, 68px 58px, 150px 78px;
    opacity: 0.42;
  }
}

@keyframes yukineGlow {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.68;
  }
}

@keyframes yukineCurtain {
  from {
    transform: translateX(-1%);
  }
  to {
    transform: translateX(1%);
  }
}

@keyframes kaedeLights {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 120px 92px, -170px 140px;
  }
}

@keyframes kaedeSpot {
  from {
    transform: translateX(-1.5%);
  }
  to {
    transform: translateX(1.5%);
  }
}

@keyframes kaedeJudge {
  0% {
    opacity: 0;
    transform: translate(-50%, -38%) scale(0.84);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -64%) scale(1);
  }
}

@keyframes sakuraCombo {
  0% {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.95);
  }

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

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

.fuyu-system {
  min-height: calc(100vh - 72px);
}

.fuyu-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: url("../contents/fuyu-kitchen/images/フユのロシア料理教室_背景.png") center / cover no-repeat;
}

.fuyu-stage::before,
.fuyu-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fuyu-stage::before {
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 215, 148, 0.22), transparent 18rem),
    radial-gradient(circle at 72% 42%, rgba(255, 125, 72, 0.16), transparent 22rem);
  mix-blend-mode: screen;
  animation: fuyuGlow 6s ease-in-out infinite;
}

.fuyu-stage::after {
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255, 238, 186, 0.8) 0 1.6px, transparent 2px),
    radial-gradient(circle, rgba(255, 177, 112, 0.54) 0 1.2px, transparent 1.8px);
  background-size: 130px 120px, 170px 150px;
}

.fuyu-stage.is-rare::after {
  animation: fuyuSparkle 1.8s ease-out both;
}

.fuyu-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 10, 5, 0.78), rgba(42, 20, 10, 0.3) 50%, rgba(22, 10, 7, 0.82)),
    radial-gradient(circle at center, rgba(255, 185, 102, 0.16), transparent 34rem);
}

.fuyu-steam {
  position: absolute;
  inset: auto 4vw 8vh auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 40% 80%, rgba(255, 245, 220, 0.18), transparent 56%),
    radial-gradient(ellipse at 70% 70%, rgba(255, 245, 220, 0.1), transparent 50%);
  filter: blur(12px);
  animation: fuyuSteam 7s ease-in-out infinite;
}

.fuyu-content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(1840px, 94vw);
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(260px, 24fr) minmax(300px, 28fr) minmax(430px, 48fr);
  align-items: center;
  gap: clamp(12px, 1.25vw, 22px);
  margin: 0 auto;
  padding: 10px 0;
}

.fuyu-menu,
.fuyu-recipe {
  border: 1px solid rgba(255, 210, 142, 0.34);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(35, 18, 10, 0.86), rgba(62, 32, 18, 0.76));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 32px rgba(255, 156, 83, 0.12);
  backdrop-filter: blur(10px);
}

.fuyu-menu {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: clamp(12px, 0.95vw, 16px);
}

.fuyu-bgm-toggle {
  position: absolute;
  top: -26px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 230, 176, 0.58);
  border-radius: 999px;
  color: #fff7df;
  background: linear-gradient(135deg, rgba(190, 104, 56, 0.92), rgba(92, 44, 24, 0.94));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.fuyu-bgm-toggle span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.fuyu-bgm-toggle[aria-pressed="true"] span {
  animation: livePulse 1.6s ease-in-out infinite;
}

.fuyu-logo {
  display: block;
  width: min(208px, 78%);
  margin: 0 auto;
  filter: drop-shadow(0 0 16px rgba(255, 215, 148, 0.28));
}

.fuyu-name {
  width: fit-content;
  margin: 0;
  border-color: rgba(255, 210, 142, 0.58);
  background: linear-gradient(180deg, rgba(180, 79, 52, 0.72), rgba(92, 44, 24, 0.88));
}

.fuyu-dialogue {
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 210, 142, 0.3);
  border-left: 4px solid #ffd58d;
  color: #fff6df;
  background: rgba(24, 13, 9, 0.58);
  line-height: 1.45;
}

.fuyu-dialogue span {
  display: inline-block;
  margin-top: 6px;
  color: #ffe4ad;
}

.fuyu-dialogue.is-reacting {
  animation: fuyuTalk 0.48s ease;
}

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

.fuyu-buttons button {
  min-height: 44px;
  padding: 6px 4px;
  border: 1px solid rgba(255, 210, 142, 0.42);
  border-radius: 8px;
  color: #fff5dd;
  background: linear-gradient(135deg, rgba(101, 48, 28, 0.88), rgba(148, 72, 42, 0.72));
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.fuyu-buttons button:hover,
.fuyu-buttons button.is-active {
  transform: translateY(-2px);
  border-color: rgba(255, 230, 176, 0.82);
  box-shadow: 0 0 24px rgba(255, 174, 92, 0.3);
}

.fuyu-today {
  display: grid;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 232, 182, 0.24);
  border-radius: 8px;
  background: rgba(255, 246, 220, 0.06);
}

.fuyu-today h2 {
  margin: 0;
  color: #fff2d5;
  font-size: 1.1rem;
}

.fuyu-today p:last-of-type {
  margin: 0;
  color: #f3dfc2;
  font-size: 0.92rem;
  line-height: 1.45;
}

.fuyu-today button {
  min-height: 34px;
  border: 1px solid rgba(255, 232, 182, 0.54);
  border-radius: 8px;
  color: #fff8e8;
  background: linear-gradient(135deg, rgba(128, 58, 34, 0.9), rgba(174, 99, 52, 0.88));
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.fuyu-character {
  position: relative;
  align-self: stretch;
  display: grid;
  align-items: end;
  justify-items: center;
  min-height: 500px;
}

.fuyu-portrait {
  display: block;
  width: min(120%, 520px);
  max-height: calc(100vh - 164px);
  object-fit: contain;
  object-position: bottom center;
  transform: translateY(42px);
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.48));
}

.fuyu-outfit-button {
  position: absolute;
  right: -6px;
  top: 12%;
  z-index: 3;
  min-height: 42px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 230, 176, 0.58);
  border-radius: 999px;
  color: #fff7df;
  background: linear-gradient(135deg, rgba(190, 104, 56, 0.92), rgba(92, 44, 24, 0.94));
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34), 0 0 18px rgba(255, 174, 92, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fuyu-outfit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38), 0 0 26px rgba(255, 174, 92, 0.34);
}

.fuyu-rare-badge {
  position: absolute;
  top: 12%;
  right: 6%;
  z-index: 2;
  min-height: 34px;
  margin: 0;
  padding: 4px 14px;
  border: 1px solid rgba(255, 230, 176, 0.75);
  border-radius: 999px;
  color: #4a2110;
  background: #ffd58d;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(255, 213, 141, 0.52);
}

.fuyu-recipe {
  position: relative;
  min-height: 548px;
  padding: clamp(12px, 1.05vw, 18px);
}

.fuyu-recipe-empty {
  display: grid;
  align-content: center;
  min-height: 500px;
  padding: 20px;
  border: 1px dashed rgba(255, 210, 142, 0.34);
  border-radius: 8px;
  color: #fff6df;
  background: rgba(24, 13, 9, 0.42);
}

.fuyu-recipe-empty h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.fuyu-card {
  display: grid;
  grid-template-columns: minmax(190px, 36%) minmax(0, 1fr);
  gap: clamp(12px, 1.2vw, 18px);
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  transition: opacity 0.36s ease, transform 0.36s ease;
}

.fuyu-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fuyu-dish-zoom {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.fuyu-dish-zoom span {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  min-width: max-content;
  padding: 4px 10px;
  border: 1px solid rgba(255, 230, 176, 0.58);
  border-radius: 999px;
  color: #fff7df;
  background: rgba(32, 15, 8, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.fuyu-dish-zoom:hover span {
  opacity: 1;
  transform: translate(-50%, -2px);
}

.fuyu-dish-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: 396px;
  object-fit: contain;
  border: 1px solid rgba(255, 210, 142, 0.46);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 26px rgba(255, 174, 92, 0.16);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.fuyu-dish-zoom:hover .fuyu-dish-image {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(255, 174, 92, 0.28);
}

.fuyu-lightbox {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 8, 4, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.fuyu-lightbox[hidden] {
  display: none;
}

.fuyu-lightbox.is-visible {
  opacity: 1;
}

.fuyu-lightbox img {
  display: block;
  width: auto;
  max-width: min(92vw, 920px);
  max-height: min(88vh, 920px);
  border: 1px solid rgba(255, 230, 176, 0.62);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.36);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 36px rgba(255, 174, 92, 0.22);
}

.fuyu-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 230, 176, 0.58);
  border-radius: 999px;
  color: #fff7df;
  background: rgba(92, 44, 24, 0.94);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
}

.fuyu-card-body h1 {
  margin: 0 0 6px;
  color: #fff6df;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
}

.fuyu-card-body h2 {
  margin: 0 0 6px;
  color: #ffd58d;
  font-size: 1rem;
}

.fuyu-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
  margin: 10px 0;
}

.fuyu-card-grid ul,
.fuyu-card-grid ol {
  margin: 0;
  padding-left: 1.2em;
  color: #fff6df;
}

.fuyu-card blockquote {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 4px solid #ffd58d;
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.06);
}

.fuyu-point {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 210, 142, 0.34);
  border-radius: 8px;
  color: #fff6df;
  background: rgba(255, 213, 141, 0.08);
}

.fuyu-point strong {
  color: #ffd58d;
}

@keyframes fuyuGlow {
  0%,
  100% {
    opacity: 0.54;
  }

  50% {
    opacity: 0.86;
  }
}

@keyframes fuyuSteam {
  0%,
  100% {
    opacity: 0.26;
    transform: translateY(16px) scale(0.94);
  }

  50% {
    opacity: 0.5;
    transform: translateY(-12px) scale(1.06);
  }
}

@keyframes fuyuSparkle {
  0% {
    opacity: 0;
    background-position: 0 -20%, 40% -30%;
  }

  30% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    background-position: 0 110%, 40% 120%;
  }
}

@keyframes fuyuTalk {
  50% {
    box-shadow: 0 0 24px rgba(255, 213, 141, 0.24);
  }
}

.memory-system {
  min-height: calc(100vh - 72px);
}

.memory-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: url("../contents/haruka-memory/images/学校.png") center / cover no-repeat;
}

.memory-stage::before,
.memory-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.memory-stage::before {
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 195, 106, 0.2), transparent 18rem),
    radial-gradient(circle at 72% 34%, rgba(116, 216, 239, 0.12), transparent 20rem);
  mix-blend-mode: screen;
  animation: memoryLight 6s ease-in-out infinite;
}

.memory-stage::after {
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255, 245, 190, 0.72) 0 2px, transparent 2.4px),
    radial-gradient(circle, rgba(116, 216, 239, 0.42) 0 1.6px, transparent 2px);
  background-size: 120px 90px, 160px 120px;
}

.memory-stage.is-clear::after {
  animation: memoryConfetti 1.6s ease-out both;
}

.memory-stage.is-failed .memory-shade {
  background: rgba(2, 4, 10, 0.62);
}

.memory-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 18, 0.82), rgba(7, 17, 31, 0.38) 48%, rgba(5, 9, 18, 0.78)),
    radial-gradient(circle at center, rgba(255, 158, 81, 0.14), transparent 34rem);
}

.memory-content {
  position: relative;
  z-index: 2;
  width: min(1840px, 95vw);
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(250px, 23fr) minmax(520px, 52fr) minmax(260px, 25fr);
  align-items: center;
  gap: clamp(14px, 1.5vw, 26px);
  margin: 0 auto;
  padding: 8px 0;
}

.memory-status,
.memory-board-wrap,
.memory-haruka {
  border: 1px solid rgba(116, 216, 239, 0.28);
  border-radius: 8px;
  background: rgba(8, 24, 42, 0.76);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36), 0 0 28px rgba(255, 168, 96, 0.12);
  backdrop-filter: blur(11px);
}

.memory-status {
  position: relative;
  display: grid;
  gap: 10px;
  padding: clamp(14px, 1.25vw, 20px);
}

.memory-stage.is-clear .memory-haruka,
.memory-stage.is-failed .memory-haruka {
  gap: 4px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.memory-logo {
  display: block;
  width: min(230px, 82%);
  margin: -8px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 195, 106, 0.22));
}

.memory-bgm-toggle {
  position: absolute;
  top: -28px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 50px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 195, 106, 0.5);
  border-radius: 999px;
  color: #fff7df;
  background: linear-gradient(135deg, rgba(255, 160, 85, 0.82), rgba(21, 57, 98, 0.92));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.memory-bgm-toggle span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.memory-bgm-toggle[aria-pressed="true"] span {
  animation: livePulse 1.6s ease-in-out infinite;
}

.difficulty-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.difficulty-select button {
  min-height: 38px;
  border: 1px solid rgba(116, 216, 239, 0.34);
  border-radius: 8px;
  color: #dff8ff;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.difficulty-select button.is-active {
  color: #152238;
  background: #ffd58d;
}

.difficulty-select button:disabled {
  color: rgba(223, 248, 255, 0.42);
  background: rgba(255, 255, 255, 0.03);
  cursor: default;
}

.memory-score {
  display: grid;
  gap: 6px;
  margin: 0;
}

.memory-score div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(116, 216, 239, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.memory-score dt {
  color: #74d8ef;
  font-weight: 700;
}

.memory-score dd {
  margin: 0;
  color: #fff5dd;
  font-weight: 800;
}

.memory-board-wrap {
  padding: clamp(10px, 1.1vw, 16px);
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(var(--memory-columns), minmax(0, 1fr));
  gap: clamp(5px, 0.62vw, 9px);
  width: 100%;
  margin: 0 auto;
  justify-self: center;
}

.memory-board.is-easy {
  max-width: min(100%, 370px);
}

.memory-board.is-normal {
  max-width: min(100%, 560px);
}

.memory-board.is-hard {
  max-width: min(100%, 720px);
}

.memory-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
}

.memory-card-inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.32s ease;
}

.memory-card.is-open .memory-card-inner,
.memory-card.is-matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backface-visibility: hidden;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.26);
}

.memory-card-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-card-front {
  transform: rotateY(180deg);
}

.memory-card.is-matched .memory-card-face {
  border-color: rgba(255, 213, 141, 0.9);
  box-shadow: 0 0 20px rgba(255, 213, 141, 0.4);
}

.memory-card.is-miss {
  animation: memoryShake 0.28s ease;
}

.memory-card.is-hint .memory-card-face {
  border-color: rgba(116, 216, 239, 0.95);
  box-shadow: 0 0 24px rgba(116, 216, 239, 0.72), 0 0 38px rgba(255, 213, 141, 0.34);
  animation: memoryHint 1.2s ease both;
}

.memory-haruka {
  display: grid;
  align-self: stretch;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  align-content: stretch;
  gap: 6px;
  padding: clamp(14px, 1.25vw, 20px);
}

.memory-howto {
  padding: 6px 9px;
  border: 1px solid rgba(116, 216, 239, 0.22);
  border-left: 4px solid #74d8ef;
  border-radius: 8px;
  color: #fff5dd;
  background: rgba(255, 255, 255, 0.055);
}

.memory-howto strong {
  display: block;
  color: #74d8ef;
  font-size: 0.86rem;
}

.memory-howto p {
  margin: 2px 0 0;
  font-size: 0.68rem;
  line-height: 1.25;
}

.memory-haruka-image {
  display: block;
  align-self: center;
  justify-self: center;
  width: min(100%, 520px);
  max-width: none;
  max-height: 48vh;
  object-fit: contain;
  object-position: bottom center;
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.memory-talk-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.memory-speaker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin: 0;
  padding: 4px 16px;
  border: 1px solid rgba(255, 213, 141, 0.5);
  border-radius: 8px 8px 0 0;
  color: #fff5dd;
  background: linear-gradient(180deg, rgba(255, 146, 91, 0.72), rgba(34, 73, 116, 0.86));
  font-weight: 800;
}

.memory-hint-button {
  min-height: 28px;
  margin: 0 0 0 auto;
  padding: 4px 10px;
  border: 1px solid rgba(116, 216, 239, 0.45);
  border-radius: 999px;
  color: #fff5dd;
  background: linear-gradient(135deg, rgba(35, 86, 122, 0.9), rgba(109, 60, 114, 0.84));
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(116, 216, 239, 0.16);
}

.memory-hint-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 20px;
  margin-left: 5px;
  border-radius: 999px;
  color: #152238;
  background: #ffd58d;
}

.memory-hint-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(116, 216, 239, 0.34);
}

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

.memory-dialogue {
  min-height: 76px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 213, 141, 0.32);
  border-left: 4px solid #ffd58d;
  color: #fff5dd;
  background: linear-gradient(180deg, rgba(8, 24, 42, 0.82), rgba(28, 38, 58, 0.76));
  font-size: 0.86rem;
  line-height: 1.45;
}

.memory-stage.is-clear .memory-haruka-image,
.memory-stage.is-failed .memory-haruka-image {
  max-height: 26vh;
}

.memory-stage.is-clear .memory-dialogue,
.memory-stage.is-failed .memory-dialogue {
  min-height: 86px;
}

.memory-dialogue span {
  display: inline-block;
  margin-top: 8px;
  color: #ffffff;
}

.memory-dialogue.is-reacting {
  animation: memoryTalk 0.48s ease;
}

.memory-rank {
  display: grid;
  place-items: center;
  min-height: 46px;
  margin: 12px 0 0;
  border: 1px solid rgba(255, 213, 141, 0.46);
  border-radius: 8px;
  color: #152238;
  background: #ffd58d;
  font-size: 1.2rem;
  font-weight: 900;
}

.memory-stage.is-clear .memory-rank,
.memory-stage.is-failed .memory-rank {
  margin-top: 6px;
}

.memory-reward {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 7, 14, 0.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.memory-reward.is-visible {
  opacity: 1;
}

.memory-reward[hidden] {
  display: none;
}

.memory-reward-panel {
  position: relative;
  width: min(820px, 88vw);
  max-height: calc(100vh - 120px);
  padding: 18px;
  border: 1px solid rgba(255, 213, 141, 0.62);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(8, 24, 42, 0.96), rgba(24, 37, 56, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56), 0 0 34px rgba(255, 213, 141, 0.18);
}

.memory-reward-panel h2 {
  margin: 2px 0 12px;
  color: #fff5dd;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.memory-reward-panel img {
  display: block;
  width: 100%;
  max-height: min(45vh, 430px);
  object-fit: contain;
  border: 1px solid rgba(255, 213, 141, 0.36);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.memory-reward-panel .button {
  margin-top: 14px;
}

.memory-reward-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 213, 141, 0.5);
  border-radius: 999px;
  color: #fff5dd;
  background: rgba(72, 28, 35, 0.86);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

/* === 共通：使い方ボックス === */
.content-howto {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.82rem;
  line-height: 1.5;
}

.content-howto strong {
  opacity: 0.95;
}

.content-howto ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 3px;
}

/* === 真白のパズルルーム === */
.mashiro-system { min-height: calc(100vh - 76px); }

.mashiro-stage {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: url("../contents/mashiro-puzzle/images/女子部屋1.png") center / cover no-repeat;
  color: #eef6ff;
}

.mashiro-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 12, 22, 0.7), rgba(8, 18, 32, 0.25) 50%, rgba(6, 12, 22, 0.7)),
    radial-gradient(circle at center, rgba(200, 222, 255, 0.1), transparent 32rem);
}

.mashiro-content {
  position: relative;
  z-index: 2;
  width: min(1700px, 95vw);
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(250px, 22fr) minmax(460px, 50fr) minmax(240px, 24fr);
  align-items: center;
  gap: clamp(14px, 1.5vw, 26px);
  margin: 0 auto;
  padding: 18px 0;
}

.mashiro-panel,
.mashiro-side {
  align-self: stretch;
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(180, 206, 238, 0.4);
  border-radius: 10px;
  background: rgba(10, 22, 38, 0.74);
}

.mashiro-logo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.mashiro-score { display: grid; gap: 6px; margin: 0; }

.mashiro-score div {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(180, 206, 238, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.mashiro-score dt { margin: 0; color: #b9d3ec; font-size: 0.82rem; }
.mashiro-score dd { margin: 0; color: #fff; font-weight: 800; }

.mashiro-reference { display: grid; gap: 6px; }

.mashiro-reference img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(180, 206, 238, 0.3);
}

.mashiro-buttons { display: grid; }

.mashiro-board-wrap {
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.1vw, 18px);
}

.mashiro-board {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), 1fr);
  grid-template-rows: repeat(var(--n, 4), 1fr);
  gap: 2px;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1.75;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(180, 206, 238, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  touch-action: none;
}

.mashiro-slot {
  position: relative;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.mashiro-piece {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  cursor: grab;
  touch-action: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.mashiro-piece.is-correct { border-color: rgba(150, 232, 180, 0.6); }

.mashiro-piece.is-dragging {
  cursor: grabbing;
  border-color: #cfe8ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.mashiro-board.is-solved { gap: 0; box-shadow: 0 0 40px rgba(180, 220, 255, 0.4); }
.mashiro-board.is-solved .mashiro-slot { background: transparent; }
.mashiro-board.is-solved .mashiro-piece { border-color: transparent; }

.mashiro-portrait {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}

.mashiro-speaker {
  margin: 0;
  color: #cfe2f6;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.mashiro-dialogue {
  padding: 10px 12px;
  border-left: 3px solid rgba(180, 206, 238, 0.7);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  line-height: 1.6;
}

.mashiro-dialogue span { color: #bcd6ef; font-size: 0.92em; }
.mashiro-dialogue.is-reacting { animation: mashiroPop 0.3s ease; }

@keyframes mashiroPop {
  0% { transform: translateY(4px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}

.mashiro-howto {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(180, 206, 238, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  color: #dfeaf7;
}

.mashiro-howto strong { color: #fff; }
.mashiro-howto p { margin: 0; }

.difficulty-select button.is-cleared::after {
  content: " ✓";
  color: #8ee8b4;
}

.mashiro-reward {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 7, 14, 0.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mashiro-reward[hidden] { display: none; }
.mashiro-reward.is-visible { opacity: 1; }

.mashiro-reward-panel {
  position: relative;
  width: min(880px, 90vw);
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(190, 214, 240, 0.6);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 24, 42, 0.96), rgba(20, 34, 54, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56), 0 0 34px rgba(190, 214, 240, 0.2);
  text-align: center;
}

.mashiro-reward-panel h2 { margin: 2px 0 12px; color: #fff5f8; }
.mashiro-reward-panel img { width: 100%; border-radius: 8px; margin-bottom: 14px; }

.mashiro-reward-memory {
  margin: 0 auto 14px;
  max-width: 640px;
  padding: 10px 14px;
  border-left: 3px solid rgba(180, 206, 238, 0.7);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #eef6ff;
  line-height: 1.6;
  text-align: left;
}

.mashiro-reward-memory span { color: #bcd6ef; font-size: 0.92em; }

.mashiro-reward-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(220, 235, 255, 0.78);
  border-radius: 50%;
  color: #14233a;
  background: #d8ecff;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .mashiro-content {
    grid-template-columns: 1fr;
    width: 92vw;
    min-height: auto;
    padding: 28px 0 44px;
  }

  .mashiro-panel,
  .mashiro-side {
    max-height: none;
    overflow: visible;
  }

  .mashiro-board-wrap { order: 1; }
  .mashiro-side { order: 2; }
  .mashiro-portrait { max-width: 220px; }
}

@media (max-width: 640px) {
  .mashiro-panel,
  .mashiro-side { padding: 14px; }
}

@keyframes memoryLight {
  0%,
  100% {
    opacity: 0.52;
  }

  50% {
    opacity: 0.86;
  }
}

@keyframes memoryConfetti {
  0% {
    opacity: 0;
    background-position: 0 -20%, 30% -30%;
  }

  25% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    background-position: 0 120%, 30% 130%;
  }
}

@keyframes memoryShake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

@keyframes memoryHint {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.035);
  }
}

@keyframes memoryTalk {
  50% {
    box-shadow: 0 0 22px rgba(255, 213, 141, 0.24);
  }
}

@keyframes loadingBar {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(240%);
  }
}

.character-section {
  margin-bottom: 42px;
}

.character-section h2 {
  margin-bottom: 10px;
}

.role-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 16px 0 14px;
  padding: 4px 12px;
  border: 1px solid rgba(116, 216, 239, 0.45);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(116, 216, 239, 0.1);
  font-size: 0.9rem;
  font-weight: 700;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.character-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.character-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  background: var(--panel-solid);
}

.character-card div {
  padding: 16px;
}

.character-card h3 {
  font-size: 1.15rem;
}

.character-card p:last-child {
  margin-bottom: 0;
  color: #cfe0ec;
}

.special-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 8px 0 10px;
  padding: 4px 10px;
  border: 1px solid rgba(225, 178, 96, 0.52);
  border-radius: 999px;
  color: #ffe9bd;
  background: rgba(120, 31, 42, 0.5);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.special-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 213, 141, 0.82);
  box-shadow: 0 0 18px rgba(255, 213, 141, 0.18);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.mini-card,
.prompt-card {
  padding: 22px;
}

blockquote {
  margin: 16px 0 0;
  color: var(--cyan);
}

pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  color: #e7f8ff;
  white-space: pre-wrap;
}

.note {
  color: var(--muted);
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.link-list span {
  color: var(--muted);
  font-weight: 400;
}

.profile-table {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.profile-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}

.profile-table div:last-child {
  border-bottom: 0;
}

.profile-table dt,
.profile-table dd {
  margin: 0;
  padding: 16px 18px;
}

.profile-table dt {
  color: var(--cyan);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #050d18;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}

@media (max-width: 1120px) {
  .sakura-game-stage {
    min-height: auto;
    overflow: visible;
  }

  .natsumi-escape-stage {
    min-height: auto;
    overflow: visible;
  }

  .yukine-stage {
    min-height: auto;
    overflow: visible;
  }

  .kaede-stage {
    min-height: auto;
    overflow: visible;
  }

  .sakura-game-content {
    grid-template-columns: 1fr;
    width: 92vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .natsumi-escape-content {
    grid-template-columns: 1fr;
    width: 92vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .yukine-content {
    grid-template-columns: 1fr;
    width: 92vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .kaede-content {
    grid-template-columns: 1fr;
    width: 92vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .sakura-character {
    order: -1;
    min-height: auto;
  }

  .natsumi-character {
    order: -1;
    min-height: auto;
  }

  .yukine-character {
    order: -1;
    min-height: auto;
  }

  .kaede-character {
    order: -1;
    min-height: auto;
  }

  .sakura-game-status {
    order: 0;
  }

  .natsumi-escape-menu {
    order: 0;
  }

  .sakura-court-wrap {
    order: 1;
  }

  .natsumi-case-board {
    order: 1;
  }

  .yukine-room-view {
    order: 1;
    min-height: 360px;
  }

  .kaede-lane-wrap {
    order: 1;
  }

  .sakura-portrait {
    width: min(58vw, 420px);
    max-height: 420px;
  }

  .natsumi-select-portrait {
    width: min(68vw, 430px);
    max-height: 440px;
  }

  .yukine-portrait {
    width: min(60vw, 420px);
    max-height: 440px;
  }

  .kaede-portrait {
    width: min(60vw, 430px);
    max-height: 430px;
  }

  .fuyu-stage {
    min-height: auto;
    overflow: visible;
  }

  .fuyu-content {
    grid-template-columns: 1fr;
    width: 90vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .fuyu-character {
    order: -1;
    min-height: auto;
  }

  .fuyu-menu {
    order: 0;
    max-height: none;
    overflow: visible;
  }

  .fuyu-recipe {
    order: 1;
    min-height: auto;
  }

  .fuyu-recipe-empty {
    min-height: 260px;
  }

  .fuyu-portrait {
    width: min(68vw, 430px);
    max-height: 460px;
    transform: translateY(10px);
  }

  .fuyu-outfit-button {
    right: 8%;
    top: 18%;
  }

  .special-carousel {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .special-arrow {
    width: 42px;
  }

  .special-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .bar-stage {
    min-height: auto;
    overflow: visible;
  }

  .fortune-stage {
    min-height: auto;
    overflow: visible;
  }

  .stream-stage {
    min-height: auto;
    overflow: visible;
  }

  .memory-stage {
    min-height: auto;
    overflow: visible;
  }

  .bar-content {
    grid-template-columns: 1fr;
    width: 90vw;
    height: auto;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .fortune-content {
    grid-template-columns: 1fr;
    width: 90vw;
    height: auto;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .stream-content {
    grid-template-columns: 1fr;
    width: 90vw;
    height: auto;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .stream-control {
    max-height: none;
    overflow: visible;
  }

  .memory-content {
    grid-template-columns: 1fr;
    width: 92vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .bar-character {
    order: -1;
    min-height: auto;
  }

  .fortune-character {
    order: -1;
    min-height: auto;
  }

  .stream-character {
    order: -1;
    min-height: auto;
  }

  .memory-haruka {
    order: -1;
  }

  .bar-ui {
    order: 0;
    max-height: none;
    overflow: visible;
  }

  .fortune-ui {
    order: 0;
    max-height: none;
    overflow: visible;
  }

  .stream-control {
    order: 0;
  }

  .memory-status {
    order: 0;
  }

  .cocktail-result {
    order: 1;
    min-height: auto;
  }

  .fortune-result {
    order: 1;
    min-height: auto;
  }

  .stream-comments {
    order: 1;
    min-height: 420px;
  }

  .memory-board-wrap {
    order: 1;
  }

  .bar-reika {
    width: min(58vw, 420px);
    max-height: 440px;
    transform: translateY(10px);
  }

  .fortune-yuuki {
    width: min(58vw, 420px);
    max-height: 440px;
    transform: translateY(10px);
  }

  .stream-ami {
    width: min(62vw, 430px);
    max-height: 440px;
    transform: translateY(10px);
  }

  .memory-haruka-image {
    max-height: 340px;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 5vw;
    right: 5vw;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(6, 16, 30, 0.96);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .card-grid,
  .gateway-layout,
  .character-grid,
  .mini-grid,
  .detail-layout,
  .info-grid,
  .sample-grid,
  .character-link-grid,
  .character-link-grid.single,
  .character-link-grid.two,
  .character-detail-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .today-pick a {
    grid-template-columns: 1fr;
  }

  .today-pick-media {
    min-height: 220px;
  }

  .work-card.wide {
    grid-template-columns: 1fr;
  }

  .work-card.wide .work-media {
    height: auto;
  }
}

@media (max-width: 620px) {
  .brand-text {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-inner {
    width: min(88vw, 620px);
    margin: 0 auto;
    padding: 70px 0 110px;
  }

  .section {
    padding: 60px 0;
  }

  .news-list article,
  .profile-table div,
  .link-list a {
    grid-template-columns: 1fr;
  }

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

  .gateway-tile {
    min-height: 108px;
  }

  .bar-content {
    grid-template-columns: 1fr;
    width: 90vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .fortune-content {
    grid-template-columns: 1fr;
    width: 90vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .stream-content {
    grid-template-columns: 1fr;
    width: 90vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .memory-content {
    grid-template-columns: 1fr;
    width: 94vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .natsumi-escape-content {
    grid-template-columns: 1fr;
    width: 94vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .special-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .special-arrow {
    width: 38px;
    font-size: 1.7rem;
  }

  .special-card {
    flex-basis: 100%;
  }

  .fuyu-content {
    grid-template-columns: 1fr;
    width: 90vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .sakura-game-content {
    grid-template-columns: 1fr;
    width: 94vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .yukine-content {
    grid-template-columns: 1fr;
    width: 94vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .kaede-content {
    grid-template-columns: 1fr;
    width: 94vw;
    min-height: auto;
    padding: 32px 0 46px;
    margin: 0 auto;
  }

  .bar-character {
    order: -1;
    min-height: auto;
  }

  .fortune-character {
    order: -1;
    min-height: auto;
  }

  .stream-character {
    order: -1;
    min-height: auto;
  }

  .memory-haruka {
    order: -1;
  }

  .fuyu-character {
    order: -1;
    min-height: auto;
  }

  .sakura-character {
    order: -1;
    min-height: auto;
  }

  .natsumi-character {
    order: -1;
    min-height: auto;
  }

  .yukine-character {
    order: -1;
    min-height: auto;
  }

  .kaede-character {
    order: -1;
    min-height: auto;
  }

  .bar-ui {
    order: 0;
    max-height: none;
    overflow: visible;
  }

  .fortune-ui {
    order: 0;
    max-height: none;
    overflow: visible;
  }

  .stream-control {
    order: 0;
  }

  .memory-status {
    order: 0;
  }

  .fuyu-menu {
    order: 0;
  }

  .sakura-game-status {
    order: 0;
  }

  .natsumi-escape-menu {
    order: 0;
  }

  .yukine-control {
    order: 0;
  }

  .kaede-status {
    order: 0;
  }

  .cocktail-result {
    order: 1;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .fortune-result {
    order: 1;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .stream-comments {
    order: 1;
    min-height: 380px;
  }

  .memory-board-wrap {
    order: 1;
  }

  .fuyu-recipe {
    order: 1;
    min-height: auto;
  }

  .sakura-court-wrap {
    order: 1;
  }

  .natsumi-case-board {
    order: 1;
  }

  .yukine-room-view {
    order: 1;
    min-height: 300px;
  }

  .kaede-lane-wrap {
    order: 1;
  }

  .sakura-portrait {
    width: min(76vw, 330px);
    max-height: 340px;
  }

  .natsumi-select-portrait {
    width: min(82vw, 340px);
    max-height: 360px;
  }

  .yukine-portrait {
    width: min(78vw, 340px);
    max-height: 360px;
  }

  .kaede-portrait {
    width: min(78vw, 340px);
    max-height: 360px;
  }

  .sakura-game-score div {
    grid-template-columns: 1fr;
  }

  .natsumi-case-status div {
    grid-template-columns: 1fr;
  }

  .natsumi-item-row {
    grid-template-columns: 1fr;
  }

  .kaede-score div {
    grid-template-columns: 1fr;
  }

  .yukine-timer-list,
  .yukine-audio-controls {
    grid-template-columns: 1fr;
  }

  .fuyu-card {
    grid-template-columns: 1fr;
  }

  .fuyu-dish-image {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .fuyu-card-grid {
    grid-template-columns: 1fr;
  }

  .fuyu-recipe-empty {
    min-height: 220px;
  }

  .fuyu-portrait {
    width: min(78vw, 340px);
    max-height: 380px;
    transform: translateY(0);
  }

  .fuyu-outfit-button {
    position: relative;
    top: auto;
    right: auto;
    align-self: end;
    margin: 0 auto 10px;
  }

  .bar-reika {
    width: min(76vw, 340px);
    max-height: 380px;
    transform: translateY(0);
  }

  .fortune-yuuki {
    width: min(76vw, 340px);
    max-height: 380px;
    transform: translateY(0);
  }

  .stream-ami {
    width: min(78vw, 340px);
    max-height: 380px;
    transform: translateY(0);
  }

  .memory-board {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .memory-haruka-image {
    max-height: 300px;
  }

  .difficulty-select {
    grid-template-columns: 1fr;
  }

  .memory-score div {
    grid-template-columns: 1fr;
  }

  .bar-ui h1 {
    font-size: clamp(1.45rem, 7vw, 2.1rem);
    white-space: normal;
  }

  .cocktail-empty {
    min-height: 240px;
  }

  .fortune-logo {
    width: min(240px, 78%);
    margin-top: -22px;
  }

  .zodiac-buttons {
    grid-template-columns: 1fr;
  }

  .fortune-empty,
  .fortune-waiting {
    min-height: 240px;
  }

  .fortune-lucky div {
    grid-template-columns: 1fr;
  }

  .stream-logo {
    width: min(240px, 78%);
  }

  .stream-form div {
    grid-template-columns: 1fr;
  }

  .comment-item {
    grid-template-columns: 1fr;
  }

  .bgm-toggle {
    top: -24px;
    right: 10px;
    min-height: 48px;
  }

  .fortune-bgm-toggle {
    top: -24px;
    right: 10px;
    min-height: 48px;
  }

  .stream-bgm-toggle {
    top: -24px;
    right: 10px;
    min-height: 48px;
  }

  .memory-bgm-toggle {
    top: -24px;
    right: 10px;
    min-height: 48px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
