/* ------------------------------
   Base design system
------------------------------ */

:root {
  --background: #f6f0ff;
  --paper: #fffdf9;
  --pink: #ffd8e3;
  --pink-dark: #f1a9bf;
  --blue: #ccecff;
  --blue-dark: #89cce8;
  --mint: #d9f3df;
  --purple: #e5dcff;
  --yellow: #fff0bd;
  --navy: #18335f;
  --text: #24324a;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(44, 55, 95, 0.12);
  --small-shadow: 0 7px 16px rgba(44, 55, 95, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 14%, #ffe2ec 0 8%, transparent 9%),
    radial-gradient(circle at 92% 8%, #d9efff 0 9%, transparent 10%),
    radial-gradient(circle at 88% 88%, #e8ddff 0 10%, transparent 11%),
    var(--background);
  font-family: "Nunito", Arial, sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ------------------------------
   Header and navigation
------------------------------ */

.site-header {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 253, 249, 0.94);
  border: 2px solid var(--navy);
  border-radius: 24px;
  box-shadow: var(--small-shadow);
}

.site-logo {
  flex-shrink: 0;
  color: var(--navy);
  font-family: "Fredoka", sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--navy);
  font-family: "Fredoka", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--pink);
  transform: translateY(-2px);
}

.main-nav a.active {
  color: var(--white);
  background: var(--navy);
}

/* ------------------------------
   Main layout
------------------------------ */

.page-container {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 70px;
}

.hero {
  min-height: 500px;
  padding: clamp(30px, 6vw, 70px);
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(255, 216, 227, 0.55),
      rgba(204, 236, 255, 0.55)
    ),
    var(--paper);
  border: 2px solid var(--navy);
  border-radius: 46px 22px 46px 22px;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  width: 180px;
  height: 180px;
  position: absolute;
  right: -55px;
  bottom: -65px;
  border: 2px dashed rgba(24, 51, 95, 0.2);
  border-radius: 50%;
}

.mascot-area {
  min-height: 330px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background: rgba(255, 255, 255, 0.58);
  border: 2px dashed rgba(24, 51, 95, 0.3);
  border-radius: 48% 48% 30px 30px;
}

.mascot-image {
  width: min(100%, 330px);
  margin: 0 auto;
  object-fit: contain;
}

.speech-bubble {
  max-width: 230px;
  padding: 15px 18px;
  position: absolute;
  top: 20px;
  right: -12px;
  z-index: 2;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 22px 22px 22px 6px;
  box-shadow: var(--small-shadow);
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  text-align: center;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: #47628e;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
  font-family: "Fredoka", sans-serif;
  line-height: 1.15;
}

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 6vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.hero-introduction {
  max-width: 650px;
  margin: 0 0 30px;
  font-size: 1.08rem;
}

.primary-button {
  display: inline-block;
  padding: 13px 22px;
  color: var(--white);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  box-shadow: var(--small-shadow);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  color: var(--navy);
  background: var(--pink);
  transform: translateY(-3px);
}

/* ------------------------------
   Explore cards
------------------------------ */

.explore-section {
  padding-top: 85px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 30px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.room-card {
  min-height: 310px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--navy);
  box-shadow: var(--small-shadow);
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.room-card::after {
  content: "";
  width: 95px;
  height: 95px;
  position: absolute;
  right: -28px;
  bottom: -30px;
  border: 2px dashed rgba(24, 51, 95, 0.26);
  border-radius: 50%;
}

.room-card:hover,
.room-card:focus-visible {
  transform: translateY(-7px);
  box-shadow: 0 18px 32px rgba(44, 55, 95, 0.18);
}

.room-card p {
  margin-top: 0;
}

.room-number {
  margin-bottom: 30px;
  color: rgba(24, 51, 95, 0.55);
  font-family: "Fredoka", sans-serif;
  font-size: 0.9rem;
}

.room-label {
  margin-bottom: 8px;
  color: #47628e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-link {
  margin-top: auto;
  padding-top: 24px;
  color: var(--navy);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
}

.mood-card {
  grid-column: span 3;
  background: var(--pink);
  border-radius: 40px 18px 40px 18px;
}

.shelf-card {
  grid-column: span 3;
  background: var(--blue);
  border-radius: 18px 40px 18px 40px;
}

.cosplay-card {
  grid-column: span 2;
  background: var(--purple);
  border-radius: 35px 18px;
}

.gallery-card {
  grid-column: span 2;
  background: var(--yellow);
  border-radius: 18px 35px;
}

.about-card {
  grid-column: span 2;
  background: var(--mint);
  border-radius: 35px 35px 18px 18px;
}

/* ------------------------------
   Footer
------------------------------ */

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 30px;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #52627c;
  border-top: 1px solid rgba(24, 51, 95, 0.25);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--navy);
  font-weight: 700;
}

/* ------------------------------
   Tablet and mobile
------------------------------ */

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .mascot-area {
    width: min(100%, 500px);
    margin: 0 auto;
  }

  .mood-card,
  .shelf-card {
    grid-column: span 6;
  }

  .cosplay-card,
  .gallery-card,
  .about-card {
    grid-column: span 3;
  }
}

@media (max-width: 620px) {
  .site-header,
  .page-container,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    margin-top: 12px;
    padding: 15px;
    border-radius: 20px;
  }

  .site-logo {
    font-size: 1.3rem;
  }

  .main-nav {
    width: 100%;
    gap: 6px;
  }

  .main-nav a {
    padding: 7px 10px;
    font-size: 0.86rem;
  }

  .page-container {
    margin-top: 18px;
  }

  .hero {
    min-height: auto;
    padding: 28px 20px;
    gap: 28px;
    border-radius: 30px 16px;
  }

  .mascot-area {
    min-height: 275px;
  }

  .speech-bubble {
    max-width: 185px;
    right: 4px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(2.4rem, 14vw, 3.6rem);
  }

  .hero-introduction {
    font-size: 1rem;
  }

  .explore-section {
    padding-top: 60px;
  }

  .room-grid {
    display: block;
  }

  .room-card {
    min-height: 275px;
    margin-bottom: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ------------------------------
   About page
------------------------------ */

.about-hero {
  min-height: 520px;
  padding: clamp(30px, 6vw, 70px);
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  align-items: center;
  gap: clamp(35px, 6vw, 80px);
  background:
    linear-gradient(
      135deg,
      rgba(217, 243, 223, 0.72),
      rgba(229, 220, 255, 0.55)
    ),
    var(--paper);
  border: 2px solid var(--navy);
  border-radius: 24px 46px 24px 46px;
  box-shadow: var(--shadow);
}

.about-mascot-panel {
  min-height: 350px;
  padding: 35px 25px 20px;
  display: flex;
  align-items: flex-end;
  position: relative;
  background: rgba(255, 255, 255, 0.58);
  border: 2px dashed rgba(24, 51, 95, 0.3);
  border-radius: 42px;
}

.about-mascot {
  width: min(100%, 330px);
  margin: 0 auto;
}

.about-bubble {
  top: 22px;
  right: -10px;
}

.about-introduction h1 {
  margin-bottom: 20px;
}

.about-lead {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
}

.story-section {
  padding-top: 85px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.story-card {
  padding: 32px;
  border: 2px solid var(--navy);
  border-radius: 30px;
  box-shadow: var(--small-shadow);
}

.story-card p:last-child {
  margin-bottom: 0;
}

.story-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #47628e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-pink {
  background: var(--pink);
  border-radius: 36px 18px 36px 18px;
}

.story-blue {
  background: var(--blue);
  border-radius: 18px 36px 18px 36px;
}

.story-purple {
  background: var(--purple);
  border-radius: 18px 36px;
}

.story-yellow {
  background: var(--yellow);
  border-radius: 36px 18px;
}

.story-mint {
  background: var(--mint);
}

.story-wide {
  grid-column: span 2;
  padding: clamp(32px, 5vw, 54px);
  border-radius: 42px 20px 42px 20px;
}

.visitor-note {
  margin-top: 80px;
  padding: clamp(30px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 24px 46px;
  box-shadow: var(--small-shadow);
}

.visitor-note div {
  max-width: 750px;
}

.visitor-note p:last-child {
  margin-bottom: 0;
}

.contact-section {
  margin-top: 28px;
  padding: clamp(30px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 216, 227, 0.72),
      rgba(204, 236, 255, 0.72)
    ),
    var(--paper);
  border: 2px solid var(--navy);
  border-radius: 46px 22px;
  box-shadow: var(--small-shadow);
}

.contact-section h2 {
  margin-bottom: 8px;
}

.contact-section p {
  margin-bottom: 0;
}

.contact-link {
  padding: 14px 20px;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: var(--pink);
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-mascot-panel {
    width: min(100%, 500px);
    margin: 0 auto;
  }

  .visitor-note,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .about-hero {
    min-height: auto;
    padding: 28px 20px;
    gap: 30px;
    border-radius: 30px 16px;
  }

  .about-mascot-panel {
    min-height: 290px;
  }

  .about-lead {
    font-size: 1.08rem;
  }

  .story-section {
    padding-top: 60px;
  }

  .story-grid {
    display: block;
  }

  .story-card {
    margin-bottom: 18px;
    padding: 26px 22px;
  }

  .story-wide {
    padding: 28px 22px;
  }

  .visitor-note,
  .contact-section {
    margin-top: 24px;
    padding: 28px 22px;
  }

  .contact-link {
    width: 100%;
  }
}


/* ------------------------------
   Mood page
------------------------------ */

.mood-hero {
  min-height: 500px;
  padding: clamp(30px, 6vw, 70px);
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(35px, 6vw, 80px);
  background:
    linear-gradient(
      135deg,
      rgba(255, 216, 227, 0.67),
      rgba(204, 236, 255, 0.62)
    ),
    var(--paper);
  border: 2px solid var(--navy);
  border-radius: 46px 22px 46px 22px;
  box-shadow: var(--shadow);
}

.mood-hero h1 {
  margin-bottom: 22px;
}

.mood-lead {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
}

.mood-mascot-panel {
  min-height: 350px;
  padding: 35px 25px 20px;
  display: flex;
  align-items: flex-end;
  position: relative;
  background: rgba(255, 255, 255, 0.58);
  border: 2px dashed rgba(24, 51, 95, 0.3);
  border-radius: 42px;
}

.mood-mascot {
  width: min(100%, 330px);
  margin: 0 auto;
}

.mood-bubble {
  top: 20px;
  right: -10px;
}

.mood-experience {
  padding-top: 85px;
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(430px, 1.28fr);
  align-items: start;
  gap: 28px;
}

.mood-picker {
  padding: 30px;
  position: sticky;
  top: 24px;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 34px 18px;
  box-shadow: var(--small-shadow);
}

.mood-picker-heading h2 {
  margin-bottom: 25px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.mood-buttons {
  display: grid;
  gap: 12px;
}

.mood-choice {
  width: 100%;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 3px;
  color: var(--text);
  background: var(--background);
  border: 2px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Nunito", Arial, sans-serif;
  text-align: left;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.mood-choice:hover,
.mood-choice:focus-visible {
  border-color: var(--navy);
  transform: translateX(4px);
}

.mood-choice.active {
  background: var(--pink);
  border-color: var(--navy);
}

.mood-choice-number {
  grid-row: span 2;
  padding-top: 2px;
  color: #61779b;
  font-family: "Fredoka", sans-serif;
  font-size: 0.82rem;
}

.mood-choice-title {
  color: var(--navy);
  font-family: "Fredoka", sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
}

.mood-choice-note {
  color: #52627c;
  font-size: 0.87rem;
}

.mood-result {
  overflow: hidden;
  border: 2px solid var(--navy);
  border-radius: 22px 46px;
  box-shadow: var(--shadow);
  transition: background-color 0.25s ease;
}

.mood-result-image-wrap {
  height: 390px;
  overflow: hidden;
  background: var(--navy);
  border-bottom: 2px solid var(--navy);
}

.mood-result-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mood-result-content {
  padding: clamp(30px, 5vw, 52px);
}

.mood-result-label {
  margin: 0 0 9px;
  color: #47628e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mood-result-content h2 {
  margin-bottom: 8px;
}

.mood-result-work {
  margin: 0 0 22px;
  color: var(--navy);
  font-family: "Fredoka", sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.image-credit {
  margin: 28px 0 0;
  padding-top: 18px;
  color: #64718a;
  border-top: 1px solid rgba(24, 51, 95, 0.22);
  font-size: 0.8rem;
}

.result-comfort {
  background:
    linear-gradient(
      135deg,
      rgba(255, 216, 227, 0.74),
      rgba(229, 220, 255, 0.76)
    ),
    var(--paper);
}

.result-company {
  background:
    linear-gradient(
      135deg,
      rgba(204, 236, 255, 0.82),
      rgba(217, 243, 223, 0.72)
    ),
    var(--paper);
}

.result-nostalgia {
  background:
    linear-gradient(
      135deg,
      rgba(255, 240, 189, 0.82),
      rgba(255, 216, 227, 0.68)
    ),
    var(--paper);
}

.result-hope {
  background:
    linear-gradient(
      135deg,
      rgba(217, 243, 223, 0.84),
      rgba(204, 236, 255, 0.74)
    ),
    var(--paper);
}

.mood-reflection {
  margin-top: 80px;
  padding: clamp(32px, 5vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 44px 20px;
  box-shadow: var(--small-shadow);
}

.mood-reflection div {
  max-width: 760px;
}

.mood-reflection p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .mood-hero {
    grid-template-columns: 1fr;
  }

  .mood-mascot-panel {
    width: min(100%, 500px);
    margin: 0 auto;
  }

  .mood-experience {
    grid-template-columns: 1fr;
  }

  .mood-picker {
    position: static;
  }

  .mood-reflection {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .mood-hero {
    min-height: auto;
    padding: 28px 20px;
    gap: 30px;
    border-radius: 30px 16px;
  }

  .mood-mascot-panel {
    min-height: 290px;
  }

  .mood-lead {
    font-size: 1.08rem;
  }

  .mood-experience {
    padding-top: 60px;
    gap: 20px;
  }

  .mood-picker {
    padding: 25px 20px;
  }

  .mood-choice {
    padding: 16px 14px;
  }

  .mood-result-image-wrap {
    height: 245px;
  }

  .mood-result-content {
    padding: 28px 22px;
  }

  .mood-reflection {
    margin-top: 24px;
    padding: 28px 22px;
  }
}


/* ------------------------------
   Shelf page
------------------------------ */

.shelf-hero {
  min-height: 520px;
  padding: clamp(30px, 6vw, 70px);
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  align-items: center;
  gap: clamp(35px, 6vw, 80px);
  background:
    linear-gradient(
      135deg,
      rgba(204, 236, 255, 0.68),
      rgba(255, 240, 189, 0.56)
    ),
    var(--paper);
  border: 2px solid var(--navy);
  border-radius: 24px 46px 24px 46px;
  box-shadow: var(--shadow);
}

.shelf-mascot-panel {
  min-height: 350px;
  padding: 35px 25px 20px;
  display: flex;
  align-items: flex-end;
  position: relative;
  background: rgba(255, 255, 255, 0.58);
  border: 2px dashed rgba(24, 51, 95, 0.3);
  border-radius: 42px;
}

.shelf-mascot {
  width: min(100%, 330px);
  margin: 0 auto;
}

.shelf-bubble {
  top: 22px;
  right: -10px;
}

.shelf-hero h1 {
  margin-bottom: 22px;
}

.shelf-lead {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
}

.hold-section {
  margin-top: 80px;
  padding: clamp(34px, 6vw, 62px);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(35px, 6vw, 80px);
  background: var(--mint);
  border: 2px solid var(--navy);
  border-radius: 44px 20px 44px 20px;
  box-shadow: var(--small-shadow);
}

.hold-heading h2 {
  margin-bottom: 0;
}

.hold-text {
  font-size: 1.06rem;
}

.hold-text p:first-child {
  margin-top: 0;
}

.hold-text p:last-child {
  margin-bottom: 0;
}

.collection-section {
  padding-top: 85px;
}

.collection-list {
  display: grid;
  gap: 34px;
}

.collection-entry {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(380px, 1fr);
  overflow: hidden;
  border: 2px solid var(--navy);
  box-shadow: var(--shadow);
}

.collection-image-frame {
  min-height: 480px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.65);
  border-right: 2px solid var(--navy);
}

.collection-image {
  width: 100%;
  flex: 1;
  min-height: 360px;
  object-fit: cover;
  border: 2px solid var(--navy);
  border-radius: 24px;
}

.collection-credit {
  margin: 15px 4px 0;
  color: #64718a;
  font-size: 0.78rem;
}

.collection-story {
  padding: clamp(32px, 5vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.collection-number {
  margin: 0 0 4px;
  color: #61779b;
  font-family: "Fredoka", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
}

.collection-category {
  margin: 0 0 18px;
  color: #47628e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.collection-story h3 {
  margin-bottom: 20px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

.collection-story p:last-child {
  margin-bottom: 0;
}

.entry-furina {
  background:
    linear-gradient(
      135deg,
      rgba(204, 236, 255, 0.82),
      rgba(229, 220, 255, 0.78)
    ),
    var(--paper);
  border-radius: 44px 20px;
}

.entry-columbina {
  background:
    linear-gradient(
      135deg,
      rgba(229, 220, 255, 0.84),
      rgba(255, 216, 227, 0.72)
    ),
    var(--paper);
  border-radius: 20px 44px;
}

.entry-books {
  background:
    linear-gradient(
      135deg,
      rgba(255, 240, 189, 0.83),
      rgba(255, 253, 249, 0.86)
    ),
    var(--paper);
  border-radius: 44px 20px 44px 20px;
}

.entry-gongsunli {
  background:
    linear-gradient(
      135deg,
      rgba(217, 243, 223, 0.8),
      rgba(204, 236, 255, 0.78)
    ),
    var(--paper);
  border-radius: 20px 44px 20px 44px;
}

/* Alternate image and text positions */

.collection-entry:nth-child(even) .collection-image-frame {
  grid-column: 2;
  grid-row: 1;
  border-right: 0;
  border-left: 2px solid var(--navy);
}

.collection-entry:nth-child(even) .collection-story {
  grid-column: 1;
  grid-row: 1;
}

.collecting-reflection {
  margin-top: 80px;
  padding: clamp(32px, 5vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 44px 20px;
  box-shadow: var(--small-shadow);
}

.collecting-reflection div {
  max-width: 760px;
}

.collecting-reflection p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .shelf-hero {
    grid-template-columns: 1fr;
  }

  .shelf-mascot-panel {
    width: min(100%, 500px);
    margin: 0 auto;
  }

  .hold-section {
    grid-template-columns: 1fr;
  }

  .collection-entry {
    grid-template-columns: 1fr;
  }

  .collection-image-frame,
  .collection-entry:nth-child(even) .collection-image-frame {
    grid-column: 1;
    grid-row: 1;
    min-height: auto;
    border-right: 0;
    border-left: 0;
    border-bottom: 2px solid var(--navy);
  }

  .collection-story,
  .collection-entry:nth-child(even) .collection-story {
    grid-column: 1;
    grid-row: 2;
  }

  .collecting-reflection {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .shelf-hero {
    min-height: auto;
    padding: 28px 20px;
    gap: 30px;
    border-radius: 30px 16px;
  }

  .shelf-mascot-panel {
    min-height: 290px;
  }

  .shelf-lead {
    font-size: 1.08rem;
  }

  .hold-section {
    margin-top: 24px;
    padding: 28px 22px;
    gap: 20px;
  }

  .collection-section {
    padding-top: 60px;
  }

  .collection-list {
    gap: 22px;
  }

  .collection-entry {
    min-height: auto;
    border-radius: 30px 16px;
  }

  .collection-image-frame {
    padding: 14px;
  }

  .collection-image {
    min-height: 250px;
    max-height: 420px;
  }

  .collection-story {
    padding: 30px 22px;
  }

  .collection-story h3 {
    font-size: 2rem;
  }

  .collecting-reflection {
    margin-top: 24px;
    padding: 28px 22px;
  }
}


/* ==================================================
   COSPLAY PAGE
   ================================================== */

.cosplay-page .page-container {
  display: flex;
  flex-direction: column;
  gap: 72px;
}


/* ---------- Hero section ---------- */

.cosplay-page .cosplay-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;

  padding: 64px;
  border: 2px solid var(--navy, #18335f);
  border-radius: 32px;

  background:
    radial-gradient(circle at 12% 16%, #ffd8e3 0 10%, transparent 31%),
    radial-gradient(circle at 92% 12%, #ccecff 0 9%, transparent 30%),
    linear-gradient(135deg, #fff9fa, #f0f2ff);

  box-shadow: var(--shadow, 0 12px 30px rgba(44, 55, 95, 0.12));
}

.cosplay-page .cosplay-hero-image {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 430px;
  padding: 36px;

  border: 2px dashed rgba(24, 51, 95, 0.25);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
}

.cosplay-page .cosplay-hero-image img {
  width: min(100%, 360px);
  height: auto;
}

.cosplay-page .cosplay-hero-image .speech-bubble {
  position: absolute;
  top: 28px;
  right: 20px;

  max-width: 250px;
  margin: 0;
  padding: 16px 20px;

  border: 2px solid var(--navy, #18335f);
  border-radius: 20px;
  background: #fffdf9;

  color: var(--navy, #18335f);
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;

  box-shadow: 0 8px 18px rgba(44, 55, 95, 0.1);
}

.cosplay-page .cosplay-hero-copy h1 {
  max-width: 720px;
  margin: 14px 0 24px;

  color: var(--navy, #18335f);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  font-weight: 600;
  line-height: 1.03;
}

.cosplay-page .cosplay-hero-copy .lead {
  margin-bottom: 18px;

  color: var(--navy, #18335f);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.7;
}

.cosplay-page .cosplay-hero-copy > p:not(.eyebrow):not(.lead) {
  max-width: 700px;
  margin-bottom: 26px;
}


/* ---------- Shared small headings ---------- */

.cosplay-page .eyebrow {
  margin: 0;

  color: #48689e;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ---------- Why I cosplay ---------- */

.cosplay-page .cosplay-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 58px;

  padding: 52px 58px;
  border: 2px solid var(--navy, #18335f);
  border-radius: 30px;

  background: linear-gradient(135deg, #daf5e3, #e8f5ff);
  box-shadow: var(--small-shadow, 0 7px 16px rgba(44, 55, 95, 0.1));
}

.cosplay-page .cosplay-intro h2 {
  max-width: 500px;
  margin: 14px 0 0;

  color: var(--navy, #18335f);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  font-weight: 600;
  line-height: 1.12;
}

.cosplay-page .cosplay-intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.cosplay-page .cosplay-intro-text p {
  margin: 0;
}


/* ---------- Collection heading ---------- */

.cosplay-page .cosplay-collection {
  scroll-margin-top: 30px;
}

.cosplay-page .cosplay-section-title {
  max-width: 850px;
  margin: 14px 0 38px;

  color: var(--navy, #18335f);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.8rem, 4.8vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
}


/* ---------- Individual cosplay stories ---------- */

.cosplay-page .cosplay-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  margin-bottom: 34px;
  overflow: hidden;

  border: 2px solid var(--navy, #18335f);
  border-radius: 30px;

  box-shadow: var(--small-shadow, 0 7px 16px rgba(44, 55, 95, 0.1));
}

.cosplay-page .cosplay-story-lappland {
  background: linear-gradient(135deg, #eff4ff, #e8e2ff);
}

.cosplay-page .cosplay-story-heino {
  background: linear-gradient(135deg, #ffe1eb, #e5f2ff);
}

.cosplay-page .cosplay-story-furina {
  background: linear-gradient(135deg, #e5f6ff, #fff2d8);
}

.cosplay-page .cosplay-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 56px;
}

.cosplay-page .object-number {
  margin: 0 0 6px;

  color: #6880aa;
  font-size: 0.82rem;
  font-weight: 700;
}

.cosplay-page .cosplay-character {
  margin: 0 0 22px;

  color: #49689c;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cosplay-page .cosplay-story h3 {
  margin: 0 0 28px;

  color: var(--navy, #18335f);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
}

.cosplay-page .cosplay-story-copy p:not(.object-number):not(.cosplay-character) {
  margin: 0 0 18px;
}

.cosplay-page .cosplay-story-copy p:last-child {
  margin-bottom: 0;
}


/* ---------- Images and captions ---------- */

.cosplay-page .cosplay-photo {
  display: flex;
  flex-direction: column;

  min-width: 0;
  margin: 0;
  padding: 20px;

  background: rgba(255, 255, 255, 0.38);
}

.cosplay-page .cosplay-photo img {
  width: 100%;
  height: auto;

  border: 2px solid var(--navy, #18335f);
  border-radius: 22px;

  object-fit: cover;
}

.cosplay-page .cosplay-story-lappland .cosplay-photo {
  justify-content: center;
}

.cosplay-page .cosplay-story-lappland .cosplay-photo img {
  aspect-ratio: 4 / 3;
  object-position: center;
}

.cosplay-page .cosplay-story-furina .cosplay-photo {
  justify-content: center;
}

.cosplay-page .cosplay-story-furina .cosplay-photo img {
  max-height: 760px;
  object-fit: cover;
  object-position: center top;
}

.cosplay-page .cosplay-photo figcaption {
  margin-top: 12px;

  color: #65738e;
  font-size: 0.78rem;
  line-height: 1.5;
}


/* ---------- Heino two-image group ---------- */

.cosplay-page .heino-photo-group {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;

  min-width: 0;
  background: rgba(255, 255, 255, 0.24);
}

.cosplay-page .heino-photo-group .cosplay-photo {
  border-left: 1px solid rgba(24, 51, 95, 0.28);
}

.cosplay-page .heino-photo-group .cosplay-photo-main {
  border-bottom: 1px solid rgba(24, 51, 95, 0.28);
}

.cosplay-page .heino-photo-group .cosplay-photo-main img {
  aspect-ratio: 4 / 3;
  object-position: center;
}

.cosplay-page .heino-photo-group .cosplay-photo-detail img {
  aspect-ratio: 16 / 9;
  object-position: center 24%;
}


/* ---------- Final reflection ---------- */

.cosplay-page .cosplay-reflection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;

  padding: 54px 58px;
  border: 2px solid var(--navy, #18335f);
  border-radius: 30px;

  background: #fffdf9;
  box-shadow: var(--small-shadow, 0 7px 16px rgba(44, 55, 95, 0.1));
}

.cosplay-page .cosplay-reflection h2 {
  max-width: 820px;
  margin: 14px 0 20px;

  color: var(--navy, #18335f);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
}

.cosplay-page .cosplay-reflection p:not(.eyebrow) {
  max-width: 850px;
  margin: 0;
}


/* ---------- Buttons ---------- */

.cosplay-page .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  min-height: 52px;
  padding: 14px 25px;

  border: 2px solid var(--navy, #18335f);
  border-radius: 999px;

  background: var(--navy, #18335f);
  color: #ffffff;

  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 8px 18px rgba(44, 55, 95, 0.15);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.cosplay-page .primary-button:hover,
.cosplay-page .primary-button:focus-visible {
  transform: translateY(-2px);

  background: #ffffff;
  color: var(--navy, #18335f);

  box-shadow: 0 11px 22px rgba(44, 55, 95, 0.2);
}


/* ==================================================
   COSPLAY PAGE — TABLET AND MOBILE
   ================================================== */

@media (max-width: 860px) {

  .cosplay-page .page-container {
    gap: 42px;
  }

  .cosplay-page .cosplay-hero,
  .cosplay-page .cosplay-intro,
  .cosplay-page .cosplay-story,
  .cosplay-page .cosplay-reflection {
    grid-template-columns: 1fr;
  }

  .cosplay-page .cosplay-hero {
    gap: 34px;
    padding: 30px;
  }

  .cosplay-page .cosplay-hero-image {
    min-height: 360px;
    padding: 26px;
  }

  .cosplay-page .cosplay-hero-image img {
    width: min(100%, 320px);
  }

  .cosplay-page .cosplay-hero-image .speech-bubble {
    top: 18px;
    right: 14px;

    max-width: 210px;
    padding: 13px 16px;

    font-size: 0.9rem;
  }

  .cosplay-page .cosplay-hero-copy h1 {
    font-size: clamp(3rem, 12vw, 4.4rem);
  }

  .cosplay-page .cosplay-intro {
    gap: 28px;
    padding: 34px 30px;
  }

  .cosplay-page .cosplay-story-copy {
    padding: 36px 30px;
  }

  .cosplay-page .cosplay-story-lappland .cosplay-photo,
  .cosplay-page .cosplay-story-furina .cosplay-photo {
    order: 0;
  }

  .cosplay-page .cosplay-story-lappland .cosplay-story-copy,
  .cosplay-page .cosplay-story-furina .cosplay-story-copy {
    order: 1;
  }

  .cosplay-page .cosplay-story-heino .cosplay-story-copy {
    order: 0;
  }

  .cosplay-page .cosplay-story-heino .heino-photo-group {
    order: 1;
  }

  .cosplay-page .heino-photo-group .cosplay-photo {
    border-left: none;
  }

  .cosplay-page .cosplay-reflection {
    gap: 28px;
    padding: 36px 30px;
  }

  .cosplay-page .cosplay-reflection .primary-button {
    justify-self: start;
  }

}


/* ---------- Small phones ---------- */

@media (max-width: 520px) {

  .cosplay-page .cosplay-hero,
  .cosplay-page .cosplay-intro,
  .cosplay-page .cosplay-reflection {
    padding: 26px 22px;
    border-radius: 25px;
  }

  .cosplay-page .cosplay-hero-image {
    min-height: 315px;
    padding: 20px;
    border-radius: 22px;
  }

  .cosplay-page .cosplay-hero-image .speech-bubble {
    max-width: 180px;
    padding: 11px 13px;

    font-size: 0.82rem;
  }

  .cosplay-page .cosplay-hero-copy h1 {
    font-size: 3.15rem;
  }

  .cosplay-page .cosplay-section-title {
    font-size: 2.75rem;
  }

  .cosplay-page .cosplay-story {
    border-radius: 25px;
  }

  .cosplay-page .cosplay-story-copy {
    padding: 30px 24px;
  }

  .cosplay-page .cosplay-story h3 {
    font-size: 2.35rem;
  }

  .cosplay-page .cosplay-photo {
    padding: 14px;
  }

  .cosplay-page .cosplay-photo img {
    border-radius: 18px;
  }

  .cosplay-page .heino-photo-group .cosplay-photo-detail img {
    aspect-ratio: 4 / 3;
  }

  .cosplay-page .primary-button {
    width: 100%;
    text-align: center;
  }

}
/* Fix the Heino mirror photo crop */

.cosplay-page .heino-photo-group .cosplay-photo-detail img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}

@media (max-width: 860px) {
  .cosplay-page .heino-photo-group .cosplay-photo-detail img {
    aspect-ratio: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
  }
}
/* Show the full Heino mirror photo */

.cosplay-page .heino-photo-group .cosplay-photo-detail img {
  width: 100%;
  height: auto;
  max-height: none;

  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;

  background: #ffffff;
}