﻿@charset "UTF-8";

:root {
  --select-modal-height: min(calc(100dvh - 24px), 500px);
  --select-modal-width: min(calc(100vw - 24px), 360px);
  --select-part-content-width: 500px;
  --select-part-button-size: 40px;
  --select-modal-button-bottom-space: 30px;
  --miss-review-bg: #fff7fa;
  --miss-review-bg-hover: #fff0f5;
  --miss-review-border: #f2b8c8;
  --miss-review-text: #d95f86;
  --miss-review-shadow: rgba(224, 111, 145, 0.16);
  --miss-review-shadow-strong: rgba(224, 111, 145, 0.28);
}

* {
  margin: 0;
  padding: 0;
}

.html-all {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  background-color: rgb(241, 241, 241);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
}

.content-transition-target {
  opacity: 1;
  transition: opacity 150ms ease-in;
}

.content-transition-target.content-transition-exit {
  opacity: 0;
  transition-timing-function: ease-out;
}

.content-transition-target.content-transition-enter {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .content-transition-target {
    transition: none;
  }

  .title-usatan-stage,
  .title-usatan-stage::before,
  .title-usatan-stage::after,
  .title-usatan-character,
  .title-speech-bubble {
    animation: none;
  }
}

body {
  font-family: 'Sawarabi Gothic', sans-serif;
  cursor: default;
  color: rgb(25, 29, 81);
  -webkit-tap-highlight-color: transparent;
}

img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

p {
  font-size: 16px;
}

.spacer {
  width: 100%;
  flex: 0 0 auto;
}

.spacer-1 {
  height: 2px;
}

.spacer-2 {
  height: 4px;
}

.spacer-3 {
  height: 6px;
}

.spacer-4 {
  height: 8px;
}

.spacer-5 {
  height: 10px;
}

.spacer-7 {
  height: 14px;
}

.spacer-10 {
  height: 20px;
}

.spacer-13 {
  height: 26px;
}

.spacer-15 {
  height: 30px;
}

.spacer-16 {
  height: 32px;
}

.spacer-18 {
  height: 36px;
}

.spacer-20 {
  height: 40px;
}

.settings-save-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 8px 0;
  box-sizing: border-box;
}

.settings-panel {
  width: min(100%, 420px);
}

.settings-page-lead {
  margin: 12px auto 0;
  max-width: 32em;
  color: #5d7386;
  line-height: 1.7;
}

.settings-save-feedback-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 20px;
  padding: 10px 16px;
  border: 1px solid #a6dfbc;
  border-radius: 999px;
  background: rgba(239, 255, 245, 0.95);
  color: #2f8a58;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(74, 136, 98, 0.08);
}

.settings-section {
  width: 100%;
}

.settings-card {
  margin-top: 50px;
  padding: 18px 16px;
  border: 1px solid #d5e4ec;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.95));
  box-shadow: 0 10px 24px rgba(110, 149, 174, 0.1);
  text-align: left;
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.settings-card-eyebrow {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #7fa3bd;
}

.settings-card-title {
  margin: 4px 0 0;
  font-size: 20px;
  color: #2f4f67;
  line-height: 1.35;
}

.settings-current-value {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(81, 184, 240, 0.1);
  color: #408bb7;
  font-size: 12px;
  font-weight: bold;
}

.settings-section-title {
  font-weight: bold;
  color: #4d7190;
}

.settings-section-description {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #657b8f;
}

.settings-question-count-options {
  display: flex;
  justify-content: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.settings-question-count-button {
  cursor: url('/images/pointer.png'), auto;
  flex: 1 1 0;
  min-width: 110px;
  padding: 11px 14px;
  border: 1px solid #89c5e5;
  border-radius: 14px;
  background-color: white;
  color: #51b8f0;
  font-weight: bold;
  font-family: inherit;
  font-size: 14px;
  box-shadow: 1px 2px 2px #c4d8e2;
}

.settings-question-count-button.is-selected {
  background-color: #51b8f0;
  border-color: #51b8f0;
  color: white;
  box-shadow: 0 5px 12px rgba(81, 184, 240, 0.22);
}

.settings-name-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.settings-card .name-input {
  width: calc(11em + 24px);
  max-width: 100%;
  height: 46px;
  text-align: center;
}

.settings-primary-button {
  cursor: url('/images/pointer.png'), auto;
  width: fit-content;
  padding: 11px 16px;
  border: 1px solid #89c5e5;
  border-radius: 15px;
  background-color: white;
  color: #51b8f0;
  font-weight: bold;
  font-family: inherit;
  font-size: 15px;
  box-shadow: 1px 2px 2px #c4d8e2;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes paymentLoadingSpin {
  100% {
    transform: rotate(360deg);
  }
}

.center {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  max-height: 100dvh;
  width: min(100vw, 550px);
  height: min(100dvh, 700px);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  background-color: white;
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../images/title-rabit.png');
  background-repeat: repeat, repeat;
  background-size: auto, 200px;
  background-position: 0 0, 0 0;
  animation: moveBackground 100s linear infinite;
}

.center.center-study {
  background-color: #ceeeff;
  background-image: none;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: auto, auto, auto, auto;
  background-position: center, center, center, center;
  animation: none;
  overflow: hidden;
}

.center.center-study-result {
  background-color: #dff6ff;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.5)),
    url('../images/study-result-bg.png');
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center, center;
}

.center.center-study .base-middle {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.center.center-study .base-middle.study-result-middle {
  justify-content: flex-start;
}

.center.center-study .base-middle.study-still-reveal-middle {
  justify-content: center;
  overflow: hidden;
}

.base-middle {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  text-align: center;
  overflow-y: auto;
  padding: 15px 10px;
  box-sizing: border-box;
}

.base-middle.select-part-middle {
  justify-content: flex-start;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.no-scroll-middle {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  justify-content: center;
  border-radius: inherit;
  overflow: hidden;
  box-sizing: border-box;
}

.room-page-middle.room-page-fade-in {
  animation: roomPageFadeIn 260ms ease-in both;
}

.room-page-middle.content-transition-exit {
  animation: roomPageFadeOut 180ms ease-out both;
}

.chara-book-middle.content-transition-enter {
  animation: charaBookFadeIn 180ms ease-in both;
}

@keyframes roomPageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes roomPageFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes charaBookFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.button {
  cursor: url('/images/pointer.png'), auto;
  margin: 0 auto;
  width: fit-content;
  border: 1px solid #89c5e5; /* LightBlue */
  background-color: white;
  color: #51b8f0; /* SkyBlue */
  font-weight: bold;
  padding: 8px 25px;
  border-radius: 10px;
  box-shadow: 1px 2px 2px #c4d8e2;
}

#login-button {
  background-color: rgb(255, 255, 185);
}

.start-button {
  cursor: url('/images/pointer.png'), auto;
  position: relative;
  top: 10px;
  margin: 0 auto;
  width: fit-content;
  border: 2px solid rgb(134, 221, 215);
  background-color: white;
  color: rgb(46, 206, 196);
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 15px;
  box-shadow: 0px 0px 10px rgb(187, 231, 230);
}

.button,
.start-button,
.select-button,
.checked-button,
.both-review-button,
.select-part-button,
.closing-button,
.back-button,
.menu-button,
.menu-buttons,
.menu-close-button,
.book-chara-button,
.room-edit-button,
.room-item-save,
.room-item-delete,
.room-item-close-button,
.room-item-filter-button,
.room-item-button,
.room-background-button,
.payment-button,
.title-login-warning-ok,
.other-menu-button {
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

@media (hover: hover) {
  .button:hover,
  .select-button:not(.select-button-disabled):hover,
  .checked-button:hover,
  .both-review-button:hover,
  .select-part-button:not(.is-locked):hover,
  .back-button:hover,
  .menu-button:hover,
  .menu-buttons:hover,
  .menu-close-button:hover,
  .room-edit-button:hover,
  .room-item-save:hover,
  .room-item-delete:hover,
  .room-item-close-button:hover,
  .room-item-filter-button:hover,
  .room-item-button:hover,
  .room-background-button:hover,
  .payment-button:hover,
  .title-login-warning-ok:hover,
  .other-menu-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      background-color: #F0F8FF; /* AliceBlue */
  }

  .start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
    background-color: rgb(223, 255, 253);
  }
}

.flex-column {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.flex-column p {
  cursor: url('/images/pointer.png'), auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #89c5e5;
  background-color: white;
  color: #51b8f0;
  font-weight: bold;
  min-width: 86px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  box-shadow: 1px 2px 2px #c4d8e2;
  box-sizing: border-box;
  line-height: 1;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  will-change: transform;
  touch-action: manipulation;
  user-select: none;
}

@media (hover: hover) {
  .flex-column p:hover {
      transform: translate3d(0, -2px, 0);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      background-color: #F0F8FF;
  }
}

.flex-column p:active,
.flex-column p.title-action-pending {
  transform: translate3d(0, 1px, 0) scale(0.98);
  box-shadow: 0 1px 1px #c4d8e2;
  background-color: #f0f8ff;
  transition-duration: 0.04s;
}

.flex-column p.title-action-pending {
  pointer-events: none;
}

.usatan-big-img {
  width: 150px;
}

.title-usatan-scene {
  position: relative;
  width: min(100%, 430px);
  min-height: 520px;
  display: grid;
  grid-template-rows: 220px 180px 120px;
  align-items: center;
  justify-content: center;
  padding: 4px 10px 8px;
  box-sizing: border-box;
}

.title-usatan-stage {
  position: relative;
  grid-row: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  justify-self: end;
  align-self: start;
  min-height: 178px;
  width: 190px;
  margin-top: -18px;
  margin-right: -22px;
}

.title-usatan-stable-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 15px 10px;
  pointer-events: none;
}

.title-usatan-stage::before,
.title-usatan-stage::after {
  content: none;
}

.title-usatan-stage::after {
  content: none;
}

.title-usatan-character {
  width: 150px;
  transform-origin: 50% 86%;
}

.title-usatan-character.title-usatan-enter {
  opacity: 0;
  transform: scale(0.8, 1.4) translate(0%, -100%);
  animation:
    titleUsatanPoyonIn 1100ms linear 120ms both,
    titleUsatanTalk 980ms ease-in-out 2020ms 2;
}

.name-input {
  width: 160px;
  height: 40px;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 2px solid #8ccbed;
  border-radius: 10px;
  background-color: #fff;
  color: #51b8f0;
  box-shadow: 0 0 5px rgba(135, 206, 235, 0.5);
  font-size: 18px;
  text-align: center;
}

.name-input:focus {
  outline: none;
  border: 3px solid #8ccbed;
  box-shadow: 0 0 5px rgba(135, 206, 235, 0.5);
}

.name-input:-webkit-autofill,
.name-input:-webkit-autofill:hover, 
.name-input:-webkit-autofill:focus, 
.name-input:-webkit-autofill:active {
    -webkit-text-fill-color: #51b8f0 !important;
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    transition: background-color 5000s ease-in-out 0s;
}

.title-talk-panel {
  grid-row: 1;
  justify-self: start;
  align-self: start;
  min-height: 220px;
  width: min(100%, 350px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

.title-name-controls {
  grid-row: 3;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 551px) {
  .title-name-controls {
    padding-top: 18px;
    box-sizing: border-box;
  }
}

.title-name-controls.title-name-controls-waiting {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

.title-settings {
  height: 362px;
}

.select-button {
  cursor: url('/images/pointer.png'), auto;
  margin: 0 auto;
  width: 180px;
  border: 1px solid #89c5e5;
  border-radius: 15px;
  padding: 10px 5px;
  background-color: #fff;
  color: #51b8f0;
  font-weight: bold;
  box-shadow: 1px 2px 2px #c4d8e2;
}

.select-button-with-description {
  display: flex;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.2;
}

.select-button-label {
  display: block;
}

.select-button-description {
  display: block;
  color: #6a92a8;
  font-size: 12px;
  font-weight: 700;
}

.select-button-disabled {
  cursor: not-allowed;
  border-color: #c8ced3;
  background-color: #eef0f2;
  color: #8f979e;
  box-shadow: 1px 2px 2px rgba(143, 151, 158, 0.24);
  filter: grayscale(0.16);
}

.checked-button,
.both-review-button {
  cursor: url('/images/pointer.png'), auto;
  margin: 0 auto;
  border-radius: 15px;
  padding: 8px 15px;
  font-weight: bold;
  box-shadow: 1px 2px 2px #c4d8e2;
}

@media (hover: hover) {
  .checked-button:hover, .both-review-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .login-wrapper:has(#login-button:hover) .login-clown {
    transform: translateY(-2px);
  }
}

.checked-button {
  border: 1px solid rgb(121, 222, 233);
  background-color: rgb(228, 252, 255);
  color: rgb(21, 169, 184);
}

.both-review-button {
  border: 1px solid rgb(233, 221, 88);
  background-color: rgb(255, 252, 225);
  color: rgb(190, 175, 21);
}

.review-shortcut-panel {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 0 12px 5px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.74);
  box-sizing: border-box;
}

.review-shortcut-buttons {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, 160px);
  justify-content: center;
  gap: 8px;
}

.review-shortcut-button {
  margin: 0;
  width: 160px;
  justify-self: center;
  border-radius: 12px;
  padding: 8px 10px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
}

.review-shortcut-button.is-locked {
  cursor: not-allowed;
  opacity: 0.62;
  filter: grayscale(0.22);
  pointer-events: none;
}

.review-shortcut-label {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  line-height: 1.15;
  overflow-wrap: normal;
}

.review-shortcut-count {
  flex: 0 0 auto;
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.82);
  box-sizing: border-box;
  font-size: 12px;
}

.review-shortcut-lock {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
}

.review-miss-button {
  border-color: #f2b8c8;
  background-color: #fff7fa;
  color: #e06f91;
}

.review-checked-button {
  border-color: rgb(121, 222, 233);
  background-color: rgb(228, 252, 255);
  color: rgb(21, 169, 184);
}

@media (hover: hover) {
  .review-miss-button:hover {
    background-color: #fff0f5;
  }

  .review-checked-button:hover {
    background-color: #f0fdff;
  }
}

.select-path-button-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.usatan-balloon {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 13px;
}

#usatan-small-img {
  width: 35px;
}

.usatan-balloon.usatan-balloon-small {
  gap: 9px;
}

.usatan-balloon.usatan-balloon-small #usatan-small-img {
  width: 31px;
}

.usatan-balloon.usatan-balloon-small p {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 16px;
}

.usatan-balloon.usatan-balloon-small p::before {
  left: -7px;
  border-width: 5px;
}

.usatan-balloon.usatan-balloon-small p::after {
  left: -11px;
  border-width: 6px;
}

.login-clown {
  cursor: url('/images/pointer.png'), auto;
  position: absolute;
  width: 21px;
  top: -10px;
  left: 4px;
  z-index: 1000;
  transition: transform 0.2s;
}

.title-preload-image {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.usatan-balloon p {
  position: relative;
  font-size: 14px;
  padding: 6px 12px;
  border: 2px solid #e1e5e7;
  border-radius: 20px;
  background-color: rgb(255, 255, 255);
  text-align: center;
}

.usatan-balloon p::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right-color: rgb(255, 255, 255);
  z-index: 1;
}

.usatan-balloon p::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-right-color: #e1e5e7;
  z-index: 0;
}

.info-usatan-talk {
  position: relative;
  z-index: 0;
  background-color: white;
  border: 2px solid #e1e5e7;
  border-radius: 10px;
  padding: 10px;
  margin-top: 30px; /* 矢印のスペースを確保するためのマージン */
  margin-left: auto;
  margin-right: auto;
  max-width: 350px;
  width: fit-content;
  box-sizing: border-box;
  text-align: center;
}

.title-speech-bubble {
  width: clamp(252px, 80vw, 292px);
  aspect-ratio: 432 / 298;
  margin-top: 0;
  padding: clamp(42px, 12vw, 50px) clamp(22px, 7vw, 34px) clamp(50px, 15vw, 60px);
  border: 0;
  border-radius: 0;
  background:
    url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MzIgMjk4Ij48ZGVmcz48ZmlsdGVyIGlkPSJzaGFkb3ciIHg9Ii04JSIgeT0iLTglIiB3aWR0aD0iMTE2JSIgaGVpZ2h0PSIxMTglIj48ZmVEcm9wU2hhZG93IGR4PSIwIiBkeT0iOCIgc3RkRGV2aWF0aW9uPSI3IiBmbG9vZC1jb2xvcj0iIzdmOWFhZSIgZmxvb2Qtb3BhY2l0eT0iMC4xMCIvPjwvZmlsdGVyPjxsaW5lYXJHcmFkaWVudCBpZD0iZmlsbCIgeDE9IjIxNiIgeTE9IjEwIiB4Mj0iMjE2IiB5Mj0iMjg2IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZThmN2ZkIi8+PHN0b3Agb2Zmc2V0PSIwLjYyIiBzdG9wLWNvbG9yPSIjZDllZmY5Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjY2ZlOWY2Ii8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHBhdGggZD0iTTg2IDE5N0M5MC41IDIyNC45IDEwNi45IDI1NiAxMzAuOCAyNzYuN0M5NC43IDI1OS44IDY5LjQgMjMxLjkgNjUuNyAyMDAuNkM3My40IDE5Ny40IDgwLjIgMTk3LjEgODYgMTk3WiIgZmlsbD0idXJsKCNmaWxsKSIgZmlsdGVyPSJ1cmwoI3NoYWRvdykiLz48cGF0aCBkPSJNODYgMjIxQzU1IDIyMSAzMiAyMDAgMzYgMTczQzEwIDE2NSAxIDEzNiAyNCAxMThDOCA5MiAyOCA2MCA2MiA2M0M3NCAzMSAxMTMgMjMgMTQwIDQ0QzE1NyAxMSAyMDQtNCAyMzQgMjdDMjYzIDUgMzA2IDE2IDMyMCA0OEMzNTMgNDIgMzgyIDYyIDM4MCA5NkM0MTEgMTAxIDQyOCAxMzEgNDA4IDE1NEM0MjggMTc5IDQwMyAyMTIgMzY5IDIwOEMzNTggMjQzIDMxOSAyNTMgMjkzIDIzMUMyNzAgMjY1IDIyMCAyNjggMTk1IDIzNUMxNjcgMjY0IDEyNCAyNTggMTA3IDIyN0MxMDEgMjIzIDk0IDIyMSA4NiAyMjFaIiBmaWxsPSJ1cmwoI2ZpbGwpIiBmaWx0ZXI9InVybCgjc2hhZG93KSIvPjxwYXRoIGQ9Ik04NiAyMjFDNTUgMjIxIDMyIDIwMCAzNiAxNzNDMTAgMTY1IDEgMTM2IDI0IDExOEM4IDkyIDI4IDYwIDYyIDYzQzc0IDMxIDExMyAyMyAxNDAgNDRDMTU3IDExIDIwNC00IDIzNCAyN0MyNjMgNSAzMDYgMTYgMzIwIDQ4QzM1MyA0MiAzODIgNjIgMzgwIDk2QzQxMSAxMDEgNDI4IDEzMSA0MDggMTU0QzQyOCAxNzkgNDAzIDIxMiAzNjkgMjA4QzM1OCAyNDMgMzE5IDI1MyAyOTMgMjMxQzI3MCAyNjUgMjIwIDI2OCAxOTUgMjM1QzE2NyAyNjQgMTI0IDI1OCAxMDcgMjI3QzEwMSAyMjMgOTQgMjIxIDg2IDIyMVoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1kYXNoYXJyYXk9IjEgMTMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxNiAxNDkpIHNjYWxlKDAuOTEgMC44NikgdHJhbnNsYXRlKC0yMTYgLTE0OSkiIG9wYWNpdHk9IjAuOTUiLz48L3N2Zz4=') center / 100% 100% no-repeat;
  color: #4f6174;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1.55;
  transform-origin: 50% 100%;
  animation: titleBubblePop 420ms cubic-bezier(0.2, 1.18, 0.28, 1) both;
}

.title-speech-bubble.title-speech-bubble-waiting {
  opacity: 0;
  transform: translateY(18px) scaleY(0.15) scaleX(0.82);
  animation: none;
}

.title-speech-bubble::after {
  content: none;
}

.info-usatan-talk::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 14px;
  height: 14px;
  background-color: white;
  border: 2px solid #e1e5e7;
  border-right: 0;
  border-bottom: 0;
  transform: translateX(-50%) rotate(45deg);
  box-sizing: border-box;
  z-index: -1;
}

.title-speech-bubble::before {
  content: none;
}

.info-usatan-talk::after {
  content: none;
}

.select-part-page {
  width: 100%;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  overflow: hidden;
}

.select-part-review-page {
  justify-content: center;
}

.select-part-review-page .select-part-top-content-review {
  padding-top: 0;
}

.select-part-review-page .select-part-button-scroll {
  flex: 0 1 auto;
  max-height: min(42dvh, 230px);
  background-color: transparent;
}

.select-part-top {
  width: min(100%, var(--select-part-content-width));
  align-self: center;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.select-part-top-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.select-part-top-content-normal {
  padding-top: 15px;
  gap: 15px;
}

.select-part-top-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 12px 0;
  box-sizing: border-box;
}

.select-part-top-heading .usatan-balloon {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  transform: translateX(var(--select-part-balloon-offset, 0px));
}

.select-part-top-heading .usatan-balloon p {
  flex: 0 1 auto;
  width: fit-content;
  max-width: var(--select-part-balloon-text-max-width, calc(100% - 48px));
  min-width: 0;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.usatan-guide-layer {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: transparent;
  cursor: url('/images/pointer.png'), auto;
  opacity: 1;
  transition: opacity 180ms ease-out;
}

.usatan-guide-layer.usatan-guide-layer-closing {
  opacity: 0;
  pointer-events: none;
}

.usatan-balloon.usatan-guide-balloon {
  width: auto;
  max-width: min(92vw, 460px);
  margin: 0;
  padding: 0;
  transform: none;
  filter: drop-shadow(0 8px 16px rgba(25, 29, 81, 0.18));
}

.usatan-balloon.usatan-guide-balloon #usatan-small-img {
  width: 48px;
  flex: 0 0 auto;
}

.usatan-guide-bubble {
  position: relative;
  max-width: min(72vw, 360px);
  padding: 9px 12px 11px;
  border: 3px solid #e1e5e7;
  border-radius: 10px;
  background-color: white;
  box-sizing: border-box;
  text-align: center;
}

.usatan-guide-bubble::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right-color: white;
  z-index: 1;
}

.usatan-guide-bubble::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-right-color: #e1e5e7;
  z-index: 0;
}

.usatan-balloon.usatan-guide-balloon .usatan-guide-bubble p {
  position: static;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
  text-align: left;
}

.usatan-balloon.usatan-guide-balloon .usatan-guide-bubble p::before,
.usatan-balloon.usatan-guide-balloon .usatan-guide-bubble p::after {
  content: none;
}

.usatan-guide-ok-button {
  min-width: 74px;
  margin-top: 9px;
  padding: 6px 16px;
  border: 1px solid #89c5e5;
  border-radius: 999px;
  background-color: #51b8f0;
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  cursor: url('/images/pointer.png'), auto;
  box-shadow: 1px 2px 2px #c4d8e2;
}

.usatan-guide-ok-button:active {
  transform: translateY(1px);
}

.select-part-level-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 4px 10px;
  border-radius: 30px;
  background-color: #51b8f0;
  color: white;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(137, 197, 229, 0.18);
  cursor: url('/images/pointer.png'), auto;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  z-index: 1;
}

.select-part-level-badge.is-open {
  background-color: #3aa8e5;
}

.select-part-level-badge-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.select-part-level-badge-mark {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  opacity: 0.85;
  transform: translateY(1px);
  transition: transform 0.2s ease;
}

.select-part-level-badge.is-open .select-part-level-badge-mark {
  transform: rotate(180deg);
}

@media (hover: hover) {
  .select-part-level-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(81, 184, 240, 0.2);
  }
}

.select-level-picker-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
}

.select-level-picker-panel {
  position: absolute;
  top: 52px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: calc(100% - 40px);
  pointer-events: none;
}

.select-level-picker-list {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-height: min(46dvh, 252px);
  overflow-y: auto;
  pointer-events: auto;
}

.select-level-picker-item {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  animation: selectLevelPickerReveal 0.08s cubic-bezier(0.2, 0.85, 0.28, 1) both;
  animation-delay: calc(var(--select-level-picker-order, 0) * 0.02s);
}

.select-level-picker-list.is-closing {
  pointer-events: none;
}

.select-level-picker-list.is-closing .select-level-picker-item {
  animation-name: selectLevelPickerHide;
  animation-duration: 0.04s;
  animation-delay: calc(var(--select-level-picker-close-order, 0) * 0.015s);
}

.select-level-picker-option {
  cursor: url('/images/pointer.png'), auto;
  margin: 0;
  max-width: min(100%, 260px);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 30px;
  background-color: #51b8f0;
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  box-shadow: 0 1px 3px rgba(137, 197, 229, 0.18);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  transition: background-color 0.2s;
}

.select-level-picker-course-option {
  background-color: #f5c763;
  box-shadow: 0 1px 3px rgba(244, 157, 99, 0.22);
}

@keyframes selectLevelPickerReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    margin-top: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 56px;
    margin-top: var(--select-level-picker-gap, 6px);
  }
}

@keyframes selectLevelPickerHide {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 56px;
    margin-top: var(--select-level-picker-gap, 6px);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    margin-top: 0;
  }
}

@media (hover: hover) {
  .select-level-picker-option:hover {
    background-color: #3aa8e5;
  }

  .select-level-picker-course-option:hover {
    background-color: #f3af1c;
  }
}

@media (max-width: 640px) {
  .select-level-picker-panel {
    top: 52px;
    right: 20px;
    width: calc(100% - 40px);
  }

  .select-level-picker-option {
    max-width: min(100%, 230px);
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .select-level-picker-item {
    margin-top: var(--select-level-picker-gap, 6px);
    max-height: none;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .select-level-picker-option {
    opacity: 1;
  }
}

.select-part-correct-stats {
  width: min(100%, 380px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.select-part-correct-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: end;
  padding: 5px 6px;
  border-radius: 16px;
  background-color: rgba(243, 251, 255);
  box-shadow: 0 1px 4px rgba(137, 197, 229, 0.14);
  box-sizing: border-box;
}

.select-part-correct-label {
  grid-column: 1 / -1;
  color: rgba(25, 29, 81, 0.58);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.select-part-correct-value {
  color: #51b8f0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.select-part-correct-unit {
  color: rgba(25, 29, 81, 0.7);
  font-size: 12px;
  font-weight: bold;
  line-height: 1.2;
}

@media (max-height: 620px) {
  .select-part-top-content-normal {
    padding-top: 8px;
    gap: 6px;
  }

  .select-part-top-heading {
    padding-top: 28px;
    gap: 8px;
  }

  .select-part-correct-stats {
    gap: 6px;
  }

  .select-part-correct-stat {
    padding: 8px 10px;
  }

  .review-shortcut-panel {
    padding: 8px 10px;
  }
}

.select-part-top-content-review {
  gap: 18px;
  padding: 30px 12px 14px;
}

.select-part-review-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-part-empty-state {
  width: min(100%, var(--select-part-content-width));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
}

.select-part-empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.select-part-button-scroll {
  width: min(100%, var(--select-part-content-width));
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 0;
  background-color: rgba(137, 197, 229, 0.35);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.select-part-review-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 300px);
  min-height: 44px;
  padding: 8px 18px 10px;
  border: none;
  border-radius: 999px;
  background-color: white;
  color: #2f4f67;
  box-shadow: 0 6px 14px rgba(92, 140, 168, 0.12);
  box-sizing: border-box;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.select-part-review-heading.is-miss .select-part-review-title {
  background-color: var(--miss-review-bg);
  color: var(--miss-review-text);
  box-shadow: 0 6px 14px var(--miss-review-shadow);
}

.select-part-review-heading.is-checked .select-part-review-title {
  background-color: rgb(240, 253, 255);
  color: rgb(21, 169, 184);
  box-shadow: 0 6px 14px rgba(21, 169, 184, 0.11);
}

.select-part-review-heading.is-both .select-part-review-title {
  background-color: rgb(255, 252, 225);
  color: rgb(170, 154, 16);
  box-shadow: 0 6px 14px rgba(190, 175, 21, 0.12);
}

.select-part-button-content {
  width: 100%;
  max-width: var(--select-part-content-width);
  margin: 0 auto;
  padding: 6px 10px 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  box-sizing: border-box;
}

.select-part-button {
  cursor: url('/images/pointer.png'), auto;
  position: relative;
  padding: 15px;
  border: 1px solid #c4d8e2;
  border-radius: 15px;
  background-color: white;
  color: #51b8f0;
  font-weight: bold;
  font-size: 20px;
  box-shadow: 1px 2px 2px #c4d8e2;
  width: var(--select-part-button-size);
  height: var(--select-part-button-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-part-button-label {
  line-height: 1;
}

.select-part-button.is-latest-unlocked {
  border-color: #51b8f0;
  box-shadow: 0 0 0 1px #51b8f0, 1px 1px 1px #51b8f0;
}

.select-part-button.is-locked {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.35);
  pointer-events: none;
}

.select-part-button-lock {
  position: absolute;
  top: 6px;
  right: 7px;
  font-size: 10px;
  line-height: 1;
  opacity: 0.9;
}

.select-part-button-current-mark {
  position: absolute;
  top: 6px;
  left: 7px;
  font-size: 11px;
  line-height: 1;
  color: #efad3b;
}

.select-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: var(--select-modal-width);
  height: var(--select-modal-height);
  border: 1px solid #bfd5e1;
  border-radius: 20px;
  box-shadow: 0 5px 10px #c4d8e2;
  box-sizing: border-box;
  overflow: hidden;
}

.select-start {
  z-index: 1000;
  background-color: white;
  animation: selectStartFadeIn 180ms ease-in both;
}

.select-start.select-start-closing {
  pointer-events: none;
  animation: selectStartFadeOut 180ms ease-out forwards;
}

.select-start img {
  cursor: url('/images/pointer.png'), auto;
}

.select-start-relative {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  padding: 28px 25px 24px;
  background: #fdfdfd;
  box-sizing: border-box;
  overflow: hidden;
}

.select-start-relative.content-transition-target,
.select-chara-inner.content-transition-target {
  will-change: opacity, transform;
}

.select-start-relative-word-list {
  grid-template-rows: minmax(0, 1fr);
  padding: 34px 18px 18px;
}

.select-start-content {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.select-start-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 7px;
}

.part-label {
  font-size: 12px;
  color: #89c5e5;
  font-weight: bold;
  letter-spacing: 2px;
}

.part-number {
  font-size: 30px;
  font-weight: 900;
  color: #51b8f0;
  line-height: 1.2;
}

.study-info {
  text-align: center;
  margin-bottom: 16px;
}

.study-info p {
  display: inline-block;
  background: #eef9ff;
  color: #51b8f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.character-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.section-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  background-color: white;
  padding: 3px 6px;
  border-radius: 5px;
}

.character-preview {
  position: relative;
  width: 104px;
  height: 104px;
  background: white;
  border: 1px solid rgb(236, 236, 236);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  cursor: url('/images/pointer.png'), auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 14px;
}

@media (hover: hover) {
  .character-preview:hover {
    transform: scale(1.05);
  }
}

@media (hover: none), (pointer: coarse) {
  .character-preview {
    transition: none;
  }
}

.character-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.change-overlay {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #51b8f0;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.chara-rate-container {
  width: 100%;
  max-width: 230px;
  padding: 0 10px;
}

.select-chara-rate-progress {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 5px;
  gap: 4px;
}

.chara-rate-progress-hearts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1;
}

.chara-rate-progress-heart {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d7dfe6;
  font-size: 20px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9));
  transform: translateZ(0);
}

.chara-rate-progress-heart svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.chara-rate-progress-heart.is-filled {
  color: #f06f9b;
  text-shadow: 0 2px 6px rgba(240, 111, 155, 0.22);
}

.next-rate-up-label {
  position: static;
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(240, 111, 155, 0.38);
  border-radius: 999px;
  background: #fff7fb;
  color: #e75f8e;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(240, 111, 155, 0.08);
  white-space: nowrap;
}

.chara-rate-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.rate-value {
  color: #51b8f0;
  font-weight: bold;
}

.chara-rate-bar {
  width: 100%;
  height: 8px;
  background: #edf2f7;
  border-radius: 4px;
  overflow: hidden;
}

.chara-rate-fill {
  height: 100%;
  background: linear-gradient(90deg, #89c5e5, #51b8f0);
  border-radius: 4px;
  transition: width 1s ease-out;
}

.action-section {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.select-start-actions {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
}

.select-start-word-list-button,
.select-start-word-list-close-button {
  cursor: url('/images/pointer.png'), auto;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.select-start-word-list-button {
  min-width: 108px;
  padding: 7px 14px;
  border: 1px solid #89c5e5;
  border-radius: 999px;
  background-color: #f5fbff;
  color: #3695c9;
  font-size: 13px;
  box-shadow: 0 2px 7px rgba(81, 184, 240, 0.18);
}

.select-start-word-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.select-start-word-list-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 34px 0 2px;
}

.select-start-word-list-eyebrow {
  margin: 0 0 2px;
  color: #89c5e5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}

.select-start-word-list-title {
  margin: 0;
  color: #2f4f67;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.select-start-word-list-count {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background-color: #eef9ff;
  color: #3695c9;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.select-start-word-list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 4px 2px 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.select-start-word-list-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid #d7edf8;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(137, 197, 229, 0.13);
  box-sizing: border-box;
}

.select-start-word-list-index {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #eef9ff;
  color: #51b8f0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.select-start-word-list-text {
  min-width: 0;
}

.select-start-word-list-word {
  margin: 0 0 3px;
  color: #2f4f67;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.select-start-word-list-meaning {
  margin: 0;
  color: #65717a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.select-start-word-list-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.select-start-word-list-close-button {
  min-width: 88px;
  padding: 8px 16px;
  border: 1px solid #d7edf8;
  border-radius: 999px;
  background-color: white;
  color: #3695c9;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(137, 197, 229, 0.15);
}

@media (max-width: 380px), (max-height: 560px) {
  .select-start-relative-word-list {
    padding: 32px 12px 14px;
  }

  .select-start-word-list {
    gap: 9px;
  }

  .select-start-word-list-header {
    padding-right: 34px;
  }

  .select-start-word-list-title {
    font-size: 19px;
  }

  .select-start-word-list-item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .select-start-word-list-index {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .select-start-word-list-word {
    font-size: 15px;
  }

  .select-start-word-list-meaning {
    font-size: 12px;
  }
}

.primary-button {
  width: 100% !important;
  max-width: 130px;
  text-align: center;
  padding: 12px 0 !important;
  font-size: 18px !important;
  background: #51b8f0 !important;
  color: white !important;
  border: none !important;
  border-radius: 15px !important;
  box-shadow: 0 4px 12px rgba(81, 184, 240, 0.3) !important;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(81, 184, 240, 0.4) !important;
}

@media (hover: hover) {
  .select-start-word-list-button:hover,
  .select-start-word-list-close-button:hover {
    transform: translateY(-2px);
    background-color: #eef9ff;
    box-shadow: 0 5px 12px rgba(81, 184, 240, 0.22);
  }
}

.select-chara {
  z-index: 1001;
  background: #fdfdfd;
}

.select-chara-inner {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  padding: 52px 25px var(--select-modal-button-bottom-space);
  box-sizing: border-box;
  overflow: hidden;
}

.select-chara-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.select-chara-content {
  width: 100%;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 8px 8px 0 0;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.select-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
}

@keyframes selectStartFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes selectStartFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.select-chara-header {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 25px;
}

.select-chara-header h3 {
  color: #51b8f0;
  margin-bottom: 5px;
}

.select-chara-header .subtitle {
  font-size: 13px;
  color: #888;
}

.chara-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
  align-items: stretch;
}

.chara-select-card {
  position: relative;
  background: #f8fbff;
  width: 100%;
  max-width: none;
  border: 2px solid transparent;
  border-radius: 15px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: url('/images/pointer.png'), auto;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-width: 0;
  height: 132px;
  justify-content: flex-start;
}

.chara-select-card:hover {
  transform: translateY(-3px);
  background: #f0f8ff;
}

.chara-select-card.selected {
  background: #eef9ff;
  border-color: #51b8f0;
  box-shadow: 0 4px 12px rgba(81, 184, 240, 0.15);
}

.chara-select-img-wrapper {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.chara-select-img-wrapper img {
  width: auto;
  max-width: min(70px, 100%);
  height: 70px;
  object-fit: contain;
}

.chara-select-name {
  font-size: 13px;
  font-weight: bold;
  color: #555;
  display: flex;
  align-items: center;
  text-align: center;
  line-height: 1.25;
  min-height: 2.5em;
  word-break: keep-all;
}

.selected-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #51b8f0;
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.closing-button {
  cursor: url('/images/pointer.png'), auto;
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background-color: white;
  border: 1px solid #eef2f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #89c5e5;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  line-height: 1;
  z-index: 10;
}

@media (max-width: 220px), (max-height: 260px) {
  .select-chara {
    width: calc(100vw - 8px);
    height: calc(100dvh - 8px);
  }

  .select-chara-inner {
    padding: 44px 10px 12px;
  }

  .select-chara-header {
    padding: 0 22px;
    margin-bottom: 12px;
  }

  .select-chara-header h3 {
    font-size: 16px;
    margin-bottom: 3px;
  }

  .select-chara-header .subtitle {
    font-size: 11px;
    line-height: 1.3;
  }

  .chara-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .chara-select-card {
    width: min(100%, 110px);
    max-width: none;
    padding: 10px 8px;
    height: 126px;
  }

  .closing-button {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .action-section {
    padding-top: 6px;
  }
}

@media (hover: hover) {
  .closing-button:hover {
    transform: rotate(90deg) scale(1.1) !important;
    background-color: #f0f8ff !important;
    color: #51b8f0;
    box-shadow: 0 4px 12px rgba(81, 184, 240, 0.2) !important;
  }
}


.back-button {
  cursor: url('/images/pointer.png'), auto;
  position: absolute;
  top: 68px; /* Below menu button */
  left: 20px; /* Move to left */
  right: auto; /* Reset right */
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  width: 46px;
  height: 38px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #89c5e5;
  background-color: white;
  color: #51b8f0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px; /* Larger for icon */
  line-height: 1;
  box-shadow: 1px 2px 2px #c4d8e2;
}

.study-back-button {
  top: 20px;
}

.back-button-study-mark {
  font-size: 22px;
  font-family: 'Sawarabi Gothic', sans-serif;
  color: #00df8d;
}

.back-button.back-button-study-mark {
  border-color: #00df8d;
  color: #00df8d;
  box-shadow: 1px 2px 2px rgba(0, 240, 152, 0.22);
}

@media (hover: hover) {
  .back-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      background-color: #F0F8FF;
  }

  .back-button.back-button-study-mark:hover {
      box-shadow: 0 4px 8px rgba(0, 240, 152, 0.18);
      background-color: #f2fff8;
  }
}

.menu-button {
  cursor: url('/images/pointer.png'), auto;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 8px 12px;
  width: 46px;
  box-sizing: border-box;
  border: 1px solid #89c5e5; /* Cute blue border */
  background-color: white;
  color: #51b8f0; /* SkyBlue */
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px; /* Larger for icon */
  line-height: 1; /* Adjust vertical alignment */
  box-shadow: 1px 2px 2px #c4d8e2;
}

.menu-button-disabled {
  pointer-events: none;
}

.stable-chrome-enter {
  animation: stableChromeFadeIn 180ms ease-in both;
}

.stable-chrome-exit {
  pointer-events: none;
  animation: stableChromeFadeOut 180ms ease-out forwards;
}

@media (hover: hover) {
  .menu-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      background-color: #F0F8FF;
  }
}

@keyframes stableChromeFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes stableChromeFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.menu-layer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, 550px);
  height: min(100dvh, 700px);
  overflow: hidden;
  pointer-events: auto;
  z-index: 300;
}

@keyframes menuSlideIn {
  from {
    transform: translateX(calc(-100% - 18px));
    opacity: 0.18;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes menuSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(calc(-100% - 18px));
    opacity: 0.12;
  }
}

.menu {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6dvh, 12px);
  background-color: rgb(193, 230, 255);
  padding: 60px 16px 16px;
  width: 180px;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: auto;
  will-change: transform, opacity;
  animation: menuSlideIn 0.24s cubic-bezier(0.22, 0.9, 0.28, 1);
}

.menu.is-closing {
  pointer-events: none;
  animation: menuSlideOut 0.24s cubic-bezier(0.35, 0, 0.2, 1) forwards;
}

.menu-buttons {
  cursor: url('/images/pointer.png'), auto;
  position: relative;
  padding: 8px 7px 7px;
  text-align: center;
  background-color: white;
  border-radius: 10px;
  line-height: 1.2;
  box-sizing: border-box;
}

.menu-buttons.has-menu-mark {
  overflow: visible;
}

.menu-button-label {
  display: inline;
  min-width: 0;
  overflow-wrap: anywhere;
}

.menu-button-mark {
  position: absolute;
  top: -10px;
  left: 0px;
  z-index: 1;
  width: 27px;
  height: 27px;
  overflow: visible;
  opacity: 0.8;
  color: var(--menu-mark-color, #51b8f0);
  pointer-events: none;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.92))
    drop-shadow(0 2px 4px rgba(70, 124, 158, 0.16));
}

.menu-button-mark path,
.menu-button-mark rect,
.menu-button-mark circle {
  vector-effect: non-scaling-stroke;
}

.menu-button-mark path,
.menu-button-mark rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-button-mark circle {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
}

.menu-button-mark .menu-mark-hole {
  fill: var(--menu-mark-fill, rgba(255, 255, 255, 0.88));
  stroke: currentColor;
  stroke-width: 2.4;
}

.menu-mark-settings .menu-mark-hole {
  fill: none;
}

.menu-button-mark .menu-mark-fill {
  fill: var(--menu-mark-fill, rgba(255, 255, 255, 0.88));
}

.menu-mark-book {
  --menu-mark-color: #3695c9;
}

.menu-mark-trophy {
  --menu-mark-color: #3695c9;
}

.menu-mark-settings {
  --menu-mark-color: #3695c9;
}

.menu-mark-payment {
  --menu-mark-color: #3695c9;
}

.menu-mark-login {
  --menu-mark-color: #3695c9;
}

.menu-mark-logout {
  --menu-mark-color: #3695c9;
}

.menu-login-button,
.menu-logout-button {
  border: 1px solid currentColor;
  font-weight: bold;
  box-shadow: 1px 2px 3px rgba(54, 149, 201, 0.16);
}

.menu-login-button {
  background-color: #f3fffb;
  color: #1f9f91;
}

.menu-logout-button {
  background-color: #F0F8FF;
  color: #3695c9;
  box-shadow: 1px 2px 3px rgba(211, 95, 126, 0.18);
}

.menu-home-button {
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #3695c9;
  line-height: 1;
  margin: 0 auto;
}

.menu-home-icon {
  display: block;
  width: 45px;
  height: auto;
  overflow: visible;
}

.menu-home-icon path {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-home-icon text {
  fill: white;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2px;
  text-anchor: middle;
  dominant-baseline: middle;
}

@media (hover: hover) {
  .menu-home-button:hover {
    background-color: transparent !important;
  }
}

.menu-close-button {
  cursor: url('/images/pointer.png'), auto;
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background-color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #51b8f0;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  line-height: 1;
  z-index: 310;
}

@media (hover: hover) {
  .menu-close-button:hover {
    transform: rotate(-90deg) scale(1.1) !important;
    background-color: #fff !important;
    color: #f2b8c8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }
}


.menu-footer-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-other-link {
  cursor: url('/images/pointer.png'), auto;
  align-self: center;
  margin: 0;
  padding: 5px 10px;
  text-align: left;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #3695c9;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}

.menu-other-link::before {
  content: '？';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #3695c9;
  color: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

@media (hover: hover) {
  .menu-other-link:hover {
    background-color: transparent !important;
  }
}

.study-meaning-buttons {
  position: relative;
  z-index: 250;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 7px;
}

.study-meaning-buttons .button {
  position: relative;
  z-index: 1;
  width: auto;
  min-height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
}

.card.study-question-card {
  max-width: 380px;
  width: min(95%, 380px);
  justify-content: flex-start;
}

.card.study-result-summary-card {
  border: none;
  background-color: transparent;
  box-shadow: none;
}

.study-result-rewards {
  width: fit-content;
  margin: 2px auto 0;
  padding: 8px 10px;
  display: grid;
  gap: 8px;
  box-sizing: border-box;
  border-radius: 10px;
}

.study-result-reward-group {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.study-result-reward-title {
  margin: 0;
  color: #f05f92;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
}

.study-result-reward-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.study-result-reward-img {
  display: block;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid #c4e8f4;
  border-radius: 8px;
  background-color: white;
  box-shadow: 1px 2px 2px rgba(137, 197, 229, 0.35);
}

.study-result-reward-img-item {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.study-result-reward-img-background {
  width: 70px;
  height: 52px;
  object-fit: cover;
}

.study-result-reward-img-standing {
  width: 48px;
  height: 66px;
  object-fit: contain;
}

.study-result-room-button {
  margin: 1px auto 0;
  width: fit-content;
  min-width: 0;
  padding: 4px 12px;
  border-color: #ee8aad;
  background-color: white;
  border-radius: 7px;
  color: #ee8aad;
  font-size: 13px;
  line-height: 1.2;
}

.study-result-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.study-result-actions .button {
  margin: 0;
  width: 115px;
  min-width: 115px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.study-result-next-part-button {
  position: relative;
  overflow: visible;
  width: 120px !important;
  min-width: 120px !important;
  border-color: #51b8f0 !important;
  background-color: #51b8f0 !important;
  color: white !important;
  box-shadow: 0 6px 16px rgba(81, 184, 240, 0.35) !important;
}

.study-result-next-part-button .next-rate-up-label {
  position: absolute;
  top: -14px;
  right: -12px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75),
    0 5px 12px rgba(231, 95, 142, 0.18);
  transform: rotate(8deg);
  pointer-events: none;
}

.study-result-ok-button {
  width: 115px !important;
  min-width: 115px !important;
}

.study-result-word-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  padding: 5px 14px 6px;
  border-radius: 10px;
  color: #51b8f0;
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.9);
  font-family: "M PLUS Rounded 1c", "Rounded Mplus 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.study-question-progress {
  color: #aaa;
  font-size: 14px;
}

.study-question-word {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.study-selected-chara-badge {
  position: absolute;
  bottom: clamp(-16px, -3.4vw, -20px);
  right: clamp(16px, 3.4vw, 20px);
  z-index: 200;
  width: clamp(96px, 22vw, 120px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 28px;
  box-sizing: border-box;
  pointer-events: none;
  overflow: hidden;
}

.study-selected-chara-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.7;
  filter: saturate(0.4);
}

.correct-answer-button {
  background-color: rgb(255, 255, 141);
}
.correct-mark {
  position: relative;
}

.correct-mark::before {
  content: '◎';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.ng-mark {
  position: relative;
}

.ng-mark::before {
  content: '×';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.chara-big-img {
  width: 120px;
}

.study-result-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.study-result-list input {
  cursor: url('/images/pointer.png'), auto;
  transform: scale(1.5);
}

.book-chara-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 620px);
}

.book-chara-list img {
  border-radius: 15px;
  width: 100px;
}

.book-chara {
  position: relative;
  height: fit-content;
  min-width: 0;
  cursor: url('/images/pointer.png'), auto;
  background-color: #fffaf0; /* FloralWhite */
  padding: 15px 15px 52px;
  border-radius: 25px;
  border: 2px dashed #B0E0E6; /* PowderBlue */
  box-shadow: 1px 2px 2px #c4d8e2;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .book-chara:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
}

.book-chara-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.book-chara-button {
  cursor: url('/images/pointer.png'), auto;
  min-width: 62px;
  border-radius: 14px;
  padding: 7px 12px;
  border: 1px solid #89c5e5;
  background-color: white;
  color: #51b8f0;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 1px 2px 2px #c4d8e2;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.book-chara-room-button {
  border-color: #f2b8c8;
  background-color: #fff7fa;
  color: #e06f91;
}

@media (hover: hover) {
  .book-chara-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    background-color: #f0fbff;
  }

  .book-chara-room-button:hover {
    background-color: #fff0f5;
  }
}

.book-chara-rate {
  position: absolute;
  background-color: #ADD8E6; /* LightBlue */
  color: white;
  font-weight: bold;
  font-size: 12px;
  border-radius: 10px;
  padding: 3px 8px;
  bottom: 10px;
  right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

@media (max-width: 560px) {
  .book-chara-list {
    grid-template-columns: 1fr;
    width: min(100%, 260px);
  }
}

.chara-detail-view {
  width: min(100%, 460px);
  padding: 18px 14px 22px;
  box-sizing: border-box;
  color: #445066;
  text-align: left;
}

.chara-detail-header {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d5e4ec;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(110, 149, 174, 0.1);
}

.chara-detail-main-img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 18px;
  background: #fffaf0;
  border: 1px solid #e6f1f6;
}

.chara-detail-view .rate-display {
  width: fit-content;
  margin: 8px 0 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef9ff;
  color: #51b8f0;
  font-size: 14px;
  font-weight: bold;
}

.chara-touch-count {
  width: fit-content;
  margin: 6px 0 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff4f7;
  color: #d36f8a;
  font-size: 14px;
  font-weight: bold;
}

.chara-detail-title {
  margin: 0;
  text-align: left;
}

.chara-detail-description {
  margin: 14px 0 0;
  padding: 14px;
  border-left: 4px solid #f2b8c8;
  border-radius: 12px;
  background: rgba(255, 250, 252, 0.92);
  line-height: 1.7;
}

.chara-detail-section {
  margin-top: 18px;
}

.chara-detail-section-title {
  color: #6a92a8;
  font-size: 16px;
  margin-bottom: 10px;
}

.chara-detail-still-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chara-detail-still-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d5e4ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(110, 149, 174, 0.08);
}

.chara-detail-still-image-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fbff;
  border: 1px solid #edf2f7;
}

.chara-detail-still-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chara-detail-still-rate {
  color: #e06f91;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 6px;
}

.chara-detail-still-talk {
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.chara-detail-empty {
  padding: 18px 14px;
  border: 1px dashed #b8d9e8;
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.92);
  color: #6c7a88;
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 430px) {
  .chara-detail-header,
  .chara-detail-still-card {
    grid-template-columns: 1fr;
  }

  .chara-detail-main-img,
  .chara-detail-still-image-wrap {
    width: min(100%, 180px);
    justify-self: center;
  }
}

h2.page-title {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px 10px;
  color: #7bcbeb;
  font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Maru Gothic Pro', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 23px;
  font-weight: bold;
  line-height: 1.5;
  text-shadow: 0 1px 0 rgba(255, 255, 255),
               0 2px 0 rgba(255, 255, 255),
               0 6px 12px rgba(255, 255, 255);
}

h2.page-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 120px);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 184, 200, 0.72), rgba(135, 206, 235, 0.88), rgba(255, 229, 138, 0.72));
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(135, 206, 235, 0.12);
}

.study-result-middle h2.page-title::after {
  content: none;
}

.chara-book-title {
  text-shadow: 2px 2px 0 #ffe4e1, /* MistyRose outline */
               -2px -2px 0 #ffe4e1,
               2px -2px 0 #ffe4e1,
               -2px 2px 0 #ffe4e1,
               3px 3px 5px rgba(0,0,0,0.2); /* Soft shadow */
  font-size: 28px; /* Slightly larger */
  color: #87CEEB; /* Keep the pink */
}

.card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.6); /* FloralWhite */
  padding: 25px 15px 20px;
  border-radius: 25px;
  width: fit-content;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid rgb(222, 222, 222);
  box-shadow: 0 0 3px rgba(230, 230, 230, 0.7);
}

.title-login-card {
  padding-right: 20px;
  padding-left: 20px;
}

.title-login-warning-layer {
  position: fixed;
  inset: 0;
  z-index: 4300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(25, 29, 81, 0.22);
  backdrop-filter: blur(2px);
}

.title-login-warning-dialog {
  width: min(calc(100vw - 48px), 340px);
  padding: 18px 16px 16px;
  border: 1px solid #c4d8e2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 32px rgba(80, 120, 145, 0.24);
  box-sizing: border-box;
  text-align: center;
}

.title-login-warning-title {
  margin: 0 0 10px;
  color: rgb(25, 29, 81);
  font-size: 16px;
  font-weight: bold;
}

.title-login-warning-message {
  margin: 0;
  color: #40576b;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.title-login-warning-ok {
  cursor: url('/images/pointer.png'), auto;
  margin-top: 16px;
  min-width: 96px;
  padding: 9px 20px;
  border: 1px solid #89c5e5;
  border-radius: 999px;
  background: #51b8f0;
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 1px 2px 2px #c4d8e2;
}

.result-chara-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 8px rgba(176, 224, 230, 0.7);
}

.result-room-img {
  width: 150px;
  height: 150px;
  border-radius: 18px;
  border: 3px solid white;
  box-shadow: 0 0 8px rgba(176, 224, 230, 0.7);
  background-color: #f4feff;
  display: block;
  margin: 0 auto;
}

.study-result-visual {
  position: relative;
  width: fit-content;
  min-height: 190px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.study-result-heart-effect {
  position: relative;
  z-index: 2;
  min-height: 34px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.study-result-heart {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d7dfe6;
  font-size: 26px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-6px) scale(0.78);
  animation: result-heart-enter 0.34s ease-out calc(var(--heart-index) * 0.08s) forwards;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.92));
}

.study-result-heart svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.study-result-heart.is-filled-before,
.study-result-heart.is-filled-after {
  color: #f06f9b;
}

.study-result-heart.is-newly-filled {
  animation:
    result-heart-enter 0.34s ease-out calc(var(--heart-index) * 0.08s) forwards,
    result-heart-fill 0.62s cubic-bezier(0.19, 1, 0.22, 1) calc(0.36s + var(--heart-index) * 0.08s) forwards;
}

.study-result-heart-effect.is-rate-up .study-result-heart.is-filled-after {
  animation:
    result-heart-enter 0.34s ease-out calc(var(--heart-index) * 0.08s) forwards,
    result-heart-rate-up 0.72s ease-in-out calc(0.82s + var(--heart-index) * 0.05s) forwards;
}

.study-result-still-reveal {
  position: relative;
  overflow: visible;
}

.study-result-rate-up-badge {
  position: absolute;
  top: -14px;
  right: -18px;
  z-index: 4;
  margin: 0;
  min-width: 78px;
  padding: 9px 10px 8px;
  box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffbcd5 0%, #ff6fa4 54%, #ffff7f 100%);
  color: white;
  font-family: "M PLUS Rounded 1c", "Rounded Mplus 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 0 rgba(202, 62, 118, 0.34);
  box-shadow:
    0 3px 0 rgba(255, 255, 255, 0.72),
    0 8px 16px rgba(231, 95, 142, 0.28);
  transform: rotate(15deg);
  pointer-events: none;
}

.study-result-rate-up-badge::after {
  content: '✦';
  position: absolute;
  top: -11px;
  right: 6px;
  color: #ffe58a;
  font-size: 18px;
  text-shadow: 0 0 8px rgba(255, 229, 138, 0.8);
}

.study-result-visual.is-rate-up .study-result-still-reveal {
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  animation: result-still-reveal 0.72s cubic-bezier(0.19, 1, 0.22, 1) 1.45s forwards;
}

.study-result-visual.is-rate-up .study-result-still-reveal::before,
.study-result-visual.is-rate-up .study-result-still-reveal::after {
  content: '✦';
  position: absolute;
  z-index: 3;
  color: #ffd86b;
  font-size: 26px;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255, 216, 107, 0.8);
  animation: result-sparkle 0.85s ease-out 1.55s forwards;
}

.study-result-visual.is-rate-up .study-result-still-reveal::before {
  top: 4px;
  right: 8px;
}

.study-result-visual.is-rate-up .study-result-still-reveal::after {
  left: 4px;
  bottom: 12px;
  animation-delay: 1.72s;
}

.study-result-rate-img {
  position: relative;
  top: 15px;
  width: 200px;
  height: auto;
  box-shadow: 0 0 12px rgba(255, 216, 107, 0.78);
}

.study-result-rate-up-talk {
  margin-top: 15px;
}

.study-result-first-still-talk {
  margin-top: 25px;
}

.study-still-reveal-screen {
  width: min(100%, 520px);
  min-height: min(100%, 620px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 14px;
  box-sizing: border-box;
}

.study-still-reveal-heart-stage {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.study-still-reveal-heart-stage .study-result-heart-effect {
  margin-bottom: 0;
}

.study-still-reveal-heart-stage .study-result-heart {
  width: clamp(30px, 8vw, 42px);
  height: clamp(30px, 8vw, 42px);
  font-size: clamp(30px, 8vw, 42px);
}

.study-still-reveal-card {
  position: relative;
  width: min(92%, 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  animation: still-reveal-card-enter 0.82s cubic-bezier(0.19, 1, 0.22, 1) 1.42s forwards;
}

.study-still-reveal-image-frame {
  position: relative;
  width: min(100%, 390px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.study-still-reveal-image-frame::before,
.study-still-reveal-image-frame::after {
  content: '✦';
  position: absolute;
  z-index: 3;
  color: #ffd86b;
  font-size: clamp(28px, 8vw, 46px);
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 12px rgba(255, 216, 107, 0.88);
  animation: still-reveal-sparkle 1.1s ease-out 1.62s infinite;
}

.study-still-reveal-image-frame::before {
  top: 4%;
  right: 6%;
}

.study-still-reveal-image-frame::after {
  left: 4%;
  bottom: 8%;
  animation-delay: 1.86s;
}

.study-still-reveal-img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.32),
    0 18px 34px rgba(82, 152, 186, 0.22),
    0 0 30px rgba(255, 216, 107, 0.3);
  animation: still-reveal-glow 1.4s ease-in-out 1.5s infinite alternate;
}

@keyframes result-heart-enter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes result-heart-fill {
  0% {
    color: #d7dfe6;
    transform: translateY(0) scale(1);
  }
  48% {
    color: #ff7fab;
    transform: translateY(-8px) scale(1.42);
    text-shadow: 0 0 14px rgba(255, 127, 171, 0.34);
  }
  100% {
    color: #f06f9b;
    transform: translateY(0) scale(1.08);
    text-shadow: 0 2px 8px rgba(240, 111, 155, 0.22);
  }
}

@keyframes result-heart-rate-up {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-7px) scale(1.22);
    text-shadow: 0 0 14px rgba(240, 111, 155, 0.28);
  }
  100% {
    transform: translateY(0) scale(1.06);
  }
}

@keyframes result-still-reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes result-sparkle {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-12deg);
  }
  42% {
    opacity: 1;
    transform: scale(1.18) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.7) rotate(18deg);
  }
}

@keyframes still-reveal-card-enter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes still-reveal-glow {
  to {
    box-shadow:
      0 0 0 8px rgba(255, 255, 255, 0.42),
      0 18px 34px rgba(82, 152, 186, 0.2),
      0 0 46px rgba(255, 216, 107, 0.52);
  }
}

@keyframes still-reveal-sparkle {
  0% {
    opacity: 0;
    transform: scale(0.44) rotate(-16deg);
  }
  35% {
    opacity: 1;
    transform: scale(1.18) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.62) rotate(22deg);
  }
}

.study-result-list {
  width: 100%;
}

.study-result-list p {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid #eee;
}

.study-result-list input {
  margin-right: 12px;
}

.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  width: 100%;
}

.trophy-item {
  background-color: #fff;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trophy-item.locked {
  background-color: #f8f8f8;
  color: #ccc;
}

.trophy-icon {
  font-size: 40px;
}

.trophy-item.locked .trophy-icon {
  filter: grayscale(100%);
  opacity: 0.5;
}

.trophy-title {
  font-weight: bold;
  font-size: 14px;
}

.trophy-condition {
  font-size: 12px;
  color: #999;
}

.trophy-date {
  font-size: 12px;
  color: #51b8f0; /* LightBlue */
  font-weight: bold;
}

.other-page {
  width: min(100%, 470px);
  box-sizing: border-box;
  padding: 15px 8px 12px;
}

.other-lead {
  margin: 14px auto 18px;
  color: #596579;
  line-height: 1.7;
}

.other-menu-list {
  width: min(100%, 330px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 25px auto 0;
}

.other-menu-button {
  cursor: url('/images/pointer.png'), auto;
  width: min(100%, 220px);
  margin: 0 auto;
  border: 1px solid #89c5e5;
  border-radius: 15px;
  padding: 10px 12px;
  background-color: white;
  color: #51b8f0;
  font-weight: bold;
  box-shadow: 1px 2px 2px #c4d8e2;
}

.other-document {
  margin: 16px auto 0;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.86);
  border: 1px solid #c4d8e2;
  border-radius: 16px;
  box-shadow: 1px 2px 2px #dceaf0;
  text-align: left;
  line-height: 1.8;
  font-size: 14px;
}

.other-document-title {
  margin: 0 0 15px;
  font-size: 20px;
  color: #30465f;
  text-align: center;
}

.other-document-section + .other-document-section {
  margin-top: 18px;
}

.other-document > .other-document-section:first-of-type {
  margin-top: 15px;
}

.other-document-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #2e6d94;
}

.other-document-list {
  margin: 0;
  padding-left: 1.2em;
}

.other-document-list li + li {
  margin-top: 6px;
}

.other-document-info-list {
  margin: 0;
}

.other-document-info-row + .other-document-info-row {
  margin-top: 10px;
}

.other-document-info-row dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: bold;
  color: #5d88a8;
}

.other-document-info-row dd {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d8e6ee;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: #30465f;
}

.other-document-info-row dd p + p {
  margin-top: 8px;
}

.contact-form-card {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid #d8e6ee;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.contact-form-field + .contact-form-field {
  margin-top: 12px;
}

.contact-form-label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: bold;
  color: #5d88a8;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c9dfea;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #30465f;
  font-size: 14px;
  font-family: inherit;
}

.contact-form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  outline: none;
  border-color: #8ccbed;
  box-shadow: 0 0 0 3px rgba(140, 203, 237, 0.2);
}

.contact-form-help {
  margin: 12px 0 0;
  font-size: 12px;
  color: #657b8f;
  line-height: 1.7;
}

.contact-form-submit-button {
  margin-top: 14px;
}

.contact-form-submit-button-disabled {
  opacity: 0.7;
  pointer-events: none;
}

.contact-form-notice-layer {
  position: sticky;
  top: calc(env(safe-area-inset-top) + clamp(8px, 2vw, 12px));
  width: 100%;
  height: 0;
  padding-inline: clamp(8px, 3vw, 12px);
  box-sizing: border-box;
  z-index: 460;
  pointer-events: none;
}

.contact-form-notice {
  margin: 0;
  width: min(100%, 420px);
  box-sizing: border-box;
  margin-inline: auto;
  padding: clamp(11px, 3.4vw, 14px) clamp(14px, 4.5vw, 18px);
  border: 1px solid transparent;
  border-radius: clamp(14px, 4.5vw, 18px);
  box-shadow: 0 6px 14px rgba(57, 88, 113, 0.1);
  font-size: clamp(12px, 3.5vw, 14px);
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
  backdrop-filter: blur(8px);
  will-change: transform, opacity;
}

.contact-form-notice.is-success {
  background: rgba(230, 255, 240, 0.92);
  border-color: rgba(122, 207, 156, 0.9);
  color: #2e7f52;
}

.contact-form-notice.is-error {
  background: rgba(255, 241, 241, 0.94);
  border-color: rgba(235, 146, 146, 0.88);
  color: #b45151;
}

@keyframes contactNoticeSlideIn {
  from {
    transform: translateY(calc(-100% - 18px));
    opacity: 0.18;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes contactNoticeSlideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(calc(-100% - 18px));
    opacity: 0.12;
  }
}

.contact-form-notice-enter-a {
  animation: contactNoticeSlideIn 0.24s cubic-bezier(0.22, 0.9, 0.28, 1);
}

.contact-form-notice-enter-b {
  animation: contactNoticeSlideIn 0.24s cubic-bezier(0.22, 0.9, 0.28, 1);
}

.contact-form-notice-closing {
  animation: contactNoticeSlideOut 0.24s cubic-bezier(0.35, 0, 0.2, 1) forwards;
}

.contact-form-feedback {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.contact-form-feedback.is-success {
  background: rgba(182, 235, 204, 0.55);
  color: #2e7f52;
}

.contact-form-feedback.is-error {
  background: rgba(255, 223, 223, 0.65);
  color: #b45151;
}

.other-document p + p {
  margin-top: 10px;
}

.other-back-button {
  margin-top: 16px;
}

.payment-page {
  width: min(100%, 470px);
  box-sizing: border-box;
  padding: 54px 8px 12px;
}

.payment-loading-page {
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-loading-indicator {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.payment-loading-spinner {
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  border: 4px solid rgba(137, 197, 229, 0.35);
  border-top-color: #51b8f0;
  border-radius: 50%;
  animation: paymentLoadingSpin 800ms linear infinite;
}

.payment-lead {
  margin: 12px auto 16px;
  max-width: 370px;
  line-height: 1.7;
  color: rgb(25, 29, 81);
}

.payment-status {
  margin: 10px auto 14px;
  max-width: 390px;
  padding: 10px 12px;
  border: 1px solid #c4d8e2;
  border-radius: 8px;
  background-color: #f8fdff;
  color: rgb(25, 29, 81);
  font-size: 13px;
  line-height: 1.6;
}

.payment-status.success {
  border-color: #f2b8c8;
  background-color: #fff7fa;
  color: #e06f91;
}

.payment-status.payment-checkout-complete-message {
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: rgb(25, 29, 81);
  text-align: center;
}

.payment-checkout-complete-layer.is-closing {
  animation: fadeOut 180ms ease-in both;
}

.payment-checkout-complete-layer.is-closing .payment-login-prompt {
  animation: fadeOut 180ms ease-in both;
}

.payment-table-wrap {
  width: 100%;
  overflow-x: visible;
}

.payment-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #c4d8e2;
  border-radius: 14px;
  background-color: white;
  box-shadow: 1px 2px 2px #dceaf0;
  font-size: 13px;
}

.payment-table th,
.payment-table td {
  padding: 10px 8px;
  border-right: 1px solid #e3f2f8;
  border-bottom: 1px solid #e3f2f8;
  line-height: 1.5;
  vertical-align: middle;
}

.payment-table th:last-child,
.payment-table td:last-child {
  border-right: none;
}

.payment-table tbody tr:last-child th,
.payment-table tbody tr:last-child td {
  border-bottom: none;
}

.payment-table thead th {
  background-color: #e8fbff;
  color: rgb(0, 157, 255);
  font-weight: bold;
}

.payment-table tbody th {
  background-color: #f8fdff;
  color: rgb(25, 29, 81);
  text-align: left;
}

.payment-table thead th:first-child,
.payment-table tbody th {
  width: auto;
}

.payment-table th:nth-child(2),
.payment-table th:nth-child(3),
.payment-table td:nth-child(2),
.payment-table td:nth-child(3) {
  width: 28%;
}

.payment-current-plan-cell {
  text-align: center;
}

.payment-current-plan-cell.is-current {
  background-color: white;
}

.payment-paid-cell.payment-current-plan-cell.is-current {
  background-color: #fff7fa;
}

.payment-current-plan-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  box-sizing: border-box;
  border-radius: 50%;
  background-color: #fff;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.payment-current-plan-check::before {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 3px solid #e06f91;
  border-bottom: 3px solid #e06f91;
  transform: translateY(-1px) rotate(-45deg);
}

.payment-current-plan-empty {
  color: #b6c1ca;
}

.payment-current-plan-status {
  color: #596579;
  text-align: center;
  font-weight: bold;
}

.payment-current-plan-status.error {
  color: #d35f7e;
}

.payment-paid-cell {
  background-color: #fff7fa;
  color: #e06f91;
  font-weight: bold;
}

.payment-note {
  margin: 14px auto 16px;
  max-width: 390px;
  font-size: 14px;
  line-height: 1.7;
  color: #596579;
}

.payment-cancel-notice {
  margin: 0 auto 14px;
  max-width: 390px;
  padding: 10px 12px;
  border: 1px solid #f2b8c8;
  border-radius: 10px;
  background-color: #fff7fa;
  color: #d35f7e;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
}

.payment-button {
  appearance: none;
  -webkit-appearance: none;
  cursor: url('/images/pointer.png'), auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 160px);
  border: 2px solid #f2b8c8;
  border-radius: 16px;
  padding: 11px 18px;
  background-color: #fff7fa;
  color: #e06f91;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  box-shadow: 1px 2px 2px #f3d6de;
}

@media (hover: hover) {
  .payment-button:hover {
    background-color: #fff0f5;
  }
}

.payment-button:active {
  transform: translateY(0);
}

.payment-button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.payment-button:disabled:hover {
  background-color: #fff7fa;
  box-shadow: 1px 2px 2px #f3d6de;
  transform: none;
}

.payment-paid-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.payment-card-change-button {
  width: min(100%, 220px);
  border-color: #89c5e5;
  background-color: #f8fdff;
  color: #2f8fbd;
  box-shadow: 1px 2px 2px #c4d8e2;
}

@media (hover: hover) {
  .payment-card-change-button:hover {
    background-color: #f0fbff;
  }
}

.payment-cancel-action-button {
  appearance: none;
  -webkit-appearance: none;
  cursor: url('/images/pointer.png'), auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 84px;
  border: 1px solid #d7e3e9;
  border-radius: 999px;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.82);
  color: #7e8b96;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.4;
  box-shadow: none;
}

@media (hover: hover) {
  .payment-cancel-action-button:hover {
    background-color: #f8fbfd;
    color: #60717f;
  }
}

.payment-login-prompt-layer {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.45);
}

.payment-login-prompt {
  width: min(92vw, 360px);
  padding: 18px 16px 16px;
  border: 1px solid #d5e4ec;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(80, 120, 145, 0.18);
}

.payment-login-prompt-talk {
  justify-content: center;
  margin: 0 auto;
}

.payment-login-prompt-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.payment-login-prompt-cancel,
.payment-login-prompt-register {
  cursor: url('/images/pointer.png'), auto;
  min-width: 96px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #89c5e5;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 1px 2px 2px #c4d8e2;
}

.payment-login-prompt-cancel {
  background: white;
  color: #5d7386;
}

.payment-login-prompt-register {
  background: #51b8f0;
  color: white;
}

.payment-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.payment-danger-button {
  border-color: #e06f91;
  background-color: #e06f91;
  color: white;
}

.payment-failure-page {
  width: min(100%, 430px);
  box-sizing: border-box;
  padding: 28px 12px;
}

.payment-registration-failure-page {
  width: min(100%, 430px);
  box-sizing: border-box;
  padding: 28px 12px;
}

.payment-failure-page .payment-action-row {
  margin-top: 18px;
}

.payment-registration-failure-page .payment-action-row {
  margin-top: 18px;
}

.payment-failure-retry-button {
  width: min(100%, 210px);
  border-color: #89c5e5;
  background-color: #f8fdff;
  color: #2f8fbd;
  box-shadow: 1px 2px 2px #c4d8e2;
}

@media (hover: hover) {
  .payment-failure-retry-button:hover {
    background-color: #f0fbff;
  }
}

@media (max-width: 380px) {
  .payment-page {
    padding-right: 0;
    padding-left: 0;
  }
}

@keyframes moveBackground {
  0% { 
    background-position: 0 0;
  }
  100% { 
    background-position: -1000px 1000px;
  }
}

.yurutan-title-image {
  margin-bottom: 55px;
  max-width: 420px;
  width: 90%;
}

.back-room {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: inherit;
  overflow: hidden;
}

.room-item-actions {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.room-edit-button,
.room-item-save,
.room-item-delete {
  pointer-events: auto;
  cursor: url('/images/pointer.png'), auto;
  background-color: white;
  border: 1px solid #89c5e5;
  border-radius: 15px;
  padding: 10px 20px;
  width: fit-content;
  color: #51b8f0;
  box-shadow: 1px 2px 2px #c4d8e2;
}

.room-edit-button {
  position: absolute;
  top: 116px;
  left: 20px;
  right: auto;
  z-index: 200;
  border-radius: 10px;
  padding: 8px 12px;
}

.room-item-action-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.room-background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-background-bottom-aligned {
  object-position: center bottom;
}

.room-background-transition-in {
  animation: roomVisualFadeIn 240ms ease-out both;
}

.room-background-transition-out {
  pointer-events: none;
  animation: roomVisualFadeOut 240ms ease-out both;
}

.room-chara {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.room-chara img {
  width: auto;
  max-width: min(70%, 300px);
  max-height: var(--room-chara-max-height, 420px);
  height: auto;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
}

.room-chara img.room-chara-editing {
  pointer-events: none;
}

.room-chara img.room-chara-pressed {
  animation: roomCharaWiggle 0.12s ease-in-out infinite;
}

.room-chara img.room-chara-transition-in {
  animation: roomVisualFadeIn 240ms ease-out both;
}

.room-chara img.room-chara-transition-out {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  pointer-events: none;
  animation: roomCharaVisualFadeOut 240ms ease-out both;
}

@keyframes roomVisualFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes roomVisualFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes roomCharaVisualFadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%);
  }
  to {
    opacity: 0;
    transform: translateX(-50%);
  }
}

@keyframes roomCharaWiggle {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.room-items {
  position: absolute;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.room-item-control-stage {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.room-item {
  display: block;
  padding: 5px;
  transform-origin: center;
}

.room-item-editing {
  border: 2px dotted rgb(0, 157, 255);
  cursor: move;
}

.room-item-disabled {
  pointer-events: none;
}

#room-item-move {
  position: absolute;
  touch-action: none;
}

.room-item-select-backdrop {
  position: absolute;
  inset: 0;
  z-index: 300;
}

.room-item-select {
  background-color: #f4feff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  border: solid 5px #d4faff;
  border-radius: 40px;
  margin: 0;
  padding: 0;
  width: 85%;
  height: 85%;
  animation: fadeIn 90ms ease-out both;
}

.room-item-select.is-closing {
  pointer-events: none;
  animation: fadeOut 90ms ease-in both;
}

.item-select-relative {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.room-item-close-button {
  cursor: url('/images/pointer.png'), auto;
  color: rgb(102, 102, 102);
  position: static;
  flex: 0 0 auto;
  background-color: white;
  border: 1px solid rgb(102, 102, 102);
  border-radius: 15px;
  padding: 10px 20px;
  margin: 0 auto 15px;
  width: fit-content;
}

.room-item-filter-buttons {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px 0;
}

.room-item-filter-button {
  cursor: url('/images/pointer.png'), auto;
  border: 1px solid #89c5e5;
  border-radius: 14px;
  background-color: white;
  color: #51b8f0;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 1px 2px 2px #c4d8e2;
}

.room-item-filter-button-selected {
  background-color: #e8fbff;
  border-color: rgb(0, 157, 255);
  color: rgb(0, 157, 255);
}

.item-select-list {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  align-content: flex-start;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

.item-select-list .room-select-item {
  display: block;
  flex: 0 0 auto;
  width: 60px;
  height: auto;
  object-fit: contain;
}

.room-item-empty-message {
  width: 100%;
  margin: auto;
  color: #4c98bf;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
}

.room-item-button,
.room-background-button {
  cursor: url('/images/pointer.png'), auto;
  position: absolute;
  left: 20px;
  top: 116px;
  z-index: 200;
  background-color: white;
  border: 1px solid #89c5e5;
  border-radius: 10px;
  padding: 8px 12px;
  color: #51b8f0;
  box-shadow: 1px 2px 2px #c4d8e2;
  width: fit-content;
}

.room-background-button {
  top: 165px;
}

.room-select-item {
  cursor: url('/images/pointer.png'), auto;
}

.room-background-select-list {
  align-items: flex-start;
}

.room-background-select-item,
.room-standing-select-item {
  cursor: url('/images/pointer.png'), auto;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: white;
  padding: 4px;
  box-shadow: 1px 2px 2px #c4d8e2;
}

.room-background-select-item {
  width: 70px;
   aspect-ratio: 3 / 4;
}

.room-standing-select-list {
  align-items: flex-start;
}

.room-standing-select-item {
  width: 90px;
  height: 128px;
}

.room-background-select-item-selected,
.room-standing-select-item-selected {
  border-color: rgb(0, 157, 255);
  background-color: #e8fbff;
}

.room-background-select-item img,
.room-standing-select-item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

.room-background-select-item img {
  object-fit: cover;
}

.room-standing-select-item img {
  object-fit: contain;
}

.room-item-rotation-control {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: center;
}

.room-rotate-stem {
  position: absolute;
  left: 50%;
  top: -23px;
  width: 1px;
  height: 23px;
  background-color: rgb(0, 157, 255);
  transform: translateX(-50%);
  transform-origin: center bottom;
}

.room-rotate-handle {
  position: absolute;
  top: -43px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgb(0, 157, 255);
  border-radius: 50%;
  background-color: #fff;
  color: rgb(0, 157, 255);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  pointer-events: auto;
  transform: translateX(-50%);
  cursor: grab;
  touch-action: none;
}

.room-rotate-handle:active {
  cursor: grabbing;
}

#room-item-move.controls-bottom .room-rotate-stem {
  top: auto;
  bottom: -23px;
}

#room-item-move.controls-bottom .room-rotate-handle {
  top: auto;
  bottom: -43px;
}

.room-item-size-control {
  position: absolute;
  left: clamp(16px, 8%, 80px);
  right: clamp(16px, 8%, 80px);
  bottom: 74px;
  max-width: 300px;
  margin: 0 auto;
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 12px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid #89c5e5;
  border-radius: 8px;
  box-shadow: 1px 2px 2px #c4d8e2;
}

.room-item-size-control-hidden {
  visibility: hidden;
  pointer-events: none;
}

.room-item-size-control-drag {
  flex: 0 0 22px;
  align-self: stretch;
  min-height: 22px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 0 6px, #89c5e5 6px 8px, transparent 8px 14px, #89c5e5 14px 16px, transparent 16px);
  cursor: move;
  touch-action: none;
}

.room-item-size-slider {
  flex: 1;
  min-width: 0;
  accent-color: #51b8f0;
  cursor: pointer;
}

.room-size-preview {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 22px;
  box-sizing: border-box;
  color: #51b8f0;
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.start-letter-image {
  cursor: url('/images/pointer.png'), auto;
  max-width: 100%;
  height: auto;
  width: 45%;
  max-width: 370px;
  min-width: 150px; /* Prevent image from becoming too small */
  animation: blink 1.3s ease-in-out infinite alternate;
  background-color: rgba(255, 255, 255);
  padding: 3px;
}

.title-first-switch-area {
  height: 120px;
}

.title-first-switch-content {
  opacity: 1;
  transition: opacity 180ms ease-in;
}

.title-first-switch-content.is-exiting {
  opacity: 0;
  transition-timing-function: ease-out;
}

.title-first-switch-content.is-entering {
  animation: fadeIn 180ms ease-in both;
}

.usatan-fade-in {
  opacity: 0;
  transform-origin: 50% 86%;
  animation: titleUsatanPoyonIn 1100ms linear 120ms both;
}

.title-bottom-fade-in {
  animation: titleBottomFadeIn 0.9s ease-in;
}

@keyframes titleBottomFadeIn {
  0% {
    opacity: 0;
  }
  85% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes titleUsatanPoyonIn {
  0% {
    opacity: 0;
    transform: scale(0.8, 1.4) translate(0%, -120%);
  }
  8% {
    opacity: 1;
    transform: scale(0.8, 1.4) translate(0%, -35%);
  }
  16% {
    opacity: 1;
    transform: scale(0.8, 1.4) translate(0%, -12%);
  }
  24% {
    transform: scale(1.36, 0.64) translate(0%, 20%);
  }
  34% {
    transform: scale(0.92, 1.12) translate(0%, -9%);
  }
  46% {
    transform: scale(0.96, 1.18) translate(0%, -22%);
  }
  58% {
    transform: scale(0.96, 1.16) translate(0%, -8%);
  }
  70% {
    transform: scale(1.08, 0.92) translate(0%, 4%);
  }
  82% {
    transform: scale(1, 1) translate(0%, 0%);
  }
  100% {
    opacity: 1;
    transform: scale(1, 1) translate(0%, 0%);
  }
}

@keyframes titleUsatanTalk {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  35% {
    transform: translateY(-5px) rotate(-1.5deg) scale(1.015);
  }
  70% {
    transform: translateY(2px) rotate(1deg) scale(0.995);
  }
}

@keyframes titleTalkMark {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(-2px, 2px) rotate(-16deg) scale(0.85);
  }
  45% {
    opacity: 0.95;
    transform: translate(3px, -2px) rotate(-16deg) scale(1);
  }
}

@keyframes titleBubblePop {
  0% {
    opacity: 0;
    transform: translateY(18px) scaleY(0.15) scaleX(0.82);
  }
  55% {
    opacity: 1;
    transform: translateY(-3px) scaleY(1.08) scaleX(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1) scaleX(1);
  }
}

@keyframes titleBubbleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 550px) {
  .center {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0; /* Optional: remove border-radius for full screen */
  }

  .title-usatan-scene {
    width: min(100%, 390px);
    min-height: 540px;
    grid-template-rows: 228px 184px 128px;
    padding: 0 8px 8px;
  }

  .title-usatan-stage {
    min-height: 180px;
    width: 176px;
    margin-top: -20px;
    margin-right: -18px;
  }

  .title-usatan-character {
    width: 132px;
  }

  .title-talk-panel {
    min-height: 228px;
    width: min(100%, 320px);
  }

  .title-speech-bubble {
    width: clamp(252px, 80vw, 292px);
    padding: clamp(42px, 12vw, 50px) clamp(22px, 7vw, 34px) clamp(50px, 15vw, 60px);
    font-size: 16px;
  }

  .study-question-word {
    font-size: 28px;
  }

  .other-page {
    padding: 12px 6px 10px;
  }

  .settings-card {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .settings-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .settings-current-value {
    align-self: flex-start;
  }

  .settings-question-count-button {
    min-width: 0;
  }

  .contact-form-card {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .menu-layer {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
  }
}

@media (min-width: 551px) {
  .contact-form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image:
      linear-gradient(45deg, transparent 50%, #7a97ab 50%),
      linear-gradient(135deg, #7a97ab 50%, transparent 50%);
    background-position:
      calc(100% - 20px) calc(50% - 1px),
      calc(100% - 14px) calc(50% - 1px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
  }

  .contact-form-select::-ms-expand {
    display: none;
  }
}

.select-part-review-page.is-miss-review-page .usatan-balloon p {
  border-color: var(--miss-review-border);
  background-color: var(--miss-review-bg);
  color: var(--miss-review-text);
}

.select-part-review-page.is-miss-review-page .usatan-balloon p::before {
  border-right-color: var(--miss-review-bg);
}

.select-part-review-page.is-miss-review-page .usatan-balloon p::after {
  border-right-color: var(--miss-review-border);
}

.select-part-review-page.is-miss-review-page .select-part-button-scroll {
  background-color: rgba(242, 184, 200, 0.18);
}

.select-part-review-page.is-miss-review-page .select-part-button,
.select-part-review-page.is-miss-review-page .button,
.select-part-review-page.is-miss-review-page .back-button {
  border-color: var(--miss-review-border);
  background-color: var(--miss-review-bg);
  color: var(--miss-review-text);
  box-shadow: 1px 2px 2px var(--miss-review-shadow);
}

.select-part-review-page.is-miss-review-page .select-part-button.is-latest-unlocked {
  border-color: var(--miss-review-text);
  box-shadow: 0 0 0 1px var(--miss-review-text), 1px 1px 1px var(--miss-review-shadow-strong);
}

.select-modal.is-miss-review-start-modal {
  border-color: var(--miss-review-border);
  box-shadow: 0 5px 10px var(--miss-review-shadow);
}

.select-start-relative.is-miss-review-start {
  background: var(--miss-review-bg);
}

.select-start-relative.is-miss-review-start .part-label,
.select-start-relative.is-miss-review-start .select-start-word-list-eyebrow {
  color: var(--miss-review-border);
}

.select-start-relative.is-miss-review-start .part-number,
.select-start-relative.is-miss-review-start .select-start-word-list-title {
  color: var(--miss-review-text);
}

.select-start-relative.is-miss-review-start .study-info p,
.select-start-relative.is-miss-review-start .select-start-word-list-count,
.select-start-relative.is-miss-review-start .select-start-word-list-index {
  background-color: white;
  color: var(--miss-review-text);
}

.select-start-relative.is-miss-review-start .section-title,
.select-start-relative.is-miss-review-start .select-start-word-list-meaning {
  color: #9a5871;
}

.select-start-relative.is-miss-review-start .character-preview,
.select-start-relative.is-miss-review-start .select-start-word-list-item {
  border-color: var(--miss-review-border);
  box-shadow: 0 4px 15px var(--miss-review-shadow);
}

.select-start-relative.is-miss-review-start .change-overlay,
.select-start-relative.is-miss-review-start .primary-button {
  background: var(--miss-review-text) !important;
  color: white !important;
  box-shadow: 0 4px 12px var(--miss-review-shadow-strong) !important;
}

.select-start-relative.is-miss-review-start .select-start-word-list-button,
.select-start-relative.is-miss-review-start .select-start-word-list-close-button,
.select-start-relative.is-miss-review-start .closing-button {
  border-color: var(--miss-review-border);
  background-color: white;
  color: var(--miss-review-text);
  box-shadow: 0 2px 8px var(--miss-review-shadow);
}

@media (hover: hover) {
  .select-part-review-page.is-miss-review-page .select-part-button:not(.is-locked):hover,
  .select-part-review-page.is-miss-review-page .button:hover,
  .select-part-review-page.is-miss-review-page .back-button:hover,
  .select-start-relative.is-miss-review-start .select-start-word-list-button:hover,
  .select-start-relative.is-miss-review-start .select-start-word-list-close-button:hover,
  .select-start-relative.is-miss-review-start .closing-button:hover {
    background-color: var(--miss-review-bg-hover) !important;
    color: var(--miss-review-text);
    box-shadow: 0 5px 12px var(--miss-review-shadow-strong) !important;
  }

  .select-start-relative.is-miss-review-start .primary-button:hover {
    background: var(--miss-review-text) !important;
    box-shadow: 0 6px 16px var(--miss-review-shadow-strong) !important;
  }
}
