@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700&family=ZCOOL+KuaiLe&display=swap');

/* Register --mask-r for CSS mask animation (Chrome/Safari) */
@property --mask-r {
  syntax: '<length>';
  initial-value: 0px;
  inherits: false;
}

* { margin:0; padding:0; box-sizing:border-box; }

:root {
  /* === Mint-green sky palette (keep original) === */
  --sky-top: #c5e8f0;
  --sky-bottom: #e8f4d8;
  --land: #c8ddb5;
  --water: #a8d8ea;
  
  /* === animal-island-ui warm tones for cards & text === */
  --bg-card: rgb(247, 243, 223);
  --text-body: #725d42;
  --text-header: #794f27;
  --text-muted: #9f927d;
  --border: #c4b89e;
  
  --accent-teal: #19c8b9;
  --accent-teal-hover: #3dd4c6;
  --focus-yellow: #ffcc00;
  
  /* === NookPhone colors for section accents === */
  --np-green: #8ac68a;
  --np-teal: #82d5bb;
  --np-yellow: #f7cd67;
  --np-orange: #e59266;
  --np-pink: #f8a6b2;
  --np-blue: #889df0;
  
  --accent-about: var(--np-green);
  --accent-projects: var(--np-teal);
  --accent-competitions: var(--np-orange);
  --accent-works: var(--np-pink);
  --accent-contact: var(--np-blue);
  
  --card: var(--bg-card);
  --ink: var(--text-body);
  --dark-green: var(--text-header);
  --muted: var(--text-muted);
  --shadow: 0 2px 4px 0 rgba(61, 52, 40, 0.06);
  --shadow-hover: 0 3px 10px 0 rgba(61, 52, 40, 0.10);
}

html { scroll-behavior: smooth; zoom: 1.1; }

body {
  font-family: Nunito, 'Noto Sans SC', -apple-system, 'PingFang SC', sans-serif;
  background: var(--sky-top);
  color: var(--text-body);
  overflow-x: hidden;
  font-weight: 500;
}

/* === Mint-green sky background === */
.sky-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 55%, var(--land) 75%, var(--water) 90%, var(--water) 100%);
}

/* Subtle warm haze */
.sky-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 300px 150px at 20% 25%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(ellipse 250px 120px at 70% 55%, rgba(255,255,240,0.3) 0%, transparent 100%);
  pointer-events: none;
}

/* === Passport Form & Message Wall (AC-style) === */
.passport-form {
  width: min(600px, 90vw);
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 48px;
  border: 2px solid var(--sec-accent);
}

.pf-header {
  background: #a8d8ea;
  padding: 16px 24px;
  display: flex; flex-direction: column;
}

.pf-logo {
  font-family: 'ZCOOL KuaiLe', cursive;
  font-size: 1rem;
  color: #3d6b80;
  letter-spacing: 1px;
}

.pf-sub {
  font-size: 0.7rem; color: #5a8899; margin-top: 2px;
}

.pf-body {
  display: flex; gap: 20px; padding: 20px 24px;
}

.pf-avatar-pick {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
}

.pf-avatar-preview {
  width: 72px; height: 72px;
  border: 2px solid var(--sec-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  background: #f0efe8;
}

.pf-preview-img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}

.pf-emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.pf-villager-btn {
  width: 36px; height: 36px;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  background: #f5f4f1;
  overflow: hidden;
}
.pf-villager-btn:hover,
.pf-villager-btn.active {
  border-color: var(--sec-accent);
  transform: scale(1.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 2;
}

.pf-v-thumb {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}

.pf-emoji-grid button {
  /* keep this for backward compat, but villager buttons override */
}

.pf-fields {
  flex: 1;
  display: flex; flex-direction: column; gap: 12px;
}

.pf-field label {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.pf-field input,
.pf-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0ddd8;
  border-radius: 12px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  background: #faf9f7;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.pf-field input:focus,
.pf-field textarea:focus {
  border-color: var(--sec-accent);
}

.pf-submit {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 24px;
  border: none;
  background: var(--sec-accent);
  color: #fff;
  cursor: pointer;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-start;
}
.pf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* === Passport Wall === */
.passport-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: min(800px, 90vw);
}

.visitor-passport {
  background: #eef9fb;
  border-radius: 18px;
  padding: 18px;
  border: 2px solid var(--sec-accent);
  display: flex; gap: 14px;
  position: relative;
  overflow: hidden;
  animation: card-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.visitor-passport::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(107,138,170,0.15);
  pointer-events: none;
}

.vp-avatar {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--sec-accent);
}

.vp-img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}

.vp-info {
  flex: 1; min-width: 0;
}

.vp-name {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive;
  font-size: 0.9rem;
  color: var(--dark-green);
  margin-bottom: 4px;
}

.vp-time {
  font-size: 0.6rem; color: var(--muted); margin-bottom: 6px;
}

.vp-message {
  font-size: 0.8rem; color: var(--ink); line-height: 1.6;
  word-break: break-word;
}

.vp-delete {
  position: absolute; top: 8px; right: 8px;
  font-size: 0.7rem; opacity: 0; cursor: pointer;
  transition: opacity 0.2s;
  background: none; border: none; padding: 2px 6px;
}
.visitor-passport:hover .vp-delete { opacity: 0.5; }

/* === Contact links row === */
.contact-links {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 48px;
}

.contact-link-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 22px;
  background: var(--card);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  border-top: 3px solid var(--sec-accent);
  min-width: 130px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.contact-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.cl-icon { font-size: 1.8rem; margin-bottom: 4px; }
.cl-label { font-family: 'ZCOOL KuaiLe', cursive; font-size: 0.85rem; color: var(--dark-green); }
.cl-hint { font-size: 0.65rem; color: var(--muted); margin-top: 2px; }

/* === Entry Overlay === */
.entry-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
  animation: animal-fade-in 0.25s ease;
}
.entry-overlay.dismissed { opacity:0; visibility:hidden; pointer-events:none; }

@keyframes animal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.entry-scene {
  position: relative;
  width: min(720px, 92vw);
  display: flex;
  align-items: flex-end;
  gap: 0;
}

/* Penguin in entry */
.entry-penguin {
  flex-shrink: 0;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
  user-select: none;
}
.entry-penguin img {
  width: clamp(120px, 16vw, 170px);
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.15));
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* === Entry Modal (animal-island-ui Modal + Title) === */
.dodo-modal {
  background: rgb(247, 243, 223);
  clip-path: url(#animal-modal-clip);
  padding: 0;
  margin-bottom: 20px;
  margin-left: -8px;
  position: relative;
  flex: 1;
  max-width: 520px;
  min-width: 320px;
  animation: animal-zoom-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgb(128, 115, 89);
}

@keyframes animal-zoom-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Modal close button */
.dodo-close {
  position: absolute;
  top: 14px; right: 18px;
  width: 32px; height: 32px;
  font-size: 20px; font-weight: 700;
  color: rgba(114, 93, 66, 0.55);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: all 0.2s;
}
.dodo-close:hover {
  background: rgba(114, 93, 66, 0.1);
  color: rgba(114, 93, 66, 1);
}

/* Modal inner content area (per Modal spec: 48px 48px 32px) */
.dodo-body {
  padding: 48px 48px 32px;
}

/* === Modal Title (per animal-island-ui Modal spec: 28px / 700) === */
.dodo-modal-title {
  font-size: 28px;
  font-weight: 700;
  color: rgba(114, 93, 66, 1);
  padding-bottom: 15px;
  line-height: 1.3;
}

/* Modal body text (per spec: 20px / 600 / #8a7b66) */
.dodo-greeting {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  color: #8a7b66;
  padding-bottom: 20px;
  min-height: 1.6em;
}

/* Modal footer buttons */
.dodo-options {
  display: flex; flex-wrap: wrap; gap: 12px;
}

.dodo-btn {
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  height: 40px;
  padding: 0 24px;
  border-radius: 39.81px;
  border: 2px solid rgba(114, 93, 66, 0.3);
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  line-height: 1;
}
.dodo-btn .db-icon {
  width: 22px; height: 22px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #f0ece2;
  flex-shrink: 0;
  padding: 4px;
}
.dodo-btn .db-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.dodo-btn:hover {
  border-color: rgba(114, 93, 66, 0.6);
  background: rgba(114, 93, 66, 0.08);
}

/* Primary confirm-style button (yellow, per Modal spec) */
.dodo-btn.dodo-btn-primary {
  background: rgba(255, 204, 0, 1);
  border-color: rgba(255, 204, 0, 1);
  color: rgba(114, 93, 66, 1);
}
.dodo-btn.dodo-btn-primary:hover {
  background: rgba(255, 204, 0, 0.85);
  border-color: rgba(255, 204, 0, 0.85);
}

/* === Main Content === */
.main-content {
  position: relative; z-index: 1;
}

/* Hero section (post-dialog) */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.hero-penguin {
  margin-bottom: 24px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-penguin:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(247,214,123,0.3));
}
.hero-penguin img {
  width: clamp(220px, 30vw, 300px);
  filter: drop-shadow(3px 6px 16px rgba(0,0,0,0.1));
  animation: float 3.5s ease-in-out infinite;
}

.hero-title {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--dark-green);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-hint {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive;
  font-size: 1.1rem;
  color: var(--dark-green);
  margin-bottom: 24px;
  opacity: 0.75;
  animation: hint-pulse 3s ease-in-out infinite;
  cursor: default;
  letter-spacing: 2px;
}

@keyframes hint-pulse {
  0%,100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

.hero-islands {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}

.island-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 22px;
  background: var(--bg-card);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-body);
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
  min-width: 120px;
  position: relative; overflow: hidden;
}
.island-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.island-card .island-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  background: #f0ece2;
  transition: transform 0.25s;
  padding: 10px;
}
.island-card .island-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.island-card:hover .island-icon {
  transform: scale(1.08);
}
.island-card .island-label { font-size: 0.85rem; font-weight: 600; color: var(--dark-green); }
.island-card .island-hint { font-size: 0.7rem; color: var(--muted); }

/* === Section Islands === */
.section-island {
  min-height: 100vh;
  padding: 80px 24px 100px;
  display: flex; flex-direction: column;
  align-items: center;
  position: relative;
  --sec-accent: var(--island-green);
}

/* === Per-section color identity (Principle 2: Color differentiation) === */
.section-island[data-theme="about"]     { --sec-accent: var(--accent-about); }
.section-island[data-theme="projects"]  { --sec-accent: var(--accent-projects); }
.section-island[data-theme="competitions"] { --sec-accent: var(--accent-competitions); }
.section-island[data-theme="works"]     { --sec-accent: var(--accent-works); }
.section-island[data-theme="contact"]   { --sec-accent: var(--accent-contact); }

/* === Section-themed subtle decorative marks (AC-style: small icons instead of big glows) === */
/* About (green) — tiny grass/leaf dots */
.section-island[data-theme="about"] .section-header::before {
  content: '🌿'; font-size: 2.5rem; opacity: 0.12; pointer-events: none;
  position: absolute; left: 12%; top: 50px;
}
/* Projects (teal) — tiny tool/gear marks */
.section-island[data-theme="projects"] .section-header::before {
  content: '⚙️'; font-size: 2.2rem; opacity: 0.12; pointer-events: none;
  position: absolute; left: 12%; top: 50px;
}
/* Competitions (amber) — tiny star */
.section-island[data-theme="competitions"] .section-header::before {
  content: '⭐'; font-size: 2.4rem; opacity: 0.14; pointer-events: none;
  position: absolute; left: 12%; top: 50px;
}
/* Works (rose) — tiny flower */
.section-island[data-theme="works"] .section-header::before {
  content: '🌸'; font-size: 2.3rem; opacity: 0.14; pointer-events: none;
  position: absolute; left: 12%; top: 50px;
}
/* Contact (blue) — tiny wave/water drop */
.section-island[data-theme="contact"] .section-header::before {
  content: '💧'; font-size: 2.2rem; opacity: 0.12; pointer-events: none;
  position: absolute; left: 12%; top: 50px;
}

/* Small decorative corner marks per section */
.section-island[data-theme="about"]::before     { content: '·  ·  ·'; }
.section-island[data-theme="projects"]::before  { content: '∘  ∘  ∘'; }
.section-island[data-theme="competitions"]::before { content: '✦  ✦  ✦'; }
.section-island[data-theme="works"]::before     { content: '✿  ✿  ✿'; }
.section-island[data-theme="contact"]::before   { content: '〜  〜  〜'; }

.section-island::before {
  position: absolute;
  right: 8%; top: 55px;
  font-size: 0.6rem;
  color: var(--sec-accent);
  opacity: 0.18;
  letter-spacing: 6px;
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-header h2 {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  color: var(--dark-green);
  letter-spacing: 1px;
}

.section-header .section-stamp {
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 14px;
  border-radius: 12px;
  background: var(--sec-accent);
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* === Passport Card (About section) === */
.passport-card {
  width: min(560px, 90vw);
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.passport-header {
  background: var(--sec-accent);
  padding: 14px 24px;
  display: flex; align-items: center; gap: 10px;
}
.passport-header .dodo-icon { font-size: 1.3rem; animation: leaf-spin 6s linear infinite; }
.passport-header .dodo-label { color: #fff; font-family: 'ZCOOL KuaiLe', cursive; font-size: 0.85rem; }

.passport-body {
  display: flex; gap: 24px; padding: 24px;
}

.passport-avatar {
  flex-shrink: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid var(--sec-accent);
  overflow: hidden;
  background: var(--sky-top);
  display: flex; align-items: center; justify-content: center;
}
.passport-avatar img {
  width: 100%; height: 100%; object-fit: contain;
}

.passport-fields { flex:1; display:flex; flex-direction:column; gap:12px; }

.passport-field label {
  font-size: 0.65rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase;
}
.passport-field .field-value {
  font-size: 0.9rem; color: var(--ink); font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid #e8e6e3;
}

.passport-stamp {
  align-self: flex-start;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--sec-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  opacity: 0.7;
  transform: rotate(-12deg);
}

/* === Card Grid (Projects/Works) === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  width: min(720px, 90vw);
}

.item-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
  position: relative; overflow: hidden;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.item-card .card-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.item-card .card-tag {
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--sec-accent);
  color: #fff;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  user-select: none;
}
.item-card .card-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(61, 52, 40, 0.12);
}
.item-card h3 { font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive; font-size:0.95rem; margin-bottom:6px; letter-spacing:0.5px; }
.item-card p { font-size:0.8rem; color:var(--muted); line-height:1.6; margin-bottom:12px; }
.item-card .card-link {
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-body);
  text-decoration: none;
  padding: 5px 16px;
  border: 2px solid rgba(114, 93, 66, 0.3);
  border-radius: 39.81px;
  display: inline-block;
  transition: all 0.2s;
  background: transparent;
  line-height: 1.3;
}
.item-card .card-link:hover {
  border-color: rgba(114, 93, 66, 0.55);
  background: rgba(114, 93, 66, 0.06);
  transform: translateY(-1px);
}

/* === Filtered Memo Gallery — v2 preview style === */
.gallery-board {
  width: min(940px, 92vw);
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
}

.gallery-filter-tag {
  min-height: 38px;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-body);
  cursor: pointer;
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s;
}

.gallery-filter-tag.active {
  color: #fff;
  background: var(--accent-teal);
  border-color: var(--accent-teal);
}

.gallery-filter-tag:hover:not(.active) {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
  transform: translateY(-1px);
}

.gallery-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.memo-card {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3) 0%, transparent 60%),
    linear-gradient(160deg, #fdf6f0 0%, #faf3e8 50%, #f5ecdd 100%);
  border-radius: 14px;
  box-shadow:
    0 0 0 6px #fff,
    0 0 0 8px rgba(180,165,140,0.15),
    0 3px 12px rgba(61,52,40,0.10);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
}
.memo-card:hover {
  transform: scale(1.05) rotate(-1.5deg);
  box-shadow:
    0 0 0 6px #fff,
    0 0 0 8px rgba(180,165,140,0.2),
    0 6px 24px rgba(61,52,40,0.16);
  z-index: 5;
}
.memo-card::before {
  content: '✦';
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  font-size: 0.9rem;
  color: rgba(114,93,66,0.25);
  pointer-events: none;
}

.memo-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: #e8f4d8;
  flex-shrink: 0;
}
.memo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.memo-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #e8f4d8 0%, #c8ddb5 100%);
}

.memo-body {
  padding: 14px 16px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.memo-body h3 {
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-header);
}
.memo-body p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  min-height: 2.4em;
}
.memo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.63rem;
  font-weight: 700;
}
.tag-mint { background: rgba(25,200,185,0.13); color: var(--accent-teal); }
.tag-yellow { background: rgba(247,205,103,0.28); color: #8a6918; }
.tag-orange { background: rgba(229,146,102,0.2); color: #c46e3d; }
.memo-card.empty { opacity: 0.55; }
.memo-card.empty .memo-img { background: #f0ede6; }

.memo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.memo-date {
  font-family: Nunito, sans-serif;
  font-size: 0.7rem;
  color: rgba(114,93,66,0.55);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.memo-detail-btn {
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 5px 16px;
  border: 2px solid rgba(114, 93, 66, 0.3);
  border-radius: 39.81px;
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1.3;
}
.memo-detail-btn:hover {
  border-color: rgba(114, 93, 66, 0.55);
  background: rgba(114, 93, 66, 0.06);
  transform: translateY(-1px);
}
.memo-detail-btn:active { transform: translateY(0); }
.memo-detail-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  border-color: rgba(114, 93, 66, 0.15);
}

@media (max-width: 640px) {
  .gallery-board { width: 94vw; }
  .gallery-auto-grid { grid-template-columns: 1fr; }
  .memo-card:hover { transform: scale(1.03) rotate(-1deg); }
  .memo-img { height: 130px; }
}
/* === Work Detail — AC Dashboard Style === */
.work-detail-overlay {
  position: fixed; inset: 0; z-index: 150;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  display: flex; flex-direction: column;
  overflow: hidden;
  /* AC triangle pattern background — using provided tile image */
  background: #f5f0e8 url('bg-pattern.png') repeat;
  background-size: 200px 200px;
}
.work-detail-overlay.open { opacity: 1; pointer-events: auto; }

/* Page header — AC dashboard nav bar */
.sp-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  min-height: 60px;
  background: rgba(255,255,252,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(114,93,66,0.06);
  position: relative;
  z-index: 2;
}
.sp-header-logo {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive;
  font-size: 1rem;
  color: var(--text-header);
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
}
.sp-header-logo img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: contain;
}
.sp-nav-back {
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  padding: 8px 20px;
  border: 2px solid rgba(114,93,66,0.2);
  border-radius: 50px;
  background: rgba(255,255,255,0.7);
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.sp-nav-back:hover {
  border-color: rgba(114,93,66,0.45);
  background: rgba(255,255,255,0.95);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Scrollable body — two-column dashboard layout */
.sp-page {
  flex: 1; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,119,90,0.15) transparent;
  padding: 24px 28px 32px;
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.sp-page::-webkit-scrollbar { width: 5px; }
.sp-page::-webkit-scrollbar-thumb { background: rgba(139,119,90,0.2); border-radius: 10px; }

/* Main content column */
.sp-main-col {
  flex: 1;
  min-width: 0;
}
/* Content card — AC white floating card */
.sp-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(61,52,40,0.08), 0 12px 40px rgba(61,52,40,0.04);
  overflow: hidden;
}

/* Hero card — full-width KV image */
.sp-hero-card {
  position: relative;
  padding: 0;
  margin: 0;
  display: block;
  border-bottom: 1px solid rgba(114,93,66,0.06);
}
.sp-hero-img {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  max-height: 70vh;
  background: #faf8f2;
}

/* Extra images in detail */
.sp-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 0 4px;
}
.sp-extra img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 65vh;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(61,52,40,0.10);
  display: block;
  object-fit: contain;
}

/* Squiggly divider */
.sp-squiggle {
  width: 100%; height: 14px;
  margin-bottom: 24px;
  background:
    radial-gradient(circle at 15px 7px, rgba(114,93,66,0.10) 2px, transparent 3px),
    radial-gradient(circle at 40px 5px, rgba(114,93,66,0.10) 1.5px, transparent 2.5px),
    radial-gradient(circle at 70px 8px, rgba(114,93,66,0.10) 2px, transparent 3px),
    radial-gradient(circle at 100px 4px, rgba(114,93,66,0.10) 1.5px, transparent 2.5px),
    radial-gradient(circle at 140px 7px, rgba(114,93,66,0.10) 2px, transparent 3px),
    radial-gradient(circle at 180px 5px, rgba(114,93,66,0.10) 1.5px, transparent 2.5px),
    radial-gradient(circle at 220px 8px, rgba(114,93,66,0.10) 2px, transparent 3px),
    radial-gradient(circle at 260px 4px, rgba(114,93,66,0.10) 1.5px, transparent 2.5px),
    linear-gradient(transparent 5px, rgba(114,93,66,0.05) 5px, rgba(114,93,66,0.05) 6px, transparent 6px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Content area padding */
.sp-container {
  padding: 32px 28px 44px;
}
/* === AC Dashboard Sidebar === */
.sp-side-col {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sp-widget {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 4px 20px rgba(61,52,40,0.06), 0 8px 24px rgba(61,52,40,0.03);
}
/* User header widget */
.sp-user-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.sp-user-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(114,93,66,0.15);
}
.sp-user-avatar img { width: 100%; height: 100%; object-fit: contain; }
.sp-user-name {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive;
  font-size: 1rem;
  color: var(--text-header);
  margin: 0;
}
.sp-user-role {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}
/* Stats row */
.sp-stats-row {
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid rgba(114,93,66,0.08);
  border-bottom: 1px solid rgba(114,93,66,0.08);
  margin-bottom: 16px;
}
.sp-stat-item {
  text-align: center;
}
.sp-stat-value {
  font-family: Nunito, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-header);
  line-height: 1.2;
}
.sp-stat-label {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}
/* Daily status */
.sp-daily-status {
  background: #fff8e0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem;
  color: var(--text-body);
}
.sp-daily-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.sp-daily-text {
  flex: 1;
  font-weight: 600;
}
.sp-daily-time {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}
/* Activity tiles */
.sp-activity-section {
  margin-bottom: 16px;
}
.sp-activity-section:last-child {
  margin-bottom: 0;
}
.sp-section-label {
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sp-see-all {
  font-size: 0.68rem;
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 600;
}
.sp-activity-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sp-activity-tile {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: rgba(247,243,223,0.5);
  border-radius: 12px;
}
.sp-tile-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(114,93,66,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.sp-tile-icon img { width: 100%; height: 100%; object-fit: contain; }
.sp-tile-info { min-width: 0; }
.sp-tile-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-tile-date {
  font-size: 0.62rem;
  color: var(--muted);
}
/* Contact widget */
.sp-contact-list {
  display: flex; flex-direction: column; gap: 10px;
}
.sp-contact-item {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(247,243,223,0.5);
  transition: all 0.2s;
  cursor: pointer;
}
.sp-contact-item:hover {
  background: rgba(247,243,223,0.8);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sp-contact-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: #f0ece2;
}
.sp-contact-info { flex: 1; min-width: 0; }
.sp-contact-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-header);
}
.sp-contact-hint {
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 1px;
}
/* Like button */
.sp-like-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid rgba(114,93,66,0.2);
  background: rgba(255,255,255,0.6);
  color: var(--text-body);
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.sp-like-btn:hover {
  border-color: rgba(114,93,66,0.4);
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}
.sp-like-btn.liked {
  border-color: #f8a6b2;
  background: rgba(248,166,178,0.15);
  color: #d4677a;
}
.sp-like-btn .like-heart {
  font-size: 1.1rem;
  transition: transform 0.3s;
}
.sp-like-btn.liked .like-heart {
  transform: scale(1.3);
}
/* Bio text */
.sp-bio {
  font-size: 0.78rem;
  color: var(--text-body);
  line-height: 1.7;
  padding: 4px 2px;
}
.sp-bio-motto {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive;
  font-size: 0.85rem;
  color: var(--text-header);
  line-height: 1.6;
  padding: 10px 12px;
  background: rgba(255,248,224,0.6);
  border-radius: 12px;
  border-left: 3px solid var(--accent-teal);
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .sp-side-col { display: none; }
  .sp-page { padding: 16px 16px 28px; }
}
.sp-title {
  font-family: 'ZCOOL KuaiLe', 'Noto Sans SC', cursive;
  font-size: 1.5rem;
  color: var(--text-body);
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}
.sp-meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.sp-date {
  font-family: Nunito, sans-serif;
  font-size: 0.75rem;
  color: rgba(114,93,66,0.6);
  background: rgba(114,93,66,0.06);
  padding: 3px 10px; border-radius: 6px;
}
.sp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-tags .card-tag {
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 12px; border-radius: 999px;
  border: 2px solid var(--sec-accent);
  color: var(--sec-accent);
  background: transparent;
  letter-spacing: 0.02em;
}

/* Description */
.sp-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 24px;
  padding: 0;
}
.sp-desc p { margin: 0 0 12px; }
.sp-desc p:last-child { margin-bottom: 0; }


/* Keep work detail images at their original aspect ratio. */
.sp-extra { margin-bottom: 24px; }
.sp-extra img {
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.sp-extra:empty { display: none; }

/* Back button at bottom */
.sp-back-bottom {
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  padding: 6px 20px;
  border: 2px solid rgba(114,93,66,0.25);
  border-radius: 50px;
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.sp-back-bottom:hover {
  border-color: rgba(114,93,66,0.5);
  background: rgba(114,93,66,0.06);
}

/* Penguin peek */
.sp-penguin {
  position: fixed;
  bottom: -8px; right: -6px;
  width: 64px; height: 64px;
  pointer-events: none; user-select: none;
  opacity: 0.45;
  transform: rotate(10deg);
  z-index: 151;
}
.sp-penguin img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 640px) {
  .sp-container { padding: 20px 14px 36px; }
  .sp-hero-img { width: 100%; }
  .sp-title { font-size: 1.2rem; }
  .sp-penguin { width: 40px; height: 40px; }
}
/* Mobile: always show arrows via tap, smaller cards */
@media (max-width: 640px) {
  .gallery-board { width: 94vw; }
  .memo-card { flex: 0 0 190px; }
  .memo-card:hover { transform: scale(1.03) rotate(-1deg); }
  .memo-img { height: 130px; }
  .gallery-arrow { opacity: 0.6; pointer-events: auto; }
}

/* === Loading Splash (animal-island-ui Loading + island scene) === */
.loading-splash {
  position: fixed; inset: 0; z-index: 200;
  background: black;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}
.loading-splash.reveal {
  --mask-r: 0;
  mask: radial-gradient(circle at center, transparent var(--mask-r), black calc(var(--mask-r) + 1px));
  animation: loading-reveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loading-reveal {
  to { --mask-r: 100vmax; }
}


/* Island scene — palm tree + fish */
.loading-island {
  position: relative;
  width: 120px; height: 90px;
  animation: loading-float 2.5s ease-in-out infinite;
}
@keyframes loading-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.loading-trunk {
  position: absolute;
  bottom: 18px; left: 50%;
  width: 6px; height: 50px;
  background: #b8956a;
  border-radius: 3px;
  transform: translateX(-50%) rotate(-5deg);
  transform-origin: bottom center;
}
.loading-frond {
  position: absolute;
  bottom: 64px; left: 50%;
  width: 4px; height: 28px;
  background: #6fba2c;
  border-radius: 0 50% 50% 0;
  transform-origin: bottom left;
}
.loading-frond:nth-child(2) { transform: translateX(-4px) rotate(-35deg); }
.loading-frond:nth-child(3) { transform: translateX(-4px) rotate(-70deg); }
.loading-frond:nth-child(4) { transform: translateX(-4px) rotate(-105deg); width: 5px; height: 24px; }
.loading-frond:nth-child(5) { transform: translateX(-2px) rotate(20deg); width: 4px; height: 26px; }
.loading-frond:nth-child(6) { transform: translateX(-2px) rotate(50deg); width: 3px; height: 22px; }
.loading-coconut {
  position: absolute;
  bottom: 64px; left: calc(50% - 2px);
  width: 8px; height: 8px;
  background: #8b6914;
  border-radius: 50%;
  transform: translate(-6px, 4px);
}
.loading-coconut + .loading-coconut {
  transform: translate(2px, 6px);
}
.loading-ground {
  position: absolute;
  bottom: 0; left: 50%;
  width: 70px; height: 18px;
  background: #c8bb8a;
  border-radius: 50%;
  transform: translateX(-50%);
}
.loading-fish {
  position: absolute;
  bottom: 12px;
  font-size: 16px;
  animation: loading-swim 3s ease-in-out infinite;
}
.loading-fish.f1 { left: 10px; animation-delay: 0s; }
.loading-fish.f2 { left: 85px; animation-delay: 1.5s; animation-duration: 3.5s; }
@keyframes loading-swim {
  0%, 100% { transform: translateX(0) translateY(0); }
  25%  { transform: translateX(6px) translateY(-4px); }
  50%  { transform: translateX(0) translateY(0); }
  75%  { transform: translateX(-6px) translateY(4px); }
}

/* Loading progress bar (animal-island-ui Progress: striped fill) */
.loading-progress-track {
  width: 200px;
  height: 20px;
  background: #f8f8f0;
  border: 2px solid #e8dcc8;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(114, 93, 66, 0.08);
}
.loading-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #0ec4b6;
  background-image: repeating-linear-gradient(
    -45deg,
    #0ec4b6 0, #0ec4b6 10px,
    #01b0a7 10px, #01b0a7 20px
  );
  background-size: 28.28px 28.28px;
  animation: loading-stripe 1s linear infinite;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes loading-stripe {
  0% { background-position: 0 0; }
  100% { background-position: -28.28px 0; }
}

.loading-label {
  font-family: Nunito, 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #19c8b9;
  letter-spacing: 0.04em;
}
.footer-sea {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
}
.footer-sea svg {
  width: 100%;
  height: auto;
  display: block;
}
/* === Section Divider (animal-island-ui SVG, per-section color) === */
.section-divider {
  width: min(720px, 90vw);
  margin: 0 auto;
  padding: 8px 0 4px;
  opacity: 0.5;
}
.section-divider svg {
  display: block;
  width: 100%;
  height: 14px;
}

.site-footer {
  text-align: center; padding: 24px 24px 40px;
  font-size: 0.75rem; color: var(--muted);
  background: var(--water);
}

/* === Back to top === */
.back-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--island-green); color: #fff;
  border: none; cursor: pointer; font-size: 1.2rem;
  box-shadow: var(--shadow); transition: transform 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.back-top:hover { transform: scale(1.1); }

/* === Responsive === */
@media (max-width: 600px) {
  .entry-scene { flex-direction: column; align-items: center; }
  .entry-penguin img { width: 100px; }
  .dodo-dialog { margin-left: 0; margin-top: -12px; border-radius: 28px; }
  .dodo-dialog::before { display: none; }
  .passport-body { flex-direction: column; align-items: center; }
  .pf-body { flex-direction: column; align-items: center; }
  .passport-wall { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

@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;
  }
}

