@font-face {
  font-family: "Mona12";
  src:
    url("/assets/Mona12.woff2") format("woff2"),
    url("./assets/Mona12.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona12";
  src:
    url("/assets/Mona12-Bold.woff2") format("woff2"),
    url("./assets/Mona12-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  --sky-3: #67ceff;
  --sky-2: #a9eaff;
  --deep: #12394f;
  --text: #12394f;
  --panel: rgba(206, 242, 255, 0.88);
  --panel-light: rgba(234, 250, 255, 0.76);
  --line-strong: rgba(18, 93, 130, 0.55);
  --shadow: rgba(21, 108, 148, 0.22);
}

html {
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Mona12", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif !important;
  font-weight: 400;
  font-size: 13px;
  background: linear-gradient(180deg, #67ceff 0%, #a9eaff 48%, #dff8ff 100%);
  background-attachment: fixed;
}

body,
body *,
button,
input,
textarea,
select {
  font-family: "Mona12", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif !important;
}

body * {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body::before,
body::after {
  display: none;
  content: none;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  -webkit-user-drag: none;
  user-drag: none;
}

strong,
b,
h1,
h2,
h3,
.nav-list a,
.updates time {
  font-family: "Mona12", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif !important;
  font-weight: 800;
}

.page-shell {
  width: min(680px, calc(100% - 28px));
  margin: 26px auto 20px;
  position: relative;
  z-index: 1;
}

.sticker-card,
.window-card {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  box-shadow:
    0 10px 26px var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 13px 14px;
}

.eyebrow {
  margin: 0 0 3px;
  color: #0f77a8;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #0f77a8;
  font-size: clamp(24px, 4.5vw, 42px);
  line-height: 0.95;
  text-shadow:
    2px 2px 0 rgba(255, 255, 255, 0.72),
    0 0 12px rgba(255, 255, 255, 0.45);
}

.subtitle {
  margin: 6px 0 0;
  color: #2f7898;
  font-size: 12px;
}

.header-sticker {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  flex: 0 0 70px;
  border: 1px dashed rgba(17, 105, 146, 0.62);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(235, 250, 255, 0.92), rgba(126, 211, 249, 0.88));
  color: rgba(18, 91, 128, 0.62);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  transform: rotate(2deg);
  overflow: hidden;
}

.header-sticker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
}

.layout {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 10px;
}

.window-bar {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(18, 109, 151, 0.34);
  background: linear-gradient(180deg, #8ee1ff, #52c8f7);
}

.window-bar span {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(18, 93, 130, 0.54);
  border-radius: 1px;
  background: #e6f9ff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.42);
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 12px;
  min-width: 0;
}

.sidebar h2,
.content h2 {
  margin: 11px 11px 8px;
  color: #0f77a8;
  font-size: 16px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.55);
}

.nav-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 0 9px 11px;
}

.nav-list a {
  display: block;
  padding: 7px 8px;
  border: 1px solid rgba(18, 103, 145, 0.36);
  border-radius: 3px;
  background: rgba(227, 248, 255, 0.84);
  color: var(--deep);
  text-decoration: none;
  font-size: 13px;
  box-shadow:
    inset 0 -1px 0 rgba(25, 133, 181, 0.18),
    2px 2px 0 rgba(32, 138, 184, 0.10);
}

.mini-box {
  margin: 0 9px 11px;
  padding: 8px;
  border-radius: 3px;
  background: rgba(178, 231, 255, 0.62);
  border: 1px dashed rgba(18, 106, 148, 0.4);
}

.sticker-placeholder {
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(18, 106, 148, 0.5);
  border-radius: 3px;
  background: rgba(235, 250, 255, 0.54);
  overflow: hidden;
}

.sticker-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.welcome p,
.posts p {
  margin: 0 11px 11px;
  color: #1b526c;
  font-size: 13px;
  line-height: 1.65;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(112px, 0.86fr) minmax(0, 1.14fr);
  gap: 8px;
  padding: 0 11px 12px;
}

.photo-placeholder {
  min-height: 116px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(18, 106, 148, 0.5);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(242, 252, 255, 0.82), rgba(119, 213, 252, 0.48));
  color: rgba(18, 91, 128, 0.48);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.note-paper,
.diary-text-box {
  padding: 10px;
  border-radius: 3px;
  border: 1px solid rgba(18, 106, 148, 0.28);
  background: var(--panel-light);
  box-shadow: 3px 3px 0 rgba(32, 138, 184, 0.10);
}

.note-paper h3,
.diary-text-box h3 {
  margin: 0 0 6px;
  color: #0f77a8;
  font-size: 13px;
}

.note-paper p,
.diary-text-box p {
  margin: 0;
  color: #1e5d78;
  font-size: 13px;
  line-height: 1.58;
}

.diary-text-box {
  margin: 0 11px 12px;
}

.updates ul {
  list-style: none;
  margin: 0;
  padding: 0 11px 12px;
}

.updates li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(18, 106, 148, 0.25);
  font-size: 12px;
}

.updates time {
  color: #0d6f9e;
}

.updates span {
  color: #1c5872;
}

.posts {
  padding-bottom: 1px;
}

.posts article {
  margin: 0 11px 10px;
  padding: 9px;
  border-radius: 3px;
  background: rgba(228, 248, 255, 0.68);
  border: 1px solid rgba(18, 106, 148, 0.25);
}

.posts article h3 {
  margin: 0 0 5px;
  color: #0f77a8;
  font-size: 13px;
}

.posts article p {
  margin: 0;
}

.site-footer,
.bgm-player,
.cloud,
.sparkle-layer,
.sparkle-video {
  display: none !important;
}

#pjax-container.is-loading {
  opacity: 0.62;
  transition: opacity 0.12s ease;
}

/* iPhone + Android 공통 모바일 */
@media screen and (max-width: 700px) {
  .page-shell {
    width: calc(100% - 14px);
    max-width: 520px;
    margin: 10px auto 16px;
  }

  .site-header {
    gap: 8px;
    padding: 10px;
  }

  .eyebrow {
    font-size: 8px;
  }

  h1 {
    font-size: 25px;
  }

  .subtitle {
    font-size: 10px;
  }

  .header-sticker {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }

  .layout {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 8px;
  }

  .sidebar {
    position: static;
  }

  .sidebar h2,
  .content h2 {
    margin: 10px 9px 7px;
    font-size: 14px;
  }

  .nav-list {
    gap: 5px;
    padding: 0 8px 10px;
  }

  .nav-list a {
    padding: 7px 6px;
    font-size: 11px;
  }

  .mini-box {
    margin: 0 8px 10px;
    padding: 7px;
  }

  .sticker-placeholder {
    min-height: 62px;
  }

  .hero-grid {
    grid-template-columns: minmax(96px, 0.9fr) minmax(0, 1.1fr);
    gap: 7px;
    padding: 0 9px 10px;
  }

  .photo-placeholder {
    min-height: 108px;
  }

  .note-paper,
  .diary-text-box {
    padding: 9px;
  }

  .welcome p,
  .posts p,
  .note-paper p,
  .diary-text-box p {
    font-size: 11px;
    line-height: 1.55;
  }

  .note-paper h3,
  .posts article h3,
  .diary-text-box h3 {
    font-size: 12px;
  }

  .updates li {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 6px;
    font-size: 10px;
  }
}

@media screen and (max-width: 430px) {
  .page-shell {
    width: calc(100% - 10px);
    margin: 8px auto 14px;
  }

  .site-header {
    padding: 9px;
  }

  h1 {
    font-size: 22px;
  }

  .header-sticker {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
  }

  .layout {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 6px;
  }

  .sidebar h2,
  .content h2 {
    font-size: 13px;
  }

  .nav-list a {
    padding: 6px 5px;
    font-size: 10px;
  }

  .hero-grid {
    grid-template-columns: minmax(82px, 0.9fr) minmax(0, 1.1fr);
  }

  .photo-placeholder {
    min-height: 96px;
  }

  .welcome p,
  .posts p,
  .note-paper p,
  .diary-text-box p {
    font-size: 10px;
  }

  .updates li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}


/* =========================================
   ANIMATION UPGRADE
   과하지 않게 사이트가 살아 보이는 효과
========================================= */

/* 첫 진입 */
@keyframes pageRise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* 창 카드 등장 */
@keyframes cardPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 위쪽 스티커 둥실 */
@keyframes stickerFloat {
  0%, 100% {
    transform: rotate(2deg) translateY(0);
  }
  50% {
    transform: rotate(3.5deg) translateY(-4px);
  }
}

/* 왼쪽 스티커 살짝 숨쉬기 */
@keyframes miniFloat {
  0%, 100% {
    transform: translateY(0) rotate(-0.6deg);
  }
  50% {
    transform: translateY(-3px) rotate(0.8deg);
  }
}

/* 창 상단 바 빛 */
@keyframes barShine {
  from {
    background-position: -120px 0;
  }
  to {
    background-position: 160px 0;
  }
}

/* 제목 은은한 반짝 */
@keyframes titleGlow {
  0%, 100% {
    text-shadow:
      2px 2px 0 rgba(255, 255, 255, 0.72),
      0 0 12px rgba(255, 255, 255, 0.45);
  }
  50% {
    text-shadow:
      2px 2px 0 rgba(255, 255, 255, 0.88),
      0 0 18px rgba(255, 255, 255, 0.75),
      0 0 8px rgba(74, 202, 255, 0.45);
  }
}

/* 이미지 살짝 확대 */
@keyframes imageBreathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

.page-shell {
  animation: pageRise 0.55s ease both;
}

.site-header {
  animation: cardPop 0.52s ease both;
}

.sidebar {
  animation: cardPop 0.58s ease 0.05s both;
}

.content > .window-card {
  animation: cardPop 0.58s ease both;
}

.content > .window-card:nth-child(1) {
  animation-delay: 0.08s;
}

.content > .window-card:nth-child(2) {
  animation-delay: 0.16s;
}

.content > .window-card:nth-child(3) {
  animation-delay: 0.24s;
}

h1 {
  animation: titleGlow 3.8s ease-in-out infinite;
}

.header-sticker {
  animation: stickerFloat 3.2s ease-in-out infinite;
  will-change: transform;
}

.mini-box {
  animation: miniFloat 4.2s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

.window-bar {
  position: relative;
  overflow: hidden;
}

.window-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 0%,
      transparent 35%,
      rgba(255, 255, 255, 0.55) 48%,
      transparent 62%,
      transparent 100%
    );
  background-size: 180px 100%;
  animation: barShine 3.6s linear infinite;
  pointer-events: none;
}

.nav-list a {
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-list a:hover {
  transform: translateY(-2px) translateX(2px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(14, 105, 146, 0.78);
  box-shadow:
    inset 0 -1px 0 rgba(25, 133, 181, 0.18),
    3px 3px 0 rgba(32, 138, 184, 0.16),
    0 0 12px rgba(255, 255, 255, 0.45);
}

.photo-placeholder img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.photo-placeholder:hover img {
  transform: scale(1.045);
  filter: brightness(1.05) saturate(1.05);
}

.note-paper,
.posts article,
.diary-text-box {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.note-paper:hover,
.posts article:hover,
.diary-text-box:hover {
  transform: translateY(-2px);
  background: rgba(244, 253, 255, 0.86);
  box-shadow:
    4px 4px 0 rgba(32, 138, 184, 0.12),
    0 8px 18px rgba(21, 108, 148, 0.12);
}

.window-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.window-card:hover {
  border-color: rgba(18, 93, 130, 0.72);
  box-shadow:
    0 12px 30px rgba(21, 108, 148, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.updates li {
  transition: transform 0.18s ease, background 0.18s ease;
}

.updates li:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.22);
}

/* PJAX 전환 느낌 */
#pjax-container {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#pjax-container.is-loading {
  opacity: 0.42;
  transform: translateY(4px);
}

/* 모바일에서는 너무 과한 움직임 줄이기 */
@media screen and (max-width: 700px) {
  .header-sticker {
    animation-duration: 4s;
  }

  .mini-box {
    animation-duration: 5s;
  }

  .window-bar::after {
    animation-duration: 5s;
  }

  .nav-list a:hover,
  .note-paper:hover,
  .posts article:hover,
  .diary-text-box:hover,
  .photo-placeholder:hover img {
    transform: none;
  }
}

/* 움직임 줄이기 설정 켠 사람 배려 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================
   8BIT / PIXEL UI UPGRADE
   애니메이션 유지 + 전체 UI를 도트 게임창 느낌으로 변경
========================================= */

:root {
  --pixel-dark: #0d4f73;
  --pixel-mid: #178ac2;
  --pixel-light: #e8fbff;
  --pixel-shadow: rgba(8, 75, 111, 0.34);
}

/* 전체적으로 부드러운 카드보다 픽셀 박스 느낌 */
.sticker-card,
.window-card {
  border: 2px solid var(--pixel-dark) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, rgba(229, 250, 255, 0.94), rgba(185, 235, 255, 0.9)) !important;
  box-shadow:
    4px 4px 0 rgba(13, 79, 115, 0.42),
    8px 8px 0 rgba(13, 79, 115, 0.12),
    inset 2px 2px 0 rgba(255, 255, 255, 0.78),
    inset -2px -2px 0 rgba(39, 143, 185, 0.28) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 픽셀 창 상단바 */
.window-bar {
  height: 22px !important;
  border-bottom: 2px solid var(--pixel-dark) !important;
  background:
    repeating-linear-gradient(
      90deg,
      #52c8f7 0 8px,
      #7adfff 8px 16px
    ) !important;
}

.window-bar span {
  width: 7px !important;
  height: 7px !important;
  border: 1px solid var(--pixel-dark) !important;
  border-radius: 0 !important;
  background: #eaffff !important;
  box-shadow: 1px 1px 0 rgba(13, 79, 115, 0.45) !important;
}

/* 타이틀도 게임 로고처럼 딱딱하게 */
h1 {
  color: #0d6ea2 !important;
  letter-spacing: 0.01em;
  text-shadow:
    2px 0 0 #eaffff,
    0 2px 0 #eaffff,
    2px 2px 0 #eaffff,
    4px 4px 0 rgba(13, 79, 115, 0.28) !important;
}

/* 소제목 픽셀 라벨 */
.sidebar h2,
.content h2 {
  display: inline-block;
  padding: 2px 6px;
  border: 2px solid rgba(13, 79, 115, 0.58);
  background: rgba(239, 253, 255, 0.82);
  box-shadow: 2px 2px 0 rgba(13, 79, 115, 0.18);
  text-shadow: none !important;
}

/* 상단 sans 프레임 픽셀화 */
.header-sticker {
  border: 2px solid var(--pixel-dark) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(135deg, #effdff, #95e4ff) !important;
  box-shadow:
    3px 3px 0 rgba(13, 79, 115, 0.36),
    inset 2px 2px 0 rgba(255, 255, 255, 0.85),
    inset -2px -2px 0 rgba(39, 143, 185, 0.28) !important;
  image-rendering: pixelated;
}

/* 왼쪽 보리스티키 박스 도트 게임 슬롯 느낌 */
.mini-box {
  border: 2px solid var(--pixel-dark) !important;
  border-radius: 0 !important;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(232, 251, 255, 0.9) 0 7px,
      rgba(194, 239, 255, 0.9) 7px 14px
    ) !important;
  box-shadow:
    3px 3px 0 rgba(13, 79, 115, 0.32),
    inset 2px 2px 0 rgba(255, 255, 255, 0.7) !important;
}

.sticker-placeholder {
  border: 2px dashed rgba(13, 79, 115, 0.62) !important;
  border-radius: 0 !important;
  background: rgba(242, 253, 255, 0.76) !important;
}

/* 메뉴를 RPG 버튼처럼 */
.nav-list a {
  border: 2px solid var(--pixel-dark) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, #f1fdff 0%, #bdefff 100%) !important;
  box-shadow:
    3px 3px 0 rgba(13, 79, 115, 0.34),
    inset 2px 2px 0 rgba(255, 255, 255, 0.82),
    inset -2px -2px 0 rgba(39, 143, 185, 0.28) !important;
}

.nav-list a:hover {
  transform: translate(2px, 2px) !important;
  box-shadow:
    1px 1px 0 rgba(13, 79, 115, 0.34),
    inset 2px 2px 0 rgba(255, 255, 255, 0.82),
    inset -2px -2px 0 rgba(39, 143, 185, 0.28) !important;
}

/* 사진/메모 박스도 각지게 */
.photo-placeholder,
.note-paper,
.diary-text-box,
.posts article {
  border: 2px solid rgba(13, 79, 115, 0.58) !important;
  border-radius: 0 !important;
  box-shadow:
    3px 3px 0 rgba(13, 79, 115, 0.20),
    inset 1px 1px 0 rgba(255, 255, 255, 0.62) !important;
}

.photo-placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(244, 253, 255, 0.9) 0 8px,
      rgba(205, 243, 255, 0.9) 8px 16px
    ) !important;
}

.note-paper,
.diary-text-box,
.posts article {
  background:
    linear-gradient(180deg, rgba(244, 253, 255, 0.92), rgba(213, 246, 255, 0.86)) !important;
}

/* 업데이트 리스트 도트 UI */
.updates li {
  border-bottom: 2px dotted rgba(13, 79, 115, 0.36) !important;
}

.updates time {
  display: inline-block;
  padding: 1px 4px;
  border: 1px solid rgba(13, 79, 115, 0.45);
  background: rgba(239, 253, 255, 0.62);
}

/* 이미지가 도트 아트처럼 조금 더 또렷하게 */
.header-sticker img,
.sticker-placeholder img,
.photo-placeholder img {
  image-rendering: auto;
}

/* 움직임은 유지하되 픽셀 UI와 어울리게 덜 말랑하게 */
@keyframes pageRise {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: none;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }
}

@keyframes cardPop {
  from {
    opacity: 0;
    transform: translate(0, 8px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow:
      2px 0 0 #eaffff,
      0 2px 0 #eaffff,
      2px 2px 0 #eaffff,
      4px 4px 0 rgba(13, 79, 115, 0.28);
  }
  50% {
    text-shadow:
      2px 0 0 #ffffff,
      0 2px 0 #ffffff,
      2px 2px 0 #ffffff,
      4px 4px 0 rgba(13, 79, 115, 0.34),
      0 0 10px rgba(255, 255, 255, 0.7);
  }
}

/* 배경도 너무 매끈하지 않게 아주 은은한 도트 격자 */
body {
  background:
    linear-gradient(180deg, rgba(103, 206, 255, 0.96) 0%, rgba(169, 234, 255, 0.96) 48%, rgba(223, 248, 255, 0.96) 100%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255,255,255,0.18) 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(255,255,255,0.14) 7px 8px) !important;
  background-attachment: fixed !important;
}

/* 모바일에서는 픽셀 그림자 크기만 살짝 줄임 */
@media screen and (max-width: 700px) {
  .sticker-card,
  .window-card {
    box-shadow:
      3px 3px 0 rgba(13, 79, 115, 0.38),
      6px 6px 0 rgba(13, 79, 115, 0.10),
      inset 2px 2px 0 rgba(255, 255, 255, 0.72),
      inset -2px -2px 0 rgba(39, 143, 185, 0.25) !important;
  }

  .nav-list a,
  .mini-box,
  .photo-placeholder,
  .note-paper,
  .diary-text-box,
  .posts article {
    box-shadow:
      2px 2px 0 rgba(13, 79, 115, 0.24),
      inset 1px 1px 0 rgba(255, 255, 255, 0.62) !important;
  }
}


/* =========================================
   STICKER BOING EFFECT
   sans / boristiky 클릭 시 또잉 효과
========================================= */

.header-sticker,
.sticker-placeholder {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header-sticker img,
.sticker-placeholder img {
  pointer-events: none;
}

/* 클릭 가능하다는 느낌 */
.header-sticker:hover,
.sticker-placeholder:hover {
  filter: brightness(1.06);
}

/* 또잉 애니메이션 */
@keyframes stickerBoing {
  0% {
    transform: scale(1) rotate(0deg);
  }
  18% {
    transform: scale(1.22, 0.78) rotate(-4deg);
  }
  36% {
    transform: scale(0.82, 1.22) rotate(5deg);
  }
  54% {
    transform: scale(1.12, 0.92) rotate(-3deg);
  }
  72% {
    transform: scale(0.96, 1.06) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* 클릭 순간 반짝 튀는 픽셀 링 */
.header-sticker::before,
.sticker-placeholder::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(255, 255, 255, 0);
  pointer-events: none;
}

.header-sticker,
.sticker-placeholder {
  position: relative;
}

@keyframes pixelPopRing {
  0% {
    opacity: 0;
    transform: scale(0.82);
    border-color: rgba(255, 255, 255, 0);
    box-shadow: none;
  }
  20% {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
      0 0 0 2px rgba(82, 200, 247, 0.72),
      4px 4px 0 rgba(13, 79, 115, 0.22);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
    border-color: rgba(255, 255, 255, 0);
    box-shadow:
      0 0 0 6px rgba(82, 200, 247, 0),
      7px 7px 0 rgba(13, 79, 115, 0);
  }
}

/* JS가 붙여주는 클래스 */
.header-sticker.is-boinging {
  animation:
    stickerBoing 0.48s cubic-bezier(.2, 1.4, .35, 1) both,
    stickerFloat 3.2s ease-in-out infinite 0.48s;
}

.mini-box.is-boinging {
  animation:
    stickerBoing 0.48s cubic-bezier(.2, 1.4, .35, 1) both,
    miniFloat 4.2s ease-in-out infinite 0.48s;
}

.header-sticker.is-boinging::before,
.sticker-placeholder.is-boinging::before {
  animation: pixelPopRing 0.42s ease-out both;
}

/* 모바일 터치 시 눌리는 감각 */
.header-sticker:active,
.sticker-placeholder:active {
  filter: brightness(1.12);
}

/* 움직임 줄이기 설정 */
@media (prefers-reduced-motion: reduce) {
  .header-sticker.is-boinging,
  .mini-box.is-boinging,
  .header-sticker.is-boinging::before,
  .sticker-placeholder.is-boinging::before {
    animation: none !important;
  }
}


/* =========================================
   REAL RUBBER BOING EFFECT
   진짜 고무줄처럼 또이이잉 튕기는 효과
========================================= */

.header-sticker,
.sticker-placeholder {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center bottom !important;
}

/* 기존 float 애니메이션과 충돌 방지: 클릭할 때는 완전히 다른 탄성 애니메이션 */
.header-sticker.is-real-boing,
.sticker-placeholder.is-real-boing {
  animation: realRubberBoing 0.92s cubic-bezier(0.18, 0.89, 0.32, 1.28) both !important;
  z-index: 10;
}

/* boristiky의 부모 mini-box는 클릭 순간 살짝 따라 튕김 */
.mini-box.is-real-boing-box {
  animation: realBoxBoing 0.82s cubic-bezier(0.18, 0.89, 0.32, 1.28) both !important;
  z-index: 10;
}

/* 고무줄처럼 눌렸다가 위로 튀고 좌우로 흔들리는 핵심 */
@keyframes realRubberBoing {
  0% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
  8% {
    transform: translateY(6px) scale(1.22, 0.72) rotate(-2deg);
  }
  18% {
    transform: translateY(-18px) scale(0.72, 1.34) rotate(6deg);
  }
  30% {
    transform: translateY(7px) scale(1.16, 0.82) rotate(-5deg);
  }
  42% {
    transform: translateY(-11px) scale(0.86, 1.18) rotate(4deg);
  }
  54% {
    transform: translateY(4px) scale(1.08, 0.92) rotate(-3deg);
  }
  66% {
    transform: translateY(-5px) scale(0.95, 1.08) rotate(2deg);
  }
  78% {
    transform: translateY(2px) scale(1.03, 0.97) rotate(-1deg);
  }
  90% {
    transform: translateY(-1px) scale(0.99, 1.02) rotate(0.5deg);
  }
  100% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
}

@keyframes realBoxBoing {
  0% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
  10% {
    transform: translateY(5px) scale(1.08, 0.82) rotate(-1.5deg);
  }
  22% {
    transform: translateY(-12px) scale(0.84, 1.22) rotate(3deg);
  }
  36% {
    transform: translateY(5px) scale(1.08, 0.9) rotate(-2deg);
  }
  52% {
    transform: translateY(-7px) scale(0.94, 1.1) rotate(1.5deg);
  }
  68% {
    transform: translateY(3px) scale(1.03, 0.96) rotate(-1deg);
  }
  84% {
    transform: translateY(-2px) scale(0.99, 1.03) rotate(0.5deg);
  }
  100% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
}

/* 클릭 순간 만화식 픽셀 충격파 */
.header-sticker.is-real-boing::after,
.sticker-placeholder.is-real-boing::after {
  content: "" !important;
  position: absolute !important;
  inset: -10px !important;
  border: 3px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 0 0 3px rgba(82, 200, 247, 0.7),
    5px 5px 0 rgba(13, 79, 115, 0.18) !important;
  pointer-events: none !important;
  animation: realBoingRing 0.58s steps(4, end) both !important;
}

@keyframes realBoingRing {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }
  18% {
    opacity: 1;
    transform: scale(1);
  }
  55% {
    opacity: 0.55;
    transform: scale(1.22);
  }
  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

/* 진짜 눌리는 감각 */
.header-sticker:active,
.sticker-placeholder:active {
  transform: translateY(3px) scale(1.12, 0.82) !important;
  filter: brightness(1.12);
}

/* 모바일에서도 확실히 보이게 */
@media screen and (max-width: 700px) {
  .header-sticker.is-real-boing,
  .sticker-placeholder.is-real-boing {
    animation-duration: 0.86s !important;
  }

  .mini-box.is-real-boing-box {
    animation-duration: 0.78s !important;
  }
}
