.player-shell-body .collection-shell,
.player-shell-body .hatch-shell {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: none;
  padding:
    calc(10px + env(safe-area-inset-top))
    var(--game-page-pad-x)
    calc(var(--game-bottom-nav-height) + 16px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 14% -6%, rgba(255, 210, 63, 0.3), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(255, 110, 180, 0.2), transparent 28%),
    linear-gradient(180deg, #251b16 0%, #14100e 56%, #0f0c0b 100%);
  color: var(--game-paper);
  overflow-x: clip;
}

.player-shell-body .collection-shell::before,
.player-shell-body .hatch-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
}

.player-shell-body .collection-shell > *,
.player-shell-body .hatch-shell > * {
  position: relative;
  z-index: 1;
}

.player-page-header,
.player-topbar,
.player-shell-body .collection-header {
  width: min(var(--game-page-max), 100%);
  min-height: 58px;
  margin: 0 auto 12px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 3px solid var(--game-line-dark);
  border-radius: var(--game-radius-lg);
  background: linear-gradient(180deg, #fff3c4 0%, #ffd96b 100%);
  color: var(--game-ink);
  box-shadow: var(--game-shadow-raised);
}

.player-page-header .actions,
.player-topbar .actions,
.player-shell-body .collection-header .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.player-page-header h1,
.player-topbar h1,
.player-shell-body .collection-header h1 {
  margin: 0;
  font-size: clamp(1.35rem, 8vw, 2.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

.player-page-header p,
.player-topbar p {
  margin: 2px 0 0;
  color: var(--game-ink-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.player-shell-body .button,
.player-shell-body button.primary,
.player-shell-body .primary {
  min-height: 42px;
  border: 3px solid var(--game-line-dark);
  border-radius: var(--game-radius-sm);
  background: linear-gradient(180deg, #fff176 0%, var(--game-accent) 100%);
  color: var(--game-ink);
  box-shadow: 0 3px 0 var(--game-line-dark);
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
}

.player-shell-body .button.secondary,
.player-shell-body .secondary {
  background: linear-gradient(180deg, #fff7df 0%, #e9d2a7 100%);
  color: var(--game-ink);
}

.player-shell-body .button:active,
.player-shell-body button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--game-line-dark);
}

.player-shell-body .detail-panel,
.player-shell-body .reveal-card.static,
.player-shell-body .empty-state {
  width: min(var(--game-page-max), 100%);
  margin-left: auto;
  margin-right: auto;
  border: 3px solid var(--game-line-dark);
  border-radius: var(--game-radius-lg);
  background: var(--game-paper);
  color: var(--game-ink);
  box-shadow: var(--game-shadow-raised);
}

.fuggler-life-hero {
  position: relative;
  overflow: hidden;
}

.fuggler-life-hero::after {
  content: "";
  position: absolute;
  inset: auto 10% -18px;
  height: 48px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  filter: blur(10px);
  pointer-events: none;
}

.fuggler-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.fuggler-stat-grid .stat {
  min-height: 70px;
  border: 2px solid var(--game-line-dark);
  border-radius: var(--game-radius-sm);
  background: #fff8dc;
  box-shadow: 0 3px 0 var(--game-line-dark);
}

.fuggler-stat-grid .stat.has-bonus {
  background: linear-gradient(180deg, #fff8dc 0%, #dcffd8 100%);
}

.fuggler-stat-grid .stat small {
  display: block;
  margin-top: 2px;
  color: #35601f;
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.section-heading h2 {
  margin: 0;
  line-height: 0.95;
}

.section-heading span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 2px solid var(--game-line-dark);
  border-radius: 999px;
  background: #fff176;
  color: var(--game-ink);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

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

.fuggler-trait-chip {
  min-height: 94px;
  padding: 10px;
  border: 2px solid var(--game-line-dark);
  border-radius: var(--game-radius-sm);
  background: #fff8dc;
  box-shadow: 0 3px 0 var(--game-line-dark);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.fuggler-trait-chip strong,
.fuggler-trait-chip span {
  display: block;
}

.fuggler-trait-chip img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 1px rgba(45, 31, 21, 0.24));
}

.fuggler-trait-chip strong {
  margin-bottom: 4px;
  font-size: 0.9rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.fuggler-trait-chip span {
  color: var(--game-ink-soft);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.15;
}

.fuggler-trait-chip.rarity-rare,
.fuggler-trait-chip.rarity-very-rare {
  background: linear-gradient(180deg, #fff8dc 0%, #dff1ff 100%);
}

.fuggler-trait-chip.rarity-cursed {
  background: linear-gradient(180deg, #fff0fa 0%, #d9c4ff 100%);
}

.fuggler-life-panel {
  gap: 12px;
}

.fuggler-memory-day {
  display: grid;
  gap: 8px;
}

.fuggler-memory-day h3 {
  margin: 0;
  color: #6c4220;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.fuggler-memory {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 2px solid rgba(45, 31, 21, 0.28);
  border-radius: var(--game-radius-sm);
  background: rgba(255, 255, 255, 0.58);
}

.fuggler-memory-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--game-line-dark);
  border-radius: 50%;
  background: #ffd23f;
  color: var(--game-ink);
  font-size: 0.72rem;
  font-weight: 1000;
}

.fuggler-memory-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.fuggler-memory strong,
.fuggler-memory small {
  display: block;
}

.fuggler-memory strong {
  line-height: 1.05;
}

.fuggler-memory small {
  margin-top: 3px;
  color: var(--game-ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.fugly-index-mini {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 1000;
  color: #522f15;
}

.fugly-index-mini i,
.fugly-index-bar {
  display: block;
  height: 8px;
  border: 2px solid var(--game-line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.fugly-index-mini i::before,
.fugly-index-bar i {
  content: "";
  display: block;
  width: var(--fugly-index, 0%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #49c46d, #ffd23f);
}

.fugly-index-stamp {
  position: absolute;
  right: 6px;
  bottom: 7px;
  z-index: 3;
  width: 76px;
  max-width: 52%;
  transform: rotate(-5deg);
  filter: drop-shadow(0 2px 0 rgba(23, 16, 13, 0.45));
  pointer-events: none;
}

.fugly-index-stamp img {
  display: block;
  width: 100%;
  height: auto;
}

.fugly-index-panel {
  gap: 8px;
  padding: 10px;
}

.fugly-index-hero {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 7px;
  border: 2px solid rgba(45, 31, 21, 0.22);
  border-radius: var(--game-radius-sm);
  background: rgba(255, 248, 220, 0.72);
}

.fugly-index-hero img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px rgba(45, 31, 21, 0.28));
}

.fugly-index-hero span,
.fugly-index-mastered {
  display: inline-block;
  color: #6c4220;
  font-size: 0.75rem;
  font-weight: 1000;
}

.fugly-index-hero h2 {
  margin: 1px 0 5px;
  font-size: clamp(1.05rem, 5.6vw, 1.5rem);
  line-height: 0.95;
}

.fugly-index-mastered {
  align-self: center;
  margin: 0;
  padding: 5px 6px;
  border: 2px solid var(--game-line-dark);
  border-radius: 8px;
  background: #ffd23f;
  color: var(--game-ink);
  font-size: 0.62rem;
  line-height: 1;
  text-align: center;
  box-shadow: 0 2px 0 var(--game-line-dark);
}

.fugly-index-objectives {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.fugly-index-objective {
  position: relative;
  display: block;
  min-height: 62px;
  padding: 0;
  border: 2px solid rgba(45, 31, 21, 0.28);
  border-radius: var(--game-radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 220, 0.7));
  box-shadow: inset 0 -3px 0 rgba(45, 31, 21, 0.08);
}

.fugly-index-objective[open] {
  z-index: 6;
}

.fugly-index-objective.is-complete {
  border-color: rgba(58, 137, 74, 0.62);
  background:
    linear-gradient(180deg, rgba(230, 255, 214, 0.92), rgba(196, 240, 165, 0.82));
}

.fugly-index-objective__summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: minmax(32px, auto) auto;
  gap: 4px 6px;
  align-items: center;
  min-height: 58px;
  padding: 6px;
  cursor: pointer;
  list-style: none;
}

.fugly-index-objective__summary::-webkit-details-marker {
  display: none;
}

.fugly-index-objective__summary:focus-visible {
  outline: 3px solid #57c7ff;
  outline-offset: 2px;
  border-radius: calc(var(--game-radius-sm) - 2px);
}

.fugly-index-objective__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(45, 31, 21, 0.32);
  border-radius: 8px;
  background: rgba(255, 248, 220, 0.84);
  overflow: hidden;
}

.fugly-index-objective__icon img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
}

.fugly-index-objective__body,
.fugly-index-objective strong {
  display: block;
  margin: 0;
  min-width: 0;
}

.fugly-index-objective strong {
  line-height: 0.92;
  text-transform: uppercase;
  font-size: 0.68rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fugly-index-progress {
  grid-column: 2;
  justify-self: start;
  min-width: 48px;
  padding: 2px 6px;
  border: 2px solid var(--game-line-dark);
  border-radius: 999px;
  background: #fff8dc;
  text-align: center;
  font-size: 0.62rem;
  line-height: 1.15;
  font-weight: 1000;
}

.fugly-index-popout {
  position: absolute;
  left: -2px;
  right: -2px;
  top: calc(100% + 4px);
  z-index: 10;
  padding: 8px;
  border: 2px solid var(--game-line-dark);
  border-radius: var(--game-radius-sm);
  background:
    linear-gradient(180deg, #fff8dc, #ffe98d);
  color: var(--game-ink);
  box-shadow: var(--game-shadow-float);
}

.fugly-index-popout::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -8px;
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--game-line-dark);
  border-top: 2px solid var(--game-line-dark);
  background: #fff8dc;
  transform: rotate(45deg);
}

.fugly-index-popout strong,
.fugly-index-popout p,
.fugly-index-popout span {
  position: relative;
  display: block;
  margin: 0;
}

.fugly-index-popout strong {
  font-size: 0.67rem;
  line-height: 1;
  color: #6c4220;
}

.fugly-index-popout p {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.12;
}

.fugly-index-popout span {
  margin-top: 6px;
  font-size: 0.65rem;
  font-weight: 1000;
  color: #6c4220;
}

@media (max-width: 380px) {
  .fugly-index-objectives {
    grid-template-columns: 1fr;
  }

  .fugly-index-objective__summary {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-rows: auto;
  }

  .fugly-index-progress {
    grid-column: 3;
    align-self: center;
  }
}

@media (min-width: 720px) {
  .fugly-index-objectives {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .player-page-header,
  .player-topbar,
  .player-shell-body .collection-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .player-page-header .actions,
  .player-topbar .actions,
  .player-shell-body .collection-header .actions {
    justify-content: start;
  }
}

.bottom-nav.game-nav {
  left: calc(10px + env(safe-area-inset-left));
  right: calc(10px + env(safe-area-inset-right));
  bottom: calc(8px + env(safe-area-inset-bottom));
  min-height: 66px;
  padding: 7px;
  gap: 7px;
  border: 3px solid var(--game-line-dark);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 245, 214, 0.98), rgba(255, 210, 63, 0.95));
  box-shadow: var(--game-shadow-float);
  backdrop-filter: blur(12px);
}

.bottom-nav.game-nav a {
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: 15px;
  color: var(--game-ink);
  font-weight: 1000;
}

.bottom-nav.game-nav .nav-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 0 rgba(23, 16, 13, 0.35));
}

.bottom-nav.game-nav small {
  font-size: 0.66rem;
  text-transform: uppercase;
}

.bottom-nav.game-nav a:hover,
.bottom-nav.game-nav a:focus-visible,
.bottom-nav.game-nav a[aria-current="page"] {
  border-color: var(--game-line-dark);
  background: #fff7df;
  box-shadow: inset 0 -4px 0 rgba(23, 16, 13, 0.12);
}

.account-page .account-card {
  background:
    radial-gradient(circle at 12% 12%, rgba(87, 199, 255, 0.22), transparent 28%),
    var(--game-paper);
}

@media (min-width: 900px) {
  .bottom-nav.game-nav {
    left: 50%;
    right: auto;
    width: min(620px, calc(100vw - 40px));
    transform: translateX(-50%);
  }
}

.scrapbook-body {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 210, 63, 0.28), transparent 28%),
    linear-gradient(180deg, #6a8f58, #f3d47a 22%, #e8c06b);
}

.scrapbook-shell {
  width: min(100%, 720px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 12px calc(92px + env(safe-area-inset-bottom));
  color: var(--game-ink);
}

.scrapbook-cover,
.scrapbook-section,
.scrapbook-summary-strip,
.scrapbook-jumps {
  border: 3px solid var(--game-line-dark);
  box-shadow: 0 5px 0 rgba(23, 16, 13, 0.32);
}

.scrapbook-cover {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px 14px 9px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), transparent 40%),
    #f6e7aa;
  overflow: hidden;
}

.scrapbook-cover__art {
  position: absolute;
  right: -16px;
  bottom: -14px;
  width: 138px;
  max-width: 42%;
  opacity: 0.28;
  pointer-events: none;
}

.scrapbook-cover__avatar {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 3px solid var(--game-line-dark);
  border-radius: 8px;
  background: #fff8dc;
  transform: rotate(-2deg);
}

.scrapbook-avatar.avatar-render {
  width: 70px;
  height: 86px;
}

.scrapbook-title-art {
  display: block;
  width: min(210px, 86%);
  height: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 0 rgba(23, 16, 13, 0.24));
}

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

.scrapbook-kicker,
.scrapbook-heading a,
.scrapbook-title-sticker,
.scrapbook-summary-strip span,
.scrapbook-record span,
.scrapbook-mini-grid span {
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.scrapbook-cover h1 {
  margin: 3px 0 5px;
  font-size: clamp(1.45rem, 9vw, 2.45rem);
  line-height: 0.9;
}

.scrapbook-cover p {
  margin: 0;
  font-weight: 850;
  line-height: 1.15;
}

.scrapbook-title-sticker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 7px;
  border: 2px solid var(--game-line-dark);
  border-radius: 8px;
  background: #ffd23f;
  transform: rotate(1.5deg);
}

.scrapbook-jumps {
  position: sticky;
  top: 6px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin: 10px 0;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 248, 220, 0.96);
}

.scrapbook-jumps a {
  display: grid;
  grid-template-rows: 24px auto;
  place-items: center;
  min-height: 45px;
  border-radius: 999px;
  color: var(--game-ink);
  font-size: 0.66rem;
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
}

.scrapbook-jumps img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.scrapbook-jumps a:focus-visible,
.scrapbook-jumps a:hover {
  background: #ffd23f;
}

.scrapbook-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 8px;
  background: #fff8dc;
}

.scrapbook-summary-strip span,
.scrapbook-summary-strip strong {
  display: block;
  text-align: center;
}

.scrapbook-summary-strip strong {
  font-size: 1.1rem;
}

.scrapbook-section {
  margin: 12px 0;
  padding: 10px;
  border-radius: 8px 13px 7px 11px;
  background:
    repeating-linear-gradient(0deg, rgba(45, 31, 21, 0.035), rgba(45, 31, 21, 0.035) 1px, transparent 1px, transparent 22px),
    #fff4c7;
}

.scrapbook-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.scrapbook-heading h2,
.scrapbook-subhead {
  margin: 0;
  font-size: 1.15rem;
  line-height: 0.95;
}

.scrapbook-heading a,
.scrapbook-mini-grid a {
  color: #5b3014;
  text-decoration: none;
}

.scrapbook-empty {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border: 2px dashed rgba(45, 31, 21, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
  font-weight: 900;
}

.scrapbook-empty img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.scrapbook-photo-grid,
.scrapbook-record-grid,
.scrapbook-mastered-grid,
.scrapbook-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.scrapbook-photo,
.scrapbook-record,
.scrapbook-mastered,
.scrapbook-mini-grid article,
.scrapbook-timeline-note,
.scrapbook-moment {
  border: 2px solid var(--game-line-dark);
  color: var(--game-ink);
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(23, 16, 13, 0.28);
}

.scrapbook-photo,
.scrapbook-record,
.scrapbook-mastered {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 138px;
  padding: 8px;
  border-radius: 7px;
  background: #fffdf1;
  overflow: hidden;
}

.scrapbook-photo::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid rgba(45, 31, 21, 0.16);
  border-radius: 6px;
  pointer-events: none;
}

.scrapbook-photo__stamp,
.scrapbook-record__badge,
.scrapbook-mastered__badge,
.scrapbook-note-stamp {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(23, 16, 13, 0.25));
  pointer-events: none;
}

.scrapbook-photo__stamp {
  right: 3px;
  top: 3px;
  transform: rotate(8deg);
}

.scrapbook-record__badge {
  right: 4px;
  top: 4px;
  opacity: 0.9;
}

.scrapbook-photo:nth-child(odd),
.scrapbook-record:nth-child(3n),
.scrapbook-mastered:nth-child(even) {
  transform: rotate(-1deg);
}

.scrapbook-photo img,
.scrapbook-record img,
.scrapbook-mastered img {
  justify-self: center;
  width: 78px;
  height: 72px;
  object-fit: contain;
}

.scrapbook-photo > img:not(.scrapbook-photo__stamp),
.scrapbook-record > img:not(.scrapbook-record__badge),
.scrapbook-mastered > img:not(.scrapbook-mastered__badge) {
  position: relative;
  z-index: 1;
}

.scrapbook-photo strong,
.scrapbook-record strong,
.scrapbook-mastered strong,
.scrapbook-timeline-note strong,
.scrapbook-moment strong,
.scrapbook-mini-grid strong {
  line-height: 0.98;
  text-transform: uppercase;
}

.scrapbook-photo span,
.scrapbook-photo em,
.scrapbook-mastered span,
.scrapbook-record em,
.scrapbook-mini-grid small {
  font-size: 0.72rem;
  font-weight: 900;
  font-style: normal;
}

.scrapbook-record {
  min-height: 124px;
  background: #fce28b;
}

.scrapbook-record span,
.scrapbook-record strong,
.scrapbook-record em {
  position: relative;
  z-index: 3;
}

.scrapbook-record em {
  justify-self: start;
  padding: 3px 6px;
  border: 2px solid var(--game-line-dark);
  border-radius: 999px;
  background: #fff8dc;
}

.scrapbook-timeline,
.scrapbook-moment-list,
.scrapbook-progress-list,
.scrapbook-chronicle-list {
  display: grid;
  gap: 8px;
}

.scrapbook-timeline-note,
.scrapbook-moment,
.scrapbook-progress-list a,
.scrapbook-chronicle-entry {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--game-ink);
  text-decoration: none;
  overflow: hidden;
}

.scrapbook-chronicle-entry {
  grid-template-columns: auto 44px minmax(0, 1fr);
  align-items: start;
  border: 2px solid rgba(45, 31, 21, 0.22);
  background: #fffaf0;
}

.scrapbook-chronicle-entry time {
  align-self: start;
  min-width: 54px;
  padding: 4px 6px;
  border: 2px solid var(--game-line-dark);
  border-radius: 999px;
  background: #ffe27c;
  font-size: 0.62rem;
  font-weight: 1000;
  text-align: center;
  color: var(--game-ink);
}

.scrapbook-note-stamp {
  right: 5px;
  top: 5px;
  width: 36px;
  height: 36px;
  opacity: 0.9;
}

.scrapbook-timeline-note time {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  font-weight: 1000;
  color: #6c4220;
}

.scrapbook-timeline-note img,
.scrapbook-moment img,
.scrapbook-chronicle-entry img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.scrapbook-chronicle-entry img {
  width: 44px;
  height: 44px;
}

.scrapbook-timeline-note span,
.scrapbook-moment small,
.scrapbook-progress-list span,
.scrapbook-chronicle-entry em {
  font-size: 0.74rem;
  font-weight: 850;
}

.scrapbook-chronicle-entry span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.scrapbook-chronicle-entry small {
  justify-self: start;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(45, 31, 21, 0.12);
  font-size: 0.62rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.scrapbook-chronicle-entry em {
  color: #5f442d;
  font-style: normal;
  line-height: 1.2;
}

.scrapbook-privacy-note {
  margin: 9px 0 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(54, 94, 71, 0.12);
  font-size: 0.72rem;
  font-weight: 850;
  color: #244231;
}

.scrapbook-mastered {
  min-height: 118px;
  background:
    linear-gradient(180deg, rgba(255, 210, 63, 0.76), rgba(255, 248, 220, 0.9));
}

.scrapbook-mastered__badge {
  right: 3px;
  top: 3px;
  width: 46px;
  height: 46px;
}

.scrapbook-subhead {
  margin-top: 12px;
  margin-bottom: 7px;
}

.scrapbook-progress-list a {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 2px solid rgba(45, 31, 21, 0.3);
}

.scrapbook-mini-grid article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px;
  min-height: 78px;
  padding: 8px;
  border-radius: 8px;
  background: #fffdf1;
}

.scrapbook-mini-grid article > img {
  grid-row: span 3;
  width: 38px;
  height: 38px;
  object-fit: contain;
  align-self: start;
}

.scrapbook-mini-grid strong {
  font-size: 1rem;
}

@media (max-width: 360px) {
  .scrapbook-cover {
    grid-template-columns: 1fr;
  }

  .scrapbook-summary-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .scrapbook-record-grid,
  .scrapbook-mini-grid {
    grid-template-columns: 1fr;
  }
}
