@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --cheese-yellow: #fff076;
  --cream: #fff9d8;
  --cream-strong: #fff3a8;
  --winter-blue: #ddefff;
  --winter-blue-deep: #b9daf7;
  --ink: #4a3f2a;
  --muted: #776a46;
  --pink: #ffb7c5;
  --mint: #bdeddc;
  --shadow: rgba(119, 98, 35, 0.22);
  --line: rgba(74, 63, 42, 0.16);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 240, 118, 0.72), transparent 22rem),
    radial-gradient(circle at 78% 16%, rgba(189, 237, 220, 0.58), transparent 18rem),
    linear-gradient(145deg, #fffef3 0%, var(--cream) 45%, var(--winter-blue) 100%);
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(3px);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  width: 11rem;
  height: 11rem;
  left: -3rem;
  bottom: 8rem;
  background: rgba(255, 183, 197, 0.36);
}

.ambient-two {
  width: 8rem;
  height: 8rem;
  right: 6vw;
  top: 6rem;
  background: rgba(255, 240, 118, 0.34);
}

.snowfield span {
  position: fixed;
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(185, 218, 247, 0.22);
  animation: floaty 9s ease-in-out infinite alternate;
  z-index: 0;
}

.snowfield span:nth-child(1) { left: 8%; top: 18%; }
.snowfield span:nth-child(2) { left: 24%; top: 72%; animation-delay: -2s; }
.snowfield span:nth-child(3) { right: 14%; top: 36%; animation-delay: -4s; }
.snowfield span:nth-child(4) { right: 28%; bottom: 14%; animation-delay: -5s; }
.snowfield span:nth-child(5) { left: 52%; top: 9%; animation-delay: -7s; }

@keyframes floaty {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0.4rem, 1rem, 0); }
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, calc(100% - 24px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  place-items: center;
}

.intro {
  text-align: center;
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 10px;
  padding: 7px 13px;
  border: 1px solid rgba(74, 63, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  box-shadow: 0 9px 22px rgba(185, 218, 247, 0.25);
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7.4vw, 5.45rem);
  letter-spacing: -0.08em;
  line-height: 0.95;
  text-shadow: 0 5px 0 rgba(255, 240, 118, 0.82), 0 18px 34px rgba(119, 98, 35, 0.16);
}

.tagline {
  margin: 15px auto 0;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.68;
  color: #5c5035;
}

.tiny-speech {
  display: inline-block;
  margin: 13px 0 0;
  padding: 8px 14px 9px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(74, 63, 42, 0.1);
  color: var(--muted);
  box-shadow: 0 12px 24px rgba(119, 98, 35, 0.12);
}

.fridge-stage {
  display: grid;
  grid-template-columns: minmax(300px, 460px);
  width: min(100%, 460px);
  align-items: center;
  justify-content: center;
  gap: 0;
}

.fridge {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 22px;
  border-radius: 54px 54px 42px 42px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.78) 0%, transparent 22%),
    linear-gradient(150deg, #fffef6 0%, #fff6bd 48%, #edd46a 100%);
  border: 3px solid rgba(74, 63, 42, 0.1);
  box-shadow:
    inset 18px 0 24px rgba(255, 255, 255, 0.76),
    inset -22px -18px 30px rgba(190, 169, 86, 0.23),
    0 30px 62px rgba(88, 78, 39, 0.24);
}

.fridge::before {
  content: "";
  position: absolute;
  inset: 10px 16px auto 34px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(2px);
}

.fridge::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: -12px;
  height: 18px;
  border-radius: 0 0 16px 16px;
  background: rgba(74, 63, 42, 0.2);
  filter: blur(6px);
  z-index: -1;
}

.freezer-door,
.fridge-door {
  position: relative;
  border: 2px solid rgba(74, 63, 42, 0.1);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.55), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 238, 139, 0.18));
  overflow: hidden;
}

.freezer-door {
  height: 116px;
  border-radius: 30px 30px 18px 18px;
  margin-bottom: 10px;
}

.fridge-door {
  min-height: 660px;
  border-radius: 18px 18px 30px 30px;
}

.freezer-door::after,
.fridge-door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent 35%, rgba(255, 255, 255, 0.13));
  pointer-events: none;
}

.brand-badge {
  position: absolute;
  left: 30px;
  top: 31px;
  padding: 10px 16px 11px;
  border-radius: 18px;
  background: rgba(255, 254, 245, 0.86);
  border: 1px solid rgba(74, 63, 42, 0.1);
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 16px rgba(119, 98, 35, 0.1);
}

.handle {
  position: absolute;
  z-index: 3;
  width: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fffdf2, #f3df86 46%, #bda44d 100%);
  border: 1px solid rgba(74, 63, 42, 0.14);
  box-shadow: inset 5px 0 5px rgba(255, 255, 255, 0.64), 0 8px 14px rgba(119, 98, 35, 0.17);
}

.main-handle {
  right: 10px;
  top: 170px;
  width: 13px;
  height: 160px;
  opacity: 0.5;
  z-index: 4;
}

.magnet-card {
  position: absolute;
  z-index: 2;
  width: 132px;
  min-height: 110px;
  padding: 23px 13px 13px;
  border-radius: 7px;
  border: 1px solid rgba(74, 63, 42, 0.11);
  box-shadow: 0 12px 18px rgba(119, 98, 35, 0.16);
  font-size: 0.92rem;
  line-height: 1.45;
}

.magnet-card p {
  margin: 0;
}

.owner-card {
  outline: 1px dashed rgba(74, 63, 42, 0.14);
  outline-offset: -7px;
}

.magnet-card a {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(74, 63, 42, 0.45);
}

.card-label {
  margin-bottom: 8px !important;
  font-size: 0.75rem;
  font-weight: 900;
  color: rgba(74, 63, 42, 0.64);
}

.memo-card {
  left: 40px;
  top: 42px;
  background: #fff78a;
}

.music-card {
  right: 54px;
  top: 106px;
  background: #f9fdff;
}

.bits-card {
  left: 46px;
  top: 168px;
  width: 142px;
  min-height: 100px;
  background: #e8fff5;
}

.user-notes {
  position: absolute;
  left: 22px;
  right: 46px;
  top: 42px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  pointer-events: auto;
}

.user-note {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 106px;
  margin: 0;
  padding: 20px 10px 10px;
  border: 1px solid rgba(74, 63, 42, 0.1);
  border-radius: 8px;
  background: #fffbe4;
  box-shadow: 0 9px 14px rgba(119, 98, 35, 0.14);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.66rem;
  line-height: 1.28;
  text-align: left;
  transform: rotate(var(--tilt, 0deg));
}

.user-note:hover,
.user-note:focus-visible {
  transform: rotate(var(--tilt, 0deg)) translateY(-2px);
  outline: 2px solid rgba(255, 240, 118, 0.78);
  outline-offset: 2px;
}

.user-note::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--pink);
  border: 1px solid rgba(74, 63, 42, 0.14);
}

.user-note-name,
.user-note-text {
  display: block;
  margin: 0;
}

.user-note-name {
  margin-bottom: 4px;
  font-size: 0.58rem;
  font-weight: 900;
  color: rgba(74, 63, 42, 0.62);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-note-text {
  display: -webkit-box;
  color: #4a3f2a;
  word-break: keep-all;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.user-note-date {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  color: rgba(74, 63, 42, 0.52);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.user-note-1 { --tilt: -2.2deg; background: #fff7a6; }
.user-note-2 { --tilt: 1.8deg; background: #f9fdff; }
.user-note-3 { --tilt: -1deg; background: #e8fff5; }
.user-note-4 { --tilt: 2.4deg; background: #ffe7ed; }
.user-note-5 { --tilt: -1.6deg; background: #fffbe4; }
.user-note-6 { --tilt: 1.2deg; background: #edf7ff; }
.user-note-7 { --tilt: -2.8deg; background: #fff7a6; }
.user-note-8 { --tilt: 2deg; background: #e8fff5; }
.user-note-9 { --tilt: -0.8deg; background: #fffbe4; }

.user-note-owner {
  background: #fff078 !important;
  border-color: rgba(74, 63, 42, 0.22);
  box-shadow: 0 9px 14px rgba(119, 98, 35, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.34);
}

.user-note-owner::before {
  background: #ffcf3d;
}

.user-note-owner::after {
  content: "치즈";
  position: absolute;
  right: 6px;
  top: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(74, 63, 42, 0.7);
  font-size: 0.5rem;
  font-weight: 900;
}

.user-note-empty {
  grid-column: span 3;
  min-height: 76px;
  background: rgba(255, 255, 255, 0.64);
  text-align: center;
}

.user-notes-scattered {
  display: block;
  height: 380px;
}

.user-notes-scattered .user-note {
  position: absolute;
  width: 132px;
  min-height: 120px;
  font-size: 0.72rem;
}

.user-notes-scattered .user-note-1 { left: 0; top: 0; }
.user-notes-scattered .user-note-2 { right: 20px; top: 22px; }
.user-notes-scattered .user-note-3 { left: 34px; top: 160px; }
.user-notes-scattered .user-note-4 { right: 48px; top: 220px; }

.note-pager {
  position: absolute;
  z-index: 8;
  right: 46px;
  top: 444px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(74, 63, 42, 0.1);
  box-shadow: 0 9px 15px rgba(119, 98, 35, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  color: rgba(74, 63, 42, 0.68);
}

.note-pager[hidden] {
  display: none;
}

.note-pager button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #fff7a6;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.note-pager button:disabled {
  opacity: 0.42;
  cursor: default;
}

.add-note-button {
  position: absolute;
  z-index: 8;
  right: 30px;
  top: 34px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  transform: rotate(4deg);
  background: #fffef5;
  color: var(--ink);
  box-shadow: 0 10px 18px rgba(119, 98, 35, 0.16), inset 5px 5px 8px rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 1.55rem;
  font-weight: 900;
}

.add-note-button:hover {
  transform: rotate(-2deg) scale(1.04);
}

.note-dialog {
  width: min(360px, calc(100vw - 36px));
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--ink);
}

.note-detail-dialog {
  width: min(320px, calc(100vw - 36px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
}

.note-dialog::backdrop,
.note-detail-dialog::backdrop {
  background: rgba(74, 63, 42, 0.24);
  backdrop-filter: blur(4px);
}

.note-detail-card {
  position: relative;
  min-height: 210px;
  max-height: min(680px, calc(100svh - 42px));
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 12px;
  background: #fff7a6;
  border: 1px solid rgba(74, 63, 42, 0.12);
  box-shadow: 0 24px 44px rgba(74, 63, 42, 0.24);
  transform: rotate(-1.5deg);
}

.note-detail-card h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}

.note-detail-date {
  margin: 0 0 14px;
  color: rgba(74, 63, 42, 0.56);
  font-size: 0.76rem;
  font-weight: 800;
}

.note-detail-card #noteDetailText {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.rich-note-line {
  margin: 0 0 10px;
  white-space: pre-wrap;
}

.rich-note-line a,
.rich-note-link {
  color: #4a3f2a;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed rgba(74, 63, 42, 0.42);
}

.rich-note-spacer {
  height: 10px;
}

.rich-note-youtube {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(74, 63, 42, 0.12);
  box-shadow: 0 12px 22px rgba(74, 63, 42, 0.14);
}

.rich-note-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  margin-top: 14px;
  border-radius: 16px;
  box-shadow: 0 12px 22px rgba(74, 63, 42, 0.14);
}

.rich-note-link {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(74, 63, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.note-form {
  position: relative;
  display: grid;
  gap: 14px;
  max-height: min(560px, calc(100svh - 42px));
  overflow: auto;
  padding: 26px 22px 22px;
  border: 1px solid rgba(74, 63, 42, 0.12);
  border-radius: 26px;
  background: #fff7a6;
  box-shadow: 0 24px 44px rgba(74, 63, 42, 0.24);
}

.note-form h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.04em;
}

.note-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 900;
  color: rgba(74, 63, 42, 0.72);
}

.note-form input,
.note-form textarea {
  width: 100%;
  border: 1px solid rgba(74, 63, 42, 0.16);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
}

.note-form textarea {
  min-height: 94px;
  resize: vertical;
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
}

.submit-note {
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--ink);
  color: #fffef5;
  cursor: pointer;
  font-weight: 900;
}

.form-status {
  min-height: 1.2em;
  margin: -4px 0 0;
  color: #9a4a2b;
  font-size: 0.78rem;
  font-weight: 800;
}

.tilt-left { transform: rotate(-4deg); }
.tilt-right { transform: rotate(5deg); }
.tilt-soft { transform: rotate(-1.8deg); }

.pin {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 13px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(74, 63, 42, 0.16);
  box-shadow: 0 3px 5px rgba(119, 98, 35, 0.18);
}

.dot-yellow { background: var(--cheese-yellow); }
.dot-blue { background: var(--winter-blue-deep); }
.dot-pink { background: var(--pink); }

.cheese-toy {
  position: absolute;
  z-index: 5;
  left: 42px;
  top: 512px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(74, 63, 42, 0.08);
  box-shadow: 0 14px 24px rgba(119, 98, 35, 0.1);
  transform: none;
}

.cheese-magnet {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 0;
  transform: none;
  border: 0;
  border-radius: 31px 34px 28px 36px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  filter: drop-shadow(0 16px 18px rgba(119, 98, 35, 0.22));
  transition: transform 160ms ease, filter 160ms ease;
}

.cheese-emoji {
  display: block;
  font-size: 4.45rem;
  line-height: 1;
  filter:
    drop-shadow(0 10px 8px rgba(119, 98, 35, 0.2))
    saturate(1.08);
  transform: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.cheese-magnet:hover .cheese-emoji {
  transform: scale(1.04);
  filter:
    drop-shadow(0 12px 10px rgba(119, 98, 35, 0.22))
    saturate(1.12);
}

.cheese-magnet:hover {
  filter: drop-shadow(0 18px 20px rgba(119, 98, 35, 0.25)) saturate(1.05) brightness(1.02);
  transform: scale(1.03);
}

.cheese-magnet:active,
.cheese-magnet.is-pressed {
  transform: scale(0.92);
}

.counter-note {
  position: relative;
  z-index: 1;
  width: 216px;
  padding: 14px 16px;
  border-radius: 20px 20px 20px 5px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(74, 63, 42, 0.12);
  box-shadow: 0 13px 24px rgba(119, 98, 35, 0.13);
}

.counter-note[hidden] {
  display: none;
}

.counter-note p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.counter-note p:first-child {
  font-weight: 900;
}

.counter-note p + p {
  margin-top: 8px;
  color: var(--muted);
}

.counter-note p[hidden] + p {
  margin-top: 0;
}

#cheeseLine {
  white-space: nowrap;
}

.fridge-player {
  position: absolute;
  z-index: 6;
  left: 154px;
  top: 596px;
  display: inline-grid;
  grid-template-columns: 27px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 8px;
  width: 212px;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid rgba(74, 63, 42, 0.13);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(221, 239, 255, 0.58));
  color: var(--ink);
  box-shadow: 0 12px 20px rgba(119, 98, 35, 0.14), inset 0 -2px 0 rgba(74, 63, 42, 0.04);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  transform: rotate(2.5deg);
}

.fridge-player::before {
  content: "bgm";
  position: absolute;
  right: 10px;
  top: 4px;
  color: rgba(74, 63, 42, 0.4);
  font-size: 0.46rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fridge-player[hidden] {
  display: none;
}

.player-text {
  display: block;
  min-width: 0;
  padding-right: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-dot {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 10px;
  background: #fff7a6;
  box-shadow: inset 0 -2px 0 rgba(74, 63, 42, 0.08);
  font-size: 1rem;
}

.player-bars {
  display: inline-flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  height: 19px;
  padding-top: 4px;
}

.player-bars i {
  display: block;
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: rgba(74, 63, 42, 0.42);
}

.fridge-player.is-playing {
  background: linear-gradient(145deg, rgba(255, 240, 118, 0.94), rgba(255, 255, 255, 0.78));
  box-shadow: 0 0 0 3px rgba(255, 240, 118, 0.24), 0 12px 20px rgba(119, 98, 35, 0.14);
}

.fridge-player.is-playing .player-bars i {
  animation: bgmBars 720ms ease-in-out infinite alternate;
  background: rgba(74, 63, 42, 0.62);
}

.fridge-player.is-playing .player-bars i:nth-child(2) { animation-delay: -180ms; }
.fridge-player.is-playing .player-bars i:nth-child(3) { animation-delay: -360ms; }

@keyframes bgmBars {
  from { height: 6px; }
  to { height: 17px; }
}

.bgm-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -9999px;
  top: auto;
  opacity: 0.01;
  pointer-events: none;
}

.microcopy {
  display: none;
  left: 46px;
  bottom: 24px;
  z-index: 4;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(74, 63, 42, 0.66);
  font-size: 0.75rem;
}

.side-note {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(74, 63, 42, 0.1);
  box-shadow: 0 18px 36px rgba(119, 98, 35, 0.12);
  backdrop-filter: blur(12px);
}

.side-note h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.side-note ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.62;
}

.side-note li::marker {
  content: "🧀  ";
  font-size: 0.8rem;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 22px, 560px);
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .fridge-stage {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .side-note {
    order: -1;
    padding: 18px 20px;
  }

  .fridge {
    border-radius: 34px;
    padding: 14px 14px 20px;
  }

  .freezer-door {
    height: 96px;
  }

  .fridge-door {
    min-height: 646px;
  }

  .brand-badge {
    left: 22px;
    top: 18px;
    padding: 9px 14px 10px;
  }

  .memo-card {
    left: 26px;
    top: 28px;
  }

  .music-card {
    right: 34px;
    top: 118px;
  }

  .bits-card {
    left: 28px;
    top: 170px;
    bottom: auto;
  }

  .cheese-toy {
    left: 26px;
    top: 500px;
  }

  .counter-note {
    width: 214px;
  }

  .fridge-player {
    left: 132px;
    top: 588px;
    width: 214px;
  }

  .microcopy {
    left: 26px;
    bottom: 30px;
  }

  .add-note-button {
    right: 30px;
    top: 27px;
  }

  .user-notes {
    top: 42px;
    left: 20px;
    right: 48px;
    gap: 14px;
  }

  .main-handle {
    right: 12px;
    top: 170px;
    height: 160px;
  }

  .note-pager {
    right: 46px;
    top: 444px;
  }
}

@media (max-width: 430px) {
  html,
  body {
    height: 100svh;
    overflow: hidden;
  }

  .page-shell {
    width: min(100% - 10px, 400px);
    height: 100svh;
    min-height: 100svh;
    padding-top: 14px;
    padding-bottom: 6px;
    overflow: hidden;
    align-items: start;
  }

  .fridge {
    width: min(100%, 390px);
    transform: none;
    transform-origin: top center;
    margin-bottom: 0;
  }

  .freezer-door {
    height: 74px;
    margin-bottom: 8px;
  }

  .fridge-door {
    min-height: 636px;
  }

  .brand-badge {
    left: 20px;
    top: 17px;
    padding: 8px 13px 9px;
    font-size: 0.92rem;
  }

  .magnet-card {
    width: 126px;
    min-height: 106px;
    font-size: 0.8rem;
  }

  .memo-card {
    left: 22px;
    top: 24px;
  }

  .music-card {
    right: 24px;
    top: 118px;
  }

  .bits-card {
    left: 22px;
    top: 170px;
    bottom: auto;
    width: 132px;
  }

  .cheese-toy {
    left: 12px;
    top: 480px;
    gap: 7px;
    padding: 8px 9px;
    border-radius: 24px;
  }

  .cheese-magnet {
    width: 78px;
    height: 78px;
  }

  .cheese-emoji {
    font-size: 3.75rem;
  }

  .counter-note {
    width: 214px;
    padding: 10px 11px;
  }

  .fridge-player {
    left: 106px;
    top: 578px;
    width: 220px;
    padding: 7px 10px;
  }

  .microcopy {
    left: 20px;
    bottom: 32px;
    max-width: 138px;
    white-space: normal;
  }

  .add-note-button {
    right: 24px;
    top: 18px;
    width: 34px;
    height: 34px;
  }

  .user-notes {
    top: 36px;
    left: 17px;
    right: 43px;
    gap: 12px;
  }

  .user-note {
    min-height: 108px;
    padding: 19px 8px 10px;
    font-size: 0.62rem;
  }

  .main-handle {
    right: 10px;
    top: 168px;
    width: 12px;
    height: 150px;
    opacity: 0.48;
  }

  .note-pager {
    right: 44px;
    top: 396px;
  }
}

@media (max-width: 430px) and (max-height: 760px) {
  .fridge-stage {
    height: calc(100svh - 12px);
    align-items: start;
  }

  .fridge {
    transform: scale(0.82);
    transform-origin: top center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
