:root{
  --bg:#f1f2f6;
  --white:#ffffff;
  --paper:#fbfbfd;
  --lavender:#d8d4f7;
  --lavender-2:#c8c2ef;
  --blue:#d5e7f7;
  --blue-2:#bcd2e9;
  --mist:#e7e9ef;
  --line:#c5c9d8;
  --line-soft:#d8dbe6;
  --text:#727788;
  --muted:#9ca2b1;
  --shadow:0 18px 40px rgba(103,110,137,.14);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  min-height:100vh;display:flex;align-items:center;justify-content:center;padding:34px 18px;
  color:var(--text);
  background:
    radial-gradient(circle at 17% 22%,rgba(210,207,246,.55),transparent 18%),
    radial-gradient(circle at 81% 73%,rgba(209,229,247,.58),transparent 20%),
    linear-gradient(145deg,#f4f4f8 0%,#eceef3 100%);
  font-family:Inter,Pretendard,"Noto Sans KR","Segoe UI",sans-serif;
}
body::before{
  content:"";position:fixed;inset:0;pointer-events:none;opacity:.18;
  background-image:radial-gradient(rgba(95,101,126,.25) .65px,transparent .65px);background-size:8px 8px
}
.page-bg{position:fixed;inset:0;pointer-events:none;overflow:hidden}
.bg-orb{position:absolute;border-radius:50%;filter:blur(5px);opacity:.55}
.orb-a{width:110px;height:110px;left:8%;top:14%;background:#d9d6f6}
.orb-b{width:130px;height:130px;right:7%;bottom:12%;background:#d4e7f5}
.bg-star{position:absolute;color:#c5c7df;font-size:18px}
.star-a{left:11%;bottom:17%}.star-b{right:11%;top:18%;color:#cbdced}
.site-shell{width:min(620px,94vw);position:relative;z-index:2}
.mini-window{
  overflow:hidden;border:2px solid #bfc4d6;border-radius:22px;background:rgba(251,251,253,.94);
  box-shadow:var(--shadow);backdrop-filter:blur(12px)
}
.window-bar{
  height:48px;display:grid;grid-template-columns:82px 1fr 82px;align-items:center;gap:10px;padding:0 14px;
  border-bottom:2px solid #c7cada;background:linear-gradient(110deg,#d7d2f8 0%,#eceafa 45%,#d3e7f8 100%)
}
.traffic{display:flex;gap:6px}.traffic span{width:8px;height:8px;border-radius:50%;background:#fff;border:1.5px solid #aeb4c9}
.address-pill{
  justify-self:center;width:min(270px,100%);padding:5px 10px;border:2px solid #bcc2d5;border-radius:999px;
  background:rgba(255,255,255,.82);text-align:center;font-size:10px;letter-spacing:.14em;color:#a0a6b5
}
.window-tools{display:flex;justify-content:flex-end;gap:6px}
.window-tools span{width:20px;height:20px;border-radius:7px;border:1.5px solid #aeb4c9;background:rgba(255,255,255,.8)}
.window-body{padding:16px 18px 18px}
.eyebrow{text-align:center;font-size:11px;font-weight:700;letter-spacing:.14em;color:#9aa0b0;margin-bottom:10px}
.tabs{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin-bottom:15px}
.tab{
  appearance:none;border:2px solid #c4c8d8;border-radius:999px;background:#fff;color:#8f95a4;
  padding:7px 12px 6px;font:700 10px/1 Inter,Pretendard,sans-serif;letter-spacing:.1em;cursor:pointer;transition:.18s ease
}
.tab:hover,.tab.is-active{
  color:#6f7488;border-color:#b8b7dd;background:linear-gradient(135deg,#e7e2fb 0%,#f0edfc 48%,#dcecf8 100%);transform:translateY(-1px)
}
.page{display:none;min-height:390px}.page.is-active{display:block;animation:fade .24s ease both}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.page-heading{
  display:flex;align-items:center;justify-content:center;gap:9px;margin:4px 0 14px;padding-bottom:10px;
  border-bottom:2px solid transparent;
  border-image:linear-gradient(90deg,transparent 0%,#cbc5ef 22%,#b9cde6 50%,#cbc5ef 78%,transparent 100%) 1
}
.page-heading span{font-size:12px;color:#bbbdd7}.page-heading h1{margin:0;font-size:20px;letter-spacing:.18em;color:#71778a}

.main-layout{display:grid;grid-template-columns:1.05fr .95fr;gap:10px}
.image-card,.intro-card,.wide-note,.text-card,.timeline-card,.gallery-item,.genre-card{
  border:2px solid #c9cddc;border-radius:15px;
  background:linear-gradient(145deg,#ffffff 0%,#f5f4fb 50%,#edf4fa 100%);
  box-shadow:0 7px 16px rgba(112,119,144,.07)
}
.gradient-card{background:linear-gradient(145deg,#ded9fa 0%,#f0ecfc 46%,#d8eaf8 100%)}
.image-card.large{min-height:195px}
.image-slot{
  height:100%;min-height:180px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:12px;
  color:#a8adba;font-size:11px;letter-spacing:.1em;
  background:linear-gradient(135deg,rgba(220,216,248,.9),rgba(236,241,249,.65)),repeating-linear-gradient(45deg,transparent 0 10px,rgba(255,255,255,.35) 10px 20px)
}
.image-slot img{width:100%;height:100%;object-fit:cover;display:block}
.intro-card{min-height:195px;padding:18px 16px;display:flex;flex-direction:column;justify-content:center}
.mini-label{font-size:9px;font-weight:800;letter-spacing:.16em;color:#8f95a7;margin-bottom:7px}
.dream-type,.catchphrase{margin:0;color:#6d7487}.dream-type{font-size:13px;line-height:1.6;font-weight:650}.catchphrase{font-size:14px;line-height:1.65}
.rule{height:2px;margin:13px 0;background:linear-gradient(90deg,#bfb9e7,#b7cfe6);border-radius:999px}
.tiny-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}
.tiny-tags span{padding:4px 7px;border:1.5px solid rgba(168,174,199,.75);border-radius:999px;background:rgba(255,255,255,.62);font-size:9px;color:#9298a8}
.wide-note{grid-column:1/-1;min-height:80px;padding:13px}

.dream-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:10px}
.dream-grid .image-card{min-height:215px}.text-card{padding:12px;min-height:215px}.timeline-card{grid-column:1/-1;min-height:95px;padding:12px}
.content-text{min-height:52px;white-space:pre-wrap;font-size:12px;line-height:1.75;color:#777d8e}

.genre-list{display:grid;gap:10px}
.genre-card{overflow:hidden}
.genre-toggle{
  width:100%;border:0;background:linear-gradient(105deg,#e6e2fb 0%,#f5f3fd 48%,#dcecf8 100%);
  padding:12px 14px;display:flex;align-items:center;justify-content:space-between;color:#747a8d;
  font:800 12px/1.2 Inter,Pretendard,sans-serif;letter-spacing:.08em;cursor:pointer
}
.genre-toggle .arrow{transition:.2s ease;font-size:12px}
.genre-card.open .arrow{transform:rotate(180deg)}
.genre-body{display:none;padding:10px 12px 12px}.genre-card.open .genre-body{display:block}
.character-list{display:flex;flex-wrap:wrap;gap:7px}
.character-chip{
  padding:6px 9px;border:1.7px solid #c9cddd;border-radius:999px;background:#fff;font-size:10px;color:#858b9c
}
.genre-empty{text-align:center;color:#adb2bf;font-size:11px;padding:26px 10px}

.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.gallery-item{
  aspect-ratio:1/1;padding:0;overflow:hidden;cursor:pointer;position:relative;text-decoration:none;
  display:block;transition:.18s ease
}
.gallery-item img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-item:hover{transform:translateY(-2px);border-color:#b8b9dd}
.gallery-label{
  position:absolute;left:6px;right:6px;bottom:6px;padding:5px 7px;border:1.5px solid rgba(190,195,214,.82);
  border-radius:999px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);
  color:#7d8497;font-size:9px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.gallery-empty{
  aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;border:2px dashed #cbd0df;border-radius:15px;
  color:#acb1bd;font-size:10px;background:linear-gradient(145deg,#e8e5fa,#f6f3fd 48%,#e2eff8)
}
.mini-footer{text-align:center;margin-top:14px;font-size:9px;letter-spacing:.12em;color:#aab0bc}

.password-modal{border:0;background:transparent;padding:0;max-width:min(92vw,360px);width:100%}
.password-modal::backdrop{background:rgba(65,70,88,.45);backdrop-filter:blur(4px)}
.password-card{
  position:relative;border:2px solid #bfc4d6;border-radius:19px;padding:22px;background:linear-gradient(145deg,#fff,#f0edfb 52%,#e2eff8);
  box-shadow:0 20px 48px rgba(70,77,103,.25);color:#747b8e
}
.password-card h2{margin:4px 0 7px;font-size:23px;letter-spacing:.12em}.password-card p{margin:0 0 13px;font-size:12px;color:#9298a8}
.modal-kicker{font-size:9px;font-weight:800;letter-spacing:.15em;color:#9ea4b4}
.password-card input{
  width:100%;border:2px solid #c4c9da;border-radius:11px;background:#fff;padding:10px 11px;color:#6f7587;outline:none
}
.modal-submit{
  width:100%;margin-top:9px;border:2px solid #b9bcda;border-radius:999px;padding:9px;
  background:linear-gradient(135deg,#ded9fa,#eef0fb 48%,#d8e9f7);color:#73798d;font-weight:800;cursor:pointer
}
.modal-close{position:absolute;right:11px;top:10px;border:0;background:transparent;color:#9298a7;font-size:20px;cursor:pointer}
.modal-status{min-height:18px;margin-top:7px;font-size:10px;color:#a07d8b;text-align:center}

@media(max-width:620px){
  body{padding:18px 10px}.site-shell{width:min(96vw,560px)}.window-body{padding:14px 13px 15px}
  .window-bar{grid-template-columns:70px 1fr 70px;padding:0 10px}
  .main-layout,.dream-grid{grid-template-columns:1fr}.timeline-card,.wide-note{grid-column:auto}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}.page{min-height:370px}
}

/* v2.1: public MAIN uses content only; admin labels stay in edit.html */
.intro-card .dream-type,
.intro-card .catchphrase{width:100%}

/* v2.2 gallery: use the full available width */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  gap:10px;
  width:100%;
}

.gallery-item,
.gallery-empty{
  width:100%;
  min-width:0;
  aspect-ratio:1 / 1;
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* If there is only one gallery item, let it occupy the whole row. */
.gallery-grid > :only-child{
  grid-column:1 / -1;
  aspect-ratio:16 / 9;
}

@media(max-width:620px){
  .gallery-grid{
    grid-template-columns:repeat(auto-fit,minmax(125px,1fr));
  }
  .gallery-grid > :only-child{
    aspect-ratio:4 / 3;
  }
}

/* v2.3 social footer */
.mini-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.sns-link{
  width:25px;
  height:25px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid #c3c7d9;
  border-radius:8px;
  background:linear-gradient(135deg,#ffffff 0%,#eeebfb 52%,#e0edf8 100%);
  color:#7d8395;
  text-decoration:none;
  box-shadow:0 4px 10px rgba(105,113,140,.07);
  transition:.18s ease;
}

.sns-link:hover{
  transform:translateY(-1px);
  border-color:#b7b8db;
  background:linear-gradient(135deg,#e7e2fb 0%,#f1effc 48%,#dcecf8 100%);
}

.sns-link svg{
  width:11px;
  height:11px;
  fill:currentColor;
}

.sns-link.is-hidden{
  display:none;
}

/* =========================================================
   v2.4 visual polish
   - softer mini-homepage look
   - clearer purple/blue accents
   - slightly cuter Y2K details
   ========================================================= */

:root{
  --lavender:#d7d1fb;
  --lavender-2:#bdb6ee;
  --blue:#d8eafb;
  --blue-2:#b9d2ea;
  --line:#bcc2d6;
  --text:#6f7588;
  --muted:#9aa1b2;
}

/* background: a little more dreamy, still very light */
body{
  background:
    radial-gradient(circle at 16% 17%,rgba(205,198,248,.58),transparent 20%),
    radial-gradient(circle at 84% 80%,rgba(204,228,248,.62),transparent 23%),
    linear-gradient(150deg,#f7f7fa 0%,#eef0f5 58%,#f6f8fb 100%);
}

/* window becomes a little more compact and glossy */
.mini-window{
  border:2.5px solid #b8bfd4;
  border-radius:24px;
  background:
    linear-gradient(rgba(255,255,255,.93),rgba(252,252,255,.93)) padding-box;
  box-shadow:
    0 22px 55px rgba(105,112,141,.15),
    0 3px 0 rgba(255,255,255,.9) inset;
}

.window-bar{
  height:50px;
  border-bottom:2.5px solid #c0c6d8;
  background:
    linear-gradient(110deg,#d4cef8 0%,#e7e2fb 38%,#edf1fb 55%,#cfe4f6 100%);
  position:relative;
}
.window-bar::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-2px;
  height:5px;
  opacity:.45;
  background:
    repeating-linear-gradient(
      90deg,
      #c6bff0 0 7px,
      #dce9f7 7px 14px
    );
}

.address-pill{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(249,249,252,.82));
  border-color:#b7bed2;
  color:#969daf;
  box-shadow:0 1px 0 rgba(255,255,255,.95) inset;
}

/* cute little center label */
.eyebrow{
  width:max-content;
  margin:2px auto 11px;
  padding:4px 9px;
  border:1.5px solid #d2d5e3;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  box-shadow:0 3px 10px rgba(110,117,143,.05);
}

/* tabs: slightly rounder and more glossy */
.tab{
  min-height:31px;
  border:2px solid #c0c5d8;
  box-shadow:
    0 4px 10px rgba(114,121,146,.055),
    0 1px 0 rgba(255,255,255,.95) inset;
  background:linear-gradient(180deg,#fff 0%,#f7f8fb 100%);
}
.tab:hover,
.tab.is-active{
  border-color:#aaaede;
  background:
    linear-gradient(135deg,#ded8fb 0%,#efeafb 48%,#d8eafa 100%);
  box-shadow:
    0 5px 12px rgba(104,111,142,.08),
    0 1px 0 rgba(255,255,255,.9) inset;
}

/* title line becomes more decorative */
.page-heading{
  position:relative;
  margin-top:6px;
  margin-bottom:16px;
}
.page-heading::before,
.page-heading::after{
  content:"♡";
  position:absolute;
  bottom:-7px;
  font-size:8px;
  color:#c3c6de;
  background:#fbfbfd;
  padding:0 4px;
}
.page-heading::before{left:25%}
.page-heading::after{right:25%}

.page-heading h1{
  font-size:21px;
  font-weight:800;
  letter-spacing:.2em;
  text-shadow:0 1px 0 #fff;
}

/* cards: stronger visual separation + prettier gradient */
.image-card,
.intro-card,
.wide-note,
.text-card,
.timeline-card,
.gallery-item,
.genre-card{
  border:2px solid #c2c7d9;
  box-shadow:
    0 8px 20px rgba(107,115,143,.07),
    0 1px 0 rgba(255,255,255,.95) inset;
}

.gradient-card{
  background:
    radial-gradient(circle at 18% 15%,rgba(255,255,255,.7),transparent 23%),
    linear-gradient(145deg,#ddd7fb 0%,#eeebfc 42%,#d8eafb 100%);
}

.intro-card{
  position:relative;
  overflow:hidden;
}
.intro-card::after{
  content:"✦";
  position:absolute;
  right:12px;
  top:10px;
  color:#c2c5df;
  font-size:13px;
  transform:rotate(8deg);
}

.wide-note{
  background:
    linear-gradient(90deg,rgba(255,255,255,.95),rgba(244,241,252,.86),rgba(235,244,251,.88));
}

/* image placeholders prettier before an image is uploaded */
.image-slot{
  border:1px solid rgba(255,255,255,.65);
  background:
    radial-gradient(circle at 18% 22%,rgba(255,255,255,.72),transparent 20%),
    linear-gradient(140deg,#dcd7f7 0%,#ebeafb 46%,#d9e9f5 100%);
}

/* list toggles */
.genre-card{
  border-radius:16px;
}
.genre-toggle{
  min-height:44px;
  background:
    linear-gradient(105deg,#ded9fa 0%,#f2eefc 48%,#d9eaf8 100%);
}
.character-chip{
  border:1.8px solid #c2c7d9;
  background:linear-gradient(180deg,#fff,#f7f8fb);
  box-shadow:0 3px 8px rgba(106,113,140,.04);
}

/* gallery cards: slight photo-polaroid feel */
.gallery-item{
  border-radius:16px;
  background:#fff;
  padding:5px;
}
.gallery-item img{
  border-radius:11px;
}
.gallery-item:hover{
  transform:translateY(-3px) rotate(-.15deg);
  box-shadow:0 12px 24px rgba(103,111,139,.12);
}
.gallery-label{
  left:10px;
  right:10px;
  bottom:10px;
}

/* footer / SNS */
.mini-footer{
  margin-top:17px;
  padding-top:10px;
  border-top:1.5px dashed #d4d7e3;
}
.sns-link{
  width:28px;
  height:28px;
  border-radius:10px;
  border-width:2px;
  background:
    linear-gradient(135deg,#e2ddfb 0%,#f7f5fd 46%,#dcebf7 100%);
}
.sns-link svg{
  width:12px;
  height:12px;
}

/* password modal: a little more polished */
.password-card{
  border:2.5px solid #b9bfd4;
  border-radius:21px;
  background:
    radial-gradient(circle at 82% 18%,rgba(216,231,248,.72),transparent 28%),
    linear-gradient(145deg,#ffffff 0%,#f0edfc 52%,#e4eef8 100%);
}
.password-card::before{
  content:"✦  ♡  ✦";
  display:block;
  margin-bottom:8px;
  font-size:9px;
  letter-spacing:.28em;
  color:#bbbfd7;
}
.modal-submit{
  min-height:39px;
  background:linear-gradient(100deg,#ddd8fb,#eceafd 45%,#d9eafa);
}

/* responsive: keep the tiny-card vibe */
@media(max-width:620px){
  .mini-window{border-radius:20px}
  .page-heading h1{font-size:19px}
}

/* =========================================================
   v2.5 entrance + gentle motion
   ========================================================= */

/* Start softly blurred, then reveal */
body{
  animation: pageReveal 1.15s cubic-bezier(.22,.8,.24,1) both;
}

.site-shell{
  animation: shellReveal 1.3s cubic-bezier(.2,.82,.24,1) both;
  transform-origin:center center;
}

@keyframes pageReveal{
  0%{
    opacity:0;
    filter:blur(16px);
  }
  42%{
    opacity:.72;
    filter:blur(8px);
  }
  100%{
    opacity:1;
    filter:blur(0);
  }
}

@keyframes shellReveal{
  0%{
    opacity:0;
    transform:translateY(13px) scale(.975);
    filter:blur(11px);
  }
  55%{
    opacity:.88;
    filter:blur(3px);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}

/* Gentle floating decorative pieces */
.orb-a{
  animation: floatA 8.5s ease-in-out infinite alternate;
}
.orb-b{
  animation: floatB 10s ease-in-out infinite alternate;
}
.star-a{
  animation: starFloatA 6.5s ease-in-out infinite alternate;
}
.star-b{
  animation: starFloatB 7.5s ease-in-out infinite alternate;
}

@keyframes floatA{
  0%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(18px,-12px,0) scale(1.06)}
  100%{transform:translate3d(-8px,16px,0) scale(.96)}
}

@keyframes floatB{
  0%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-16px,10px,0) scale(.95)}
  100%{transform:translate3d(10px,-18px,0) scale(1.05)}
}

@keyframes starFloatA{
  0%{transform:translateY(0) rotate(0deg);opacity:.55}
  100%{transform:translateY(-14px) rotate(12deg);opacity:.9}
}

@keyframes starFloatB{
  0%{transform:translateY(0) rotate(0deg);opacity:.5}
  100%{transform:translateY(11px) rotate(-10deg);opacity:.85}
}

/* Slight living motion for the top chrome and cards */
.address-pill{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:9px;
  letter-spacing:.04em;
}

.mini-window{
  animation: windowBreathe 7s ease-in-out 1.4s infinite alternate;
}

@keyframes windowBreathe{
  0%{transform:translateY(0)}
  100%{transform:translateY(-2px)}
}

/* Keep motion subtle for accessibility */
@media (prefers-reduced-motion: reduce){
  body,
  .site-shell,
  .orb-a,
  .orb-b,
  .star-a,
  .star-b,
  .mini-window{
    animation:none !important;
  }
}


/* v2.5.1 - Text 2 size adjustment */
#text2{
  font-size:14px;
  line-height:1.65;
  font-weight:500;
  letter-spacing:.01em;
}


/* =========================================================
   v2.5.2 - reliable reload blur/fade
   Uses a fixed curtain instead of relying only on body filter.
   ========================================================= */
.load-curtain{
  position:fixed;
  inset:0;
  z-index:99999;
  pointer-events:none;

  /* frosted layer so the page beneath is visibly blurred */
  background:rgba(247,248,252,.72);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);

  opacity:1;
  animation:loadCurtainOut 1.35s cubic-bezier(.22,.78,.24,1) .08s forwards;
}

@keyframes loadCurtainOut{
  0%{
    opacity:1;
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
  }
  45%{
    opacity:.72;
    -webkit-backdrop-filter:blur(11px);
    backdrop-filter:blur(11px);
  }
  75%{
    opacity:.28;
    -webkit-backdrop-filter:blur(5px);
    backdrop-filter:blur(5px);
  }
  100%{
    opacity:0;
    -webkit-backdrop-filter:blur(0);
    backdrop-filter:blur(0);
    visibility:hidden;
  }
}

/* Also soften the content itself during the first moment */
.site-shell{
  animation:
    shellReveal 1.3s cubic-bezier(.2,.82,.24,1) both,
    firstFocus 1.15s ease-out both;
}

@keyframes firstFocus{
  0%{filter:blur(7px)}
  100%{filter:blur(0)}
}

@media (prefers-reduced-motion: reduce){
  .load-curtain{
    animation:none !important;
    opacity:0;
    visibility:hidden;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
}


/* =========================================================
   v2.5.3 - soft reload without black flash
   No backdrop-filter / full-screen compositing layer.
   ========================================================= */
.load-curtain{
  display:none !important;
}

/* Force a light canvas even before the rest of the CSS paints. */
html{
  background:#f4f5f9 !important;
}
body{
  background:
    radial-gradient(circle at 16% 17%,rgba(205,198,248,.58),transparent 20%),
    radial-gradient(circle at 84% 80%,rgba(204,228,248,.62),transparent 23%),
    linear-gradient(150deg,#f7f7fa 0%,#eef0f5 58%,#f6f8fb 100%) !important;
}

/* Blur only the actual site content. This avoids the black frame caused by
   animating backdrop-filter over the entire viewport. */
.site-shell{
  animation:
    safeSoftReveal 1.25s cubic-bezier(.22,.78,.24,1) both !important;
  will-change:opacity,filter,transform;
}

@keyframes safeSoftReveal{
  0%{
    opacity:.08;
    filter:blur(12px);
    transform:translateY(7px) scale(.992);
  }
  35%{
    opacity:.48;
    filter:blur(8px);
  }
  70%{
    opacity:.86;
    filter:blur(3px);
  }
  100%{
    opacity:1;
    filter:blur(0);
    transform:translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce){
  .site-shell{
    animation:none !important;
    opacity:1;
    filter:none;
    transform:none;
  }
}


/* =========================================================
   v2.5.4 - HEAVY BLUR reload entrance
   No white/light overlay. The actual page itself starts very blurry.
   ========================================================= */

/* Restore the normal site background; do not place a bright cover over it. */
html{
  background:initial !important;
}

/* The whole visible site starts extremely out of focus,
   then slowly comes into focus on every load/reload. */
.site-shell{
  opacity:1 !important;
  animation:heavyBlurReveal .25s ease-out both !important;
  transform-origin:center center;
  will-change:filter,transform;
}

@keyframes heavyBlurReveal{
  0%{
    filter:blur(34px);
    transform:scale(1.025);
  }
  22%{
    filter:blur(27px);
    transform:scale(1.018);
  }
  48%{
    filter:blur(18px);
    transform:scale(1.011);
  }
  72%{
    filter:blur(8px);
    transform:scale(1.004);
  }
  100%{
    filter:blur(0);
    transform:scale(1);
  }
}

/* Keep the original background visible from the first frame. */
body{
  animation:none !important;
}

/* Override the previous softer reveal. */
@media (prefers-reduced-motion: no-preference){
  .site-shell{
    animation:heavyBlurReveal .25s ease-out both !important;
  }
}


/* v2.5.7 - definitive Text 2 override */
#text2,
.text2-small,
.intro-card #text2{
  font-size:11px !important;
  font-weight:400 !important;
  line-height:1.45 !important;
  letter-spacing:0 !important;
}


/* =========================================================
   v2.6 layout refresh
   MAIN: image left / all text right
   DREAM: larger image + Text 4 only
   Footer heart removed in HTML
   ========================================================= */

.main-layout.main-split{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:12px;
  align-items:stretch;
}

.main-image-card{
  min-height:340px !important;
  height:100%;
}

.main-image-card .image-slot{
  height:100%;
  min-height:340px;
}

.main-text-column{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:12px;
  min-width:0;
}

.main-text-column .intro-card{
  min-height:0;
  padding:20px 18px;
}

.main-text-column .main-note{
  grid-column:auto !important;
  min-height:0;
  padding:16px 18px;
  display:flex;
  align-items:flex-start;
}

.main-text-column .main-note .content-text{
  width:100%;
}

.dream-grid.dream-simple{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.dream-image-card{
  min-height:0 !important;
  aspect-ratio:16/8.6;
}

.dream-image-card .image-slot{
  height:100%;
  min-height:300px;
}

.dream-line{
  min-height:0 !important;
  padding:15px 18px;
  display:flex;
  align-items:center;
}

.dream-line .content-text{
  width:100%;
  min-height:1.5em;
}

/* Keep uploaded images filling the enlarged slots cleanly. */
.main-image-card .image-slot img,
.dream-image-card .image-slot img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* Footer is cleaner and slightly tighter now. */
.mini-footer{
  gap:8px;
}
.mini-footer > span{
  white-space:nowrap;
}

@media(max-width:620px){
  .main-layout.main-split{
    grid-template-columns:1fr;
  }

  .main-image-card,
  .main-image-card .image-slot{
    min-height:280px !important;
  }

  .dream-image-card{
    aspect-ratio:4/3;
  }

  .dream-image-card .image-slot{
    min-height:250px;
  }
}
