/* ---------- Game Center ---------- */
.game-center {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "Georgia", serif;
}
.game-center.open {
  display: flex;
  animation: story-fade 0.2s ease;
}
.game-center-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 216, 107, 0.4),
      transparent 34%
    ),
    repeating-linear-gradient(
      135deg,
      rgba(255, 111, 168, 0.18) 0 18px,
      rgba(123, 224, 200, 0.14) 18px 36px,
      rgba(201, 123, 255, 0.14) 36px 54px
    ),
    rgba(42, 18, 62, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.game-center-card {
  position: relative;
  box-sizing: border-box;
  width: min(780px, 94vw);
  max-height: calc(100dvh - 22px);
  overflow-y: auto;
  padding: 22px;
  border: 5px solid #ffd86b;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(123, 224, 200, 0.34),
      transparent 25%
    ),
    linear-gradient(180deg, #fff7fb, #ffe6f2);
  color: #5a1c3a;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.46),
    0 0 70px rgba(255, 216, 107, 0.46);
}
.game-center-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #6b2247;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.game-center-kicker {
  color: #9b315f;
  font-family: "Inter", "Georgia", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.game-center-card h2 {
  margin: 3px 52px 8px 0;
  color: #b03579;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
}
.game-center-stats {
  margin-bottom: 12px;
  color: #6b2247;
  font-weight: 800;
  line-height: 1.25;
}
.game-center-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.game-center-tabs button {
  flex: 1;
  min-width: 118px;
  min-height: 48px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid rgba(176, 53, 121, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #8a2f64;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.tab-count {
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(176, 53, 121, 0.1);
  color: #6b2247;
  font:
    900 11px/1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
}
.game-center-tabs button.active {
  background: linear-gradient(180deg, #ff8ac0, #d84b90);
  color: #fff;
}
.game-center-tabs button.active .tab-count {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}
.game-center-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.game-center.bookshelf-mode {
  align-items: stretch;
  padding: 12px;
}
.game-center.bookshelf-mode .game-center-backdrop {
  background:
    radial-gradient(
      circle at 50% 26%,
      rgba(255, 216, 107, 0.42),
      transparent 34%
    ),
    rgba(34, 15, 48, 0.88);
}
.game-center.bookshelf-mode .game-center-card {
  width: min(1180px, 100%);
  max-height: none;
  min-height: calc(100dvh - 24px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  overflow: hidden;
  padding: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 244, 250, 0.96),
      rgba(255, 229, 242, 0.94)
    ),
    #ffe6f2;
}
.game-center.bookshelf-mode .game-center-kicker,
.game-center.bookshelf-mode .game-center-card > h2,
.game-center.bookshelf-mode .game-center-stats {
  display: none;
}
.game-center.bookshelf-mode .game-center-tabs {
  width: calc(100% - 54px);
  margin: 0;
  padding-right: 4px;
}
.game-center.bookshelf-mode .game-center-tabs button {
  min-width: 88px;
  min-height: 38px;
}
.game-center.bookshelf-mode #game-center-panel-books {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 22% 10%,
      rgba(255, 255, 255, 0.66),
      transparent 28%
    ),
    #ffeaf5;
}
.mini-world-atlas {
  position: relative;
  min-height: 132px;
  grid-column: 1 / -1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border: 3px solid rgba(255, 216, 107, 0.56);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(90, 28, 58, 0.58)),
    url("../data/mini_game_worlds/world_atlas_banner.png") center / cover no-repeat;
  color: #fff;
  box-shadow: 0 10px 24px rgba(107, 34, 71, 0.16);
}
.mini-world-atlas h3,
.mini-world-atlas p {
  position: relative;
  z-index: 1;
  margin: 0;
  text-shadow: 0 2px 8px rgba(70, 22, 48, 0.5);
}
.mini-world-atlas h3 {
  font-size: 24px;
  line-height: 1;
}
.mini-world-atlas p {
  margin-top: 4px;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.mini-world-feature {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 148px;
  overflow: hidden;
  padding: 12px;
  border: 3px solid rgba(255, 216, 107, 0.62);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 252, 0.78)),
    var(--world-thumb) center / cover no-repeat,
    #fff7fb;
  box-shadow: 0 12px 28px rgba(107, 34, 71, 0.14);
}
.mini-world-feature.complete {
  border-color: rgba(66, 195, 157, 0.58);
  background:
    linear-gradient(90deg, rgba(232, 255, 247, 0.94), rgba(255, 255, 255, 0.76)),
    var(--world-thumb) center / cover no-repeat,
    #e8fff7;
}
.mini-world-feature:focus-visible {
  outline: 3px solid #7be0c8;
  outline-offset: 4px;
}
.mini-world-feature-visual {
  position: relative;
  min-height: 120px;
  overflow: hidden;
  display: grid;
  place-items: end start;
  padding: 10px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(90, 28, 58, 0.08), rgba(90, 28, 58, 0.48)),
    var(--world-thumb) center / cover no-repeat,
    linear-gradient(135deg, #fff1a6, #d7f7ff);
}
.mini-world-feature-visual span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffd86b, #ff8ac0);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(107, 34, 71, 0.28);
  box-shadow: 0 8px 18px rgba(107, 34, 71, 0.24);
}
.mini-world-feature-copy {
  min-width: 0;
}
.mini-world-feature-copy small {
  display: inline-block;
  margin-bottom: 5px;
  color: #237c5f;
  font:
    900 12px/1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mini-world-feature-copy h3 {
  margin: 0;
  color: #8a2f64;
  font-size: 28px;
  line-height: 1.02;
}
.mini-world-feature-copy p {
  margin: 6px 0 0;
  color: #235c51;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.22;
}
.mini-world-feature-controls {
  display: grid;
  grid-template-columns: 48px minmax(112px, auto) 48px;
  align-items: center;
  gap: 8px;
}
.mini-world-feature-controls button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 4px 0 rgba(176, 53, 121, 0.16);
}
.mini-world-feature-controls button:disabled {
  cursor: default;
  opacity: 0.52;
}
.mini-world-arrow {
  width: 48px;
  background: #fff;
  color: #8a2f64;
  font-size: 30px;
  line-height: 1;
}
.mini-world-play {
  padding: 8px 18px;
  background: linear-gradient(180deg, #ffd86b, #ff8ac0);
  color: #6b2247;
  font-size: 15px;
}
.game-center-list.hidden {
  display: none;
}
.adventure-pass-list {
  grid-template-columns: 1fr;
}
.journal-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.journal-recent {
  grid-column: 1 / -1;
  padding: 12px;
  border: 2px solid rgba(112, 91, 219, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(
      circle at 10% 12%,
      rgba(255, 255, 255, 0.92),
      transparent 24%
    ),
    linear-gradient(180deg, #f4f0ff, #e8fff7);
  box-shadow: 0 8px 18px rgba(80, 65, 140, 0.11);
}
.journal-recent-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.journal-recent-head h3,
.journal-recent-head p {
  margin: 0;
}
.journal-recent-head h3 {
  color: #4f2c7a;
  font-size: 18px;
  line-height: 1.05;
}
.journal-recent-head p {
  margin-top: 3px;
  color: #235c51;
  font:
    900 12px/1.1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
}
.journal-recent-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.journal-recent-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.68);
}
.journal-recent-row.has-action {
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
}
.journal-recent-row.has-bridge {
  align-items: start;
}
.journal-recent-row span {
  display: grid;
  place-items: center;
}
.journal-recent-row strong {
  overflow: hidden;
  color: #74214f;
  font-size: 13px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.journal-recent-row small,
.journal-recent-empty {
  color: #6b2247;
  font:
    900 11px/1.1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  opacity: 0.72;
}
.journal-recent-bridge {
  grid-column: 2 / -1;
  color: #235c51;
  font:
    900 12px/1.18 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  font-style: normal;
}
.journal-recent-row button {
  min-width: 64px;
  min-height: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #7be0c8, #42c39d);
  color: #174f46;
  font:
    900 13px/1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.journal-recent-empty {
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}
.journal-coplay-prompt {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 2px solid rgba(35, 124, 95, 0.18);
  border-radius: 12px;
  background: rgba(232, 255, 247, 0.72);
  color: #235c51;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}
.journal-family-note {
  padding: 9px 12px;
  border: 2px dashed rgba(176, 53, 121, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: #7b3f6f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.journal-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 2px solid rgba(176, 53, 121, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 7px 16px rgba(107, 34, 71, 0.1);
}
.journal-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff1a6, #ff8ac0);
  color: #6b2247;
  font-size: 22px;
  font-weight: 900;
}
.journal-card h3 {
  margin: 0;
  overflow: hidden;
  color: #8a2f64;
  font-size: 16px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.journal-card p {
  margin: 4px 0 0;
  color: #237c5f;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.daily-mission-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 2px solid rgba(35, 124, 95, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(180deg, #e8fff7, #fff7d8);
  box-shadow: 0 8px 20px rgba(35, 124, 95, 0.1);
}
.daily-mission-card.complete {
  border-color: rgba(66, 195, 157, 0.34);
}
.daily-mission-card.unavailable {
  border-color: rgba(107, 34, 71, 0.2);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(180deg, rgba(255, 248, 238, 0.94), rgba(234, 221, 229, 0.46));
}
.daily-mission-card-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff1a6, #7be0c8);
  color: #4f2c7a;
  font-size: 24px;
  font-weight: 900;
}
.daily-mission-card-copy h3,
.daily-mission-card-copy strong,
.daily-mission-card-copy p {
  margin: 0;
}
.daily-mission-card-copy h3 {
  color: #4f2c7a;
  font-size: 19px;
  line-height: 1.05;
}
.daily-mission-card-copy strong {
  display: block;
  margin-top: 3px;
  color: #74214f;
  font-size: 14px;
  line-height: 1.15;
}
.daily-mission-card-copy p {
  margin-top: 3px;
  color: #235c51;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.18;
}
.daily-mission-card button {
  min-width: 96px;
  min-height: 48px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd86b, #ff8ac0);
  color: #6b2247;
  font:
    900 15px/1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.daily-mission-card button:disabled {
  background: linear-gradient(180deg, #c9f7d8, #7be0c8);
  color: #235c51;
  cursor: default;
}
.daily-mission-card.unavailable button:disabled {
  background: #eadde5;
  color: rgba(107, 34, 71, 0.64);
}
.adventure-surprise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 2px solid rgba(112, 91, 219, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(255, 255, 255, 0.92),
      transparent 22%
    ),
    linear-gradient(180deg, #f4f0ff, #e8fff7);
  box-shadow: 0 8px 20px rgba(80, 65, 140, 0.12);
}
.adventure-surprise h3 {
  margin: 0;
  color: #4f2c7a;
  font-size: 20px;
  line-height: 1.05;
}
.adventure-surprise p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #235c51;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.18;
  text-overflow: ellipsis;
}
.adventure-surprise button {
  min-width: 96px;
  min-height: 48px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd86b, #ff8ac0);
  color: #6b2247;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 4px 0 rgba(176, 53, 121, 0.16);
}
.adventure-pass {
  min-height: 0;
  padding: 14px;
  border: 2px solid rgba(176, 53, 121, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(255, 255, 255, 0.88),
      transparent 26%
    ),
    linear-gradient(180deg, #fffaf0, #ffe6f2);
  box-shadow: 0 8px 20px rgba(176, 53, 121, 0.12);
}
.adventure-pass.complete {
  border-color: rgba(255, 216, 107, 0.78);
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.92),
      transparent 24%
    ),
    linear-gradient(180deg, #fff7c8, #e8fff7);
}
.adventure-pass-top {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.adventure-pass-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffd86b, #ff8ac0);
  color: #6b2247;
  font-size: 26px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.56);
}
.adventure-pass-copy h3 {
  margin: 0;
  color: #8a2f64;
  font-size: 21px;
  line-height: 1.05;
}
.adventure-pass-copy p {
  margin: 3px 0 0;
  color: #6b2247;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.adventure-pass-progress {
  min-width: 76px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #237c5f;
  font:
    900 12px/1.05 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  text-align: center;
  white-space: normal;
}
.adventure-pass-bar {
  height: 9px;
  margin: 10px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(176, 53, 121, 0.12);
}
.adventure-pass-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8ac0, #ffd86b, #7be0c8);
  transition: width 0.24s ease;
}
.adventure-pass-steps {
  display: grid;
  gap: 7px;
}
.adventure-pass-note {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 2px dashed rgba(176, 53, 121, 0.24);
  border-radius: 12px;
  background: rgba(255, 248, 238, 0.76);
  color: #6b2247;
  font:
    900 13px/1.25 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
}
.adventure-pass-note.needs-attention {
  border-color: rgba(176, 53, 121, 0.34);
  background: rgba(255, 248, 238, 0.92);
}
.adventure-pass-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}
.adventure-pass-step.done {
  background: rgba(123, 224, 200, 0.22);
}
.adventure-pass-step.unavailable {
  background: rgba(234, 221, 229, 0.5);
}
.adventure-pass-step.unavailable .adventure-pass-step-copy small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.adventure-pass-step.unavailable .adventure-pass-check {
  background: rgba(107, 34, 71, 0.12);
  color: rgba(107, 34, 71, 0.62);
}
.adventure-pass-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 216, 107, 0.34);
  color: #8a2f64;
  font-weight: 900;
}
.adventure-pass-step-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.adventure-pass-step-copy strong {
  overflow: hidden;
  color: #74214f;
  font-size: 14px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adventure-pass-step-copy small {
  overflow: hidden;
  color: #6b2247;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0.78;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adventure-pass-step button {
  min-width: 80px;
  min-height: 44px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #7be0c8, #42c39d);
  color: #174f46;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 3px 0 rgba(24, 122, 94, 0.18);
}
.adventure-pass-step button:disabled {
  cursor: default;
  opacity: 0.58;
}
.adventure-pass-reward {
  margin-top: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 216, 107, 0.22);
  color: #7a3f00;
  font:
    900 12px/1.15 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  text-align: center;
}
.adventure-reward {
  position: fixed;
  inset: 0;
  z-index: 720;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "Georgia", serif;
}
.adventure-reward.open {
  display: flex;
  animation: story-fade 0.22s ease;
}
.adventure-reward-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 34%,
      rgba(255, 216, 107, 0.42),
      transparent 34%
    ),
    rgba(42, 18, 62, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.adventure-reward-card {
  position: relative;
  width: min(420px, calc(100vw - 28px));
  padding: 24px;
  border: 5px solid #ffd86b;
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(255, 255, 255, 0.9),
      transparent 25%
    ),
    linear-gradient(180deg, #fff7c8, #ffe6f2);
  color: #6b2247;
  text-align: center;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.44),
    0 0 56px rgba(255, 216, 107, 0.52);
}
.adventure-reward-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 10px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffd86b, #ff8ac0);
  color: #6b2247;
  font-size: 42px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.62),
    0 10px 24px rgba(176, 53, 121, 0.26);
}
.adventure-reward-kicker {
  color: #8a2f64;
  font:
    900 12px/1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.adventure-reward-card h2 {
  margin: 8px 0 6px;
  color: #b03579;
  font-size: 34px;
  line-height: 1;
}
.adventure-reward-card p {
  margin: 0 auto 16px;
  max-width: 320px;
  color: #6b2247;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}
.adventure-reward-card button {
  min-width: 150px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #7be0c8, #42c39d);
  color: #174f46;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(24, 122, 94, 0.2);
}
.hud-toggle:focus-visible,
.adventure-line:focus-visible,
.game-center-tabs button:focus-visible,
.game-center-item button:focus-visible,
.mini-world-feature-controls button:focus-visible,
.journal-recent-row button:focus-visible,
.adventure-surprise button:focus-visible,
.adventure-pass-step button:focus-visible,
.adventure-reward-card button:focus-visible {
  outline: 3px solid #7be0c8;
  outline-offset: 3px;
}
.game-center-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 10px;
  border: 2px solid rgba(176, 53, 121, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 7px 16px rgba(107, 34, 71, 0.1);
}
.game-center-item.complete {
  background: linear-gradient(
    180deg,
    rgba(232, 255, 242, 0.92),
    rgba(255, 255, 255, 0.8)
  );
  border-color: rgba(35, 130, 74, 0.28);
}
.game-center-item.unavailable {
  border-color: rgba(107, 34, 71, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82),
    rgba(234, 221, 229, 0.42)
  );
}
.game-center-item.unavailable .game-center-icon {
  filter: grayscale(0.35);
  opacity: 0.72;
}
.game-center-item.world-card {
  min-height: 104px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.9) 0 54%,
      rgba(255, 255, 255, 0.64)
    ),
    var(--world-thumb) center / cover no-repeat;
  border-color: rgba(255, 216, 107, 0.42);
}
.game-center-item.world-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 216, 107, 0.14)
  );
  pointer-events: none;
}
.game-center-item.world-card.unavailable {
  border-color: rgba(107, 34, 71, 0.2);
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.94) 0 58%,
      rgba(234, 221, 229, 0.72)
    ),
    var(--world-thumb) center / cover no-repeat;
}
.game-center-item.carriage-ride-card {
  grid-column: 1 / -1;
  min-height: 92px;
  border-color: rgba(255, 184, 77, 0.46);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 222, 0.74)),
    linear-gradient(135deg, #ffe6a3, #ffd6e8 48%, #d7f7ff);
}
.game-center-item.carriage-ride-card .game-center-icon {
  background: linear-gradient(180deg, #ffe087, #da6e38);
}
.game-center-item.complete::after {
  content: "✓";
  position: absolute;
  top: -8px;
  left: -8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #7be0c8;
  color: #173f35;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(23, 63, 53, 0.22);
}
.game-center-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff1a6, #ff8ac0);
  color: #fff;
  font-size: 26px;
  text-shadow: 0 2px 0 rgba(107, 34, 71, 0.24);
}
.game-center-item.book .game-center-icon {
  background: linear-gradient(180deg, #fff8ee, #ffd86b);
}
.bookshelf-selector {
  display: block;
  align-self: start;
  min-height: 360px;
  width: 100%;
}
.game-center.bookshelf-mode .bookshelf-selector {
  width: min(960px, 100%);
  min-height: 0;
  height: auto;
}
.game-center.bookshelf-mode .bookshelf-scene {
  min-height: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 auto;
}
.game-center.bookshelf-mode .bookshelf-scene img {
  min-height: 0;
  height: 100%;
}
.bookshelf-section-title {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px 6px;
  border-radius: 999px;
  background: #6b2247;
  color: #fff7fb;
  font:
    900 14px/1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  box-shadow: 0 6px 14px rgba(107, 34, 71, 0.18);
}
.bookshelf-overview {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  margin: auto;
  align-content: center;
}
.bookshelf-overview-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.bookshelf-overview-card .bookshelf-section-title {
  margin: 0 0 7px;
}
.bookshelf-overview-card:focus-visible {
  outline: 3px solid #7be0c8;
  outline-offset: 4px;
  border-radius: 14px;
}
.bookshelf-overview-card:hover .bookshelf-overview-image,
.bookshelf-overview-card:focus-visible .bookshelf-overview-image {
  filter: saturate(1.08) brightness(1.04);
  outline: 3px solid rgba(255, 216, 107, 0.9);
  outline-offset: 3px;
}
.bookshelf-overview-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 4px solid rgba(255, 216, 107, 0.62);
  border-radius: 12px;
  background: #311b3f;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.22),
    0 18px 34px rgba(74, 28, 82, 0.16);
}
.bookshelf-overview-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bookshelf-picker-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.bookshelf-picker-head .bookshelf-section-title {
  margin-bottom: 0;
}
.bookshelf-back {
  min-height: 34px;
  padding: 6px 12px;
  border: 2px solid rgba(176, 53, 121, 0.34);
  border-radius: 999px;
  background: #fff8ee;
  color: #6b2247;
  font:
    900 13px/1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  cursor: pointer;
}
.bookshelf-scene {
  position: relative;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  border: 4px solid rgba(255, 216, 107, 0.62);
  border-radius: 12px;
  background: #311b3f;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.22),
    0 18px 34px rgba(74, 28, 82, 0.22);
}
.bookshelf-scene img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.bookshelf-hotspots {
  position: absolute;
  inset: 0;
}
.bookshelf-book {
  position: absolute;
  top: var(--slot-top, 47%);
  left: var(--slot-left, 27.9%);
  width: max(var(--slot-width, 8.8%), 44px);
  height: max(var(--slot-height, 29%), 44px);
  border: 0;
  border-radius: 10px 10px 7px 7px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 100%;
  transition:
    transform 0.28s cubic-bezier(0.18, 0.82, 0.24, 1),
    filter 0.18s ease,
    box-shadow 0.18s ease;
}
.bookshelf-book.selected,
.bookshelf-book:focus-visible,
.bookshelf-book:hover {
  outline: 3px solid rgba(255, 216, 107, 0.92);
  outline-offset: 3px;
  filter: saturate(1.14) brightness(1.06);
}
.bookshelf-book.selected {
  z-index: 2;
}
.bookshelf-book.pulled {
  z-index: 2;
  transform: translate3d(0, -22px, 0) scale(1.1) rotate(-2deg);
  animation: bookshelf-pull 0.62s cubic-bezier(0.16, 0.84, 0.24, 1);
}
.bookshelf-book.read::after {
  content: "✓";
  position: absolute;
  right: 10%;
  bottom: 3%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #7be0c8;
  color: #173f35;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(23, 63, 53, 0.22);
}
.bookshelf-book-label {
  position: absolute;
  left: 50%;
  bottom: -24px;
  max-width: 130px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.94);
  color: #6b2247;
  font:
    900 12px/1 "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
  pointer-events: none;
}
.bookshelf-book.selected .bookshelf-book-label,
.bookshelf-book:focus-visible .bookshelf-book-label,
.bookshelf-book:hover .bookshelf-book-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@keyframes bookshelf-pull {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  62% {
    transform: translate3d(0, -30px, 0) scale(1.13) rotate(-3deg);
  }
  100% {
    transform: translate3d(0, -22px, 0) scale(1.1) rotate(-2deg);
  }
}
@media (max-width: 760px) {
  .mini-world-feature {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
  }
  .mini-world-feature-visual {
    min-height: 132px;
  }
  .mini-world-feature-copy h3 {
    font-size: 23px;
  }
  .mini-world-feature-controls {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }
  .mini-world-play {
    width: 100%;
  }
  .bookshelf-selector {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .bookshelf-scene,
  .bookshelf-scene img {
    min-height: 250px;
  }
  .bookshelf-book {
    top: var(--slot-top, 47%);
    height: max(var(--slot-height, 29%), 44px);
    width: max(var(--slot-width, 8.8%), 44px);
  }
}
.game-center-copy h3 {
  margin: 0 0 3px;
  color: #8a2f64;
  font-size: 17px;
  line-height: 1.08;
}
.game-center-copy p {
  margin: 0;
  color: #6b2247;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
}
.game-center-copy small,
.game-center-brain {
  display: block;
  margin-top: 5px;
  color: #235c51;
  font:
    800 11px/1.22 "Trebuchet MS",
    Arial,
    sans-serif;
}
.game-center-grade3 {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(58, 124, 111, 0.2);
  border-radius: 8px;
  background: rgba(123, 224, 200, 0.2);
  color: #174f46;
  font:
    900 11px/1.2 "Trebuchet MS",
    Arial,
    sans-serif;
  white-space: normal;
}
.game-center-empty {
  grid-column: 1 / -1;
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 2px dashed rgba(176, 53, 121, 0.22);
  border-radius: 12px;
  background: rgba(255, 248, 238, 0.72);
  color: #6b2247;
  font:
    800 14px/1.3 "Trebuchet MS",
    Arial,
    sans-serif;
  text-align: center;
}
.game-center-item button {
  min-width: 82px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #7be0c8, #37b995);
  color: #173f35;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(23, 63, 53, 0.22);
}
.game-center-item button:disabled {
  background: #eadde5;
  color: rgba(107, 34, 71, 0.62);
  cursor: not-allowed;
  box-shadow: none;
}
.game-center-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7c8, #ffe6f2);
  color: #7a3f00;
  font-weight: 900;
  text-align: center;
}
.game-center-item button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(23, 63, 53, 0.22);
}
@keyframes slot-flash {
  0% {
    box-shadow: 0 0 14px rgba(255, 216, 107, 0.7);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 216, 107, 1);
    transform: scale(1.15);
  }
  100% {
    box-shadow: 0 0 14px rgba(255, 216, 107, 0.7);
  }
}
