@import url('https://fonts.googleapis.com/css2?family=Chicle&family=Nunito:wght@200;400;600&display=swap');

/* ========================
   DESIGN TOKENS
   ======================== */
:root{
  --muted:#5f6c67;
  --paper:#f7f4ef;
  --card:#ffffff;
  --edge:rgba(0,0,0,.08);
  --radius:16px;

  --shadow:0 6px 18px rgba(0,0,0,.06);
  --shadow-soft:0 10px 22px rgba(0,0,0,.05);

  --ink:#4b3d33;
  --ink-soft:#7b6a5b;
  --accent:#de7c7a;

  --brand:#6b5a4c;
  --brand-strong:#56493e;
  --brand-ink:#2e241d;

  --ring:#b88966;
}

/* ========================
   BASE
   ======================== */
html,
body{
  height:100%;
}

body{
  margin:0;
  color:var(--ink);
  font:16px/1.65 Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight:200;
  background:
    repeating-linear-gradient(90deg, rgba(75,61,51,.01) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(75,61,51,.01) 0 1px, transparent 1px 3px),
    linear-gradient(to bottom, rgba(75,61,51,.04) 1px, transparent 1px) repeat-y,
    radial-gradient(60% 40% at 50% -10%, #eef5f2 0%, #faf8f4 60%, #f6f2ec 100%);
  background-size:3px 3px, 3px 3px, 100% 28px, auto;
  background-attachment:fixed;
}

a{
  color:var(--brand);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

:where(a, button):focus-visible{
  outline:3px solid var(--ring);
  outline-offset:2px;
  border-radius:10px;
}

/* ========================
   SITE HEADER
   ======================== */
.site-header{
  padding:24px 16px 0;
}

.site-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  margin:24px 0 12px;

  font-family:'Chicle', cursive;
  font-size:clamp(4rem, 6vw, 5rem);
  line-height:1.05;
  text-align:center;
  color:var(--accent);
  text-shadow:0 2px 0 rgba(0,0,0,.22), 0 4px 10px rgba(0,0,0,.16);
}

.site-tagline{
  margin-top:10px;
  font-size:0.9rem;
  color:#5f5f5f;
  text-align:center;
}

@media (max-width:420px){
  .site-title{
    gap:.35rem;
  }
}

/* ========================
   DREAM ROOMS
   ======================== */
.dream-rooms{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px 12px;
  margin:16px auto 0;
}

.dream-room{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;

  color:#b97d75;
  background:transparent;
  border:1px dashed rgba(222,178,165,.55);

  font-size:0.95rem;
  line-height:1;
  text-decoration:none;
  transition:background .18s ease, color .18s ease;
}

.dream-room:hover{
  background:rgba(255,240,236,.55);
}

.dream-room:focus-visible{
  outline:2px solid rgba(185,125,117,.35);
  outline-offset:2px;
}

/* ========================
   DIVIDER
   ======================== */
.cozy-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#d07b73;
  font-size:14px;
  padding-top:25px;
}

.cozy-divider::before,
.cozy-divider::after{
  content:"";
  flex:1;
  height:1px;
  margin:0 12px;
  background:linear-gradient(to right, transparent, #e3a8a0, transparent);
}

/* ========================
   SITE COLLECTIVE
   ======================== */
.foyer,
.feed,
.pagination{
  max-width:800px;
  margin-left:auto;
  margin-right:auto;
}

.dreamtyme-explore{
  margin:10px 0 55px;
  padding:0 12px 6px;
  border:1px solid #c89a92;
  border-radius:10px;
  background:rgba(232,149,138,.25);
  box-shadow:0 0 30px rgba(232,149,138,.25);
}

.dreamtyme-explore legend{
  padding:0 6px;
  font-family:"Chicle", cursive;
  font-size:1.5rem;
  font-weight:600;
  letter-spacing:.5px;
  color:#c89a92;
}

.dreamtyme-links{
  text-align:center;
}

.dreamtyme-links a{
  display:inline-block;
  margin:0 12px;
  color:#e8958a;
  font-size:0.75rem;
  font-weight:600;
  letter-spacing:1.2px;
  text-transform:lowercase;
  text-decoration:none;
  transition:all .2s ease;
}

.dreamtyme-links a:hover{
  color:#c96f67;
  text-decoration:underline dotted;
  text-underline-offset:4px;
}

@media (max-width:600px){
  .dreamtyme-links{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    text-align:center;
  }
}

/* ========================
   POSTS
   ======================== */
.site-main{
  padding:0 16px;
}

.feed{
  display:grid;
  gap:16px;
}

.post{
  width:100%;
  box-sizing:border-box;
  margin:4px 0;
  padding:16px 18px;

  background:var(--card);
  border:1px solid #d5c4b5;
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);

  font-size:14px;
  transition:transform .25s ease, box-shadow .25s ease;
}

.post:first-child{
  margin-top:36px;
}

.post-hd{
  display:flex;
  align-items:center;
  margin-bottom:.8rem;
  padding-bottom:.4rem;
  color:#e07a72;
  font-weight:700;
  border-bottom:2px dotted rgba(106,86,71,.25);
}

.post-body p{
  margin:.6rem 0;
}

.post-body{
  display: flow-root;
}

.post-body img{
  display: inline-block;
  max-width: 48%;
  margin: .5rem 1%;
}

.post-body img{
  display: inline-block;
  max-width: 48%;;
  height:auto;
  margin: .5rem 1%;
  border-radius:10px;
}

.post-body figure{
  margin:.6rem auto;
  text-align:center;
}

.post-body figure figcaption{
  margin-top:.25rem;
  font-size:.875rem;
  color:var(--muted);
}

.post-body blockquote{
  margin:.75rem 0;
  padding:.75rem 1rem;
  background:#faf5f1;
  border-left:4px solid var(--brand-strong);
  border-radius:8px;
  color:var(--brand-ink);
}

.post-body code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background:#f3efe9;
  padding:.1rem .3rem;
  border-radius:4px;
}

.post-body pre{
  overflow:auto;
  padding:1rem;
  background:#23201d;
  color:#f5efe7;
  border-radius:10px;
}

.post-link{
  margin-top:1rem;
  text-align:right;
}

.visit-link{
  display:inline-flex;
  align-items:baseline;
  gap:.35rem;
  font-family:"Chicle", cursive;
  font-size:1.25rem;
  letter-spacing:.5px;
  text-decoration:none;
  opacity:.9;
}

.visit-link:hover,
.visit-link:focus-visible{
  text-decoration:underline;
  opacity:1;
}

.visit-link span{
  transform:translateY(1px);
}

.empty-state{
  text-align:center;
  color:var(--muted);
}

/* ========================
   PAGINATION
   ======================== */
.pagination{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:22px auto 40px;
}

.pagination a{
  font-weight:800;
  color:var(--brand);
  text-decoration:none;
}

.pagination a:hover{
  text-decoration:underline;
}

/* ========================
   FOOTER
   ======================== */
.site-footer{
  padding:0 16px 24px;
}

.copyright{
  text-align:center;
  font-size:0.9rem;
}

/* ========================
   MODALS
   ======================== */
.modal-overlay{
  position:fixed;
  inset:0;
  z-index:999;

  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;

  background:rgba(0,0,0,.55);
  animation:fadeIn .2s ease;
}

.modal{
  position:relative;
  width:min(560px, 100%);
  max-height:85vh;
  overflow-y:auto;
  padding:26px 24px 22px;

  background:#fffaf8;
  border:1px solid rgba(201,111,103,.22);
  border-radius:18px;
  box-shadow:0 14px 40px rgba(0,0,0,.20);

  animation:popIn .25s ease;
}

.modal-title{
  margin:0 0 10px;
  text-align:center;
  font-weight:600;
}

.modal-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0 0 18px;
}

.modal-divider .line{
  flex:1;
  height:1px;
  background:linear-gradient(to right, transparent, rgba(201,111,103,.35), transparent);
}

.modal-divider .diamond{
  color:#c96f67;
  font-size:14px;
}

.modal-body{
  line-height:1.6;
}

.modal-close{
  position:absolute;
  top:10px;
  right:12px;
  border:0;
  background:none;
  color:#c96f67;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

@keyframes fadeIn{
  from{ opacity:0; }
  to{ opacity:1; }
}

@keyframes popIn{
  from{
    opacity:0;
    transform:translateY(-8px) scale(0.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* ========================
   FANLISTINGS MODAL
   ======================== */
.fanlisting-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.fanlisting-link{
  position: relative;
  display: inline-block;
  line-height: 0;
}

.fanlisting-link img{
  display: block;
  transition: transform .15s ease, box-shadow .18s ease;
}

.fanlisting-link:hover img,
.fanlisting-link:focus-visible img{
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.fanlisting-link::after{
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;

  padding: 6px 10px;
  border-radius: 999px;
  background: #fffaf8;
  border: 1px solid rgba(201,111,103,.22);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);

  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--brand);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.fanlisting-link:hover::after,
.fanlisting-link:focus-visible::after{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* ========================
   CLIQUES MODAL
   ======================== */

.clique-badges{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.clique-badges img{
  display: block;
  image-rendering: pixelated;
}

.clique-list{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.clique-list p{
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

.clique-list a{
  color: var(--brand);
  text-decoration: none;
}

.clique-list a:hover{
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.clique-list img{
  vertical-align: middle;
}

.kpop-clique-custom{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bts-heart{
  color:#7b5cff;
}

.kpop-clique-custom span:first-child{
  color: var(--ink-soft);
}

.kpop-clique-custom span:last-child{
  font-weight: 600;
  color: var(--brand);
}

.bts-heart{
  color:#7e21a5 !important;
}
/* ========================
   ADOPTABLESS MODAL
   ======================== */
.adoptable-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  justify-items: center;
}

.adoptable-card{
  text-align: center;
}

.adoptable-card img{
  display: block;
  margin: 0 auto 8px;
}

.adoptable-name{
  margin: 0;
  font-weight: 600;
}

.adoptable-credit{
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ========================
   ACCESSIBILITY
   ======================== */
@media (prefers-reduced-motion: reduce){
  *{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}

.load-more-btn{
  display:block;
  margin:40px auto;
  padding:10px 18px;

  border:1px solid #d5c4b5;
  border-radius:12px;

  background:#fffaf8;
  color:var(--brand);

  font-family:"Chicle", cursive;
  font-size:1.1rem;

  cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease;
}

.load-more-btn:disabled {
  opacity: 0.75;
  background: #f5eee7;
}

.webring {
  text-align: center;
  margin: 45px auto 10px;
}

.webring-label,
.listed-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.listed {
  text-align: center;
  margin: 25px auto 10px;
}

