/* ---------------------------------------------------------
   pwcpwcpwcpwc — cold watercolor
   tokens
   paper   #eceef0 / #e3e7e8
   ink     #1c2126 / #49535c
   wash    #7c93a6 (blue) #8d87a3 (violet) #52706e (teal)
--------------------------------------------------------- */

:root{
  --paper: #ececee;
  --paper-2: #e1e5e7;
  --ink: #1c2126;
  --ink-soft: #4d565f;
  --ink-faint: #8a9096;
  --wash-blue: #7c93a6;
  --wash-violet: #8d87a3;
  --wash-teal: #4f6d6a;
  --line: rgba(23,27,31,0.18);
  --line-soft: rgba(23,27,31,0.09);
  --serif: 'Fraunces', 'Iowan Old Style', 'Times New Roman', serif;
  --mono: 'Quicksand', ui-rounded, 'SF Pro Rounded', 'Nunito', sans-serif;
}

*{ box-sizing: border-box; }

html,body{
  height:100%;
  margin:0;
}

body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
}

/* -------------------- watercolor field -------------------- */

.wash{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
}

.blot{
  position:absolute;
  border-radius: 46% 54% 61% 39% / 45% 40% 60% 55%;
  filter: blur(60px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  will-change: transform;
}

.blot-a{
  width: 46vw; height: 46vw;
  top: -12vw; left: -10vw;
  background: var(--wash-blue);
  animation: drift-a 46s ease-in-out infinite;
}
.blot-b{
  width: 38vw; height: 38vw;
  bottom: -14vw; right: -8vw;
  background: var(--wash-violet);
  animation: drift-b 52s ease-in-out infinite;
}
.blot-c{
  width: 26vw; height: 26vw;
  top: 32vh; right: 6vw;
  background: var(--wash-teal);
  opacity: 0.28;
  animation: drift-c 60s ease-in-out infinite;
}
.blot-d{
  width: 20vw; height: 20vw;
  bottom: 18vh; left: 4vw;
  background: var(--ink-soft);
  opacity: 0.10;
  animation: drift-a 70s ease-in-out infinite reverse;
}

@keyframes drift-a{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(3vw, 4vh) scale(1.06); }
}
@keyframes drift-b{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-4vw, -3vh) scale(1.08); }
}
@keyframes drift-c{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-2vw, 3vh) scale(0.94); }
}

.grain{
  position:absolute;
  inset:0;
  filter: url(#paper-grain);
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce){
  .blot{ animation: none !important; }
}

/* -------------------- stage -------------------- */

.stage{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  padding: 8vh 20px 12vh;
}

/* -------------------- the box -------------------- */

.box{
  position: relative;
  width: 360px;
  max-width: 90vw;
  border-radius: 34px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 1px solid var(--line-soft);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 36px 70px -28px rgba(23,27,31,0.22),
    0 10px 30px -18px rgba(23,27,31,0.16);
}

.box::before,
.box::after{
  content:"";
  position:absolute;
  pointer-events:none;
  filter: blur(26px);
  mix-blend-mode: multiply;
  opacity: 0.3;
  z-index: -1;
  border-radius: 50%;
}
.box::before{
  width: 130px; height: 130px;
  top: -34px; left: -30px;
  background: var(--wash-blue);
}
.box::after{
  width: 150px; height: 150px;
  bottom: -40px; right: -34px;
  background: var(--wash-violet);
}

.box-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.box-title{
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.box-title-dim{ color: var(--ink-faint); }

.box-sub{
  font-family: var(--mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* -------------------- tabs -------------------- */

.tabs{
  display:flex;
  gap: 6px;
  padding: 12px 14px 10px;
}

.tab{
  position:relative;
  flex: 1;
  appearance:none;
  background: none;
  border: none;
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  padding: 9px 6px;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s ease, background 0.35s ease;
}

.tab::before{
  content:"";
  position:absolute;
  inset: -20% -20%;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), var(--wash-blue) 0%, transparent 60%);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 0.5s ease;
  pointer-events:none;
  border-radius: inherit;
}

.tab:hover::before{ opacity: 0.28; }

.tab:hover{ color: var(--ink); }

.tab.is-active{
  color: var(--ink);
  background: rgba(23,27,31,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset;
}

.tab:focus-visible{
  outline: 1.5px solid var(--ink);
  outline-offset: 2px;
}

/* -------------------- panels -------------------- */

.panelwrap{
  position: relative;
  height: 300px;
}

.panel{
  position:absolute;
  inset:0;
  padding: 22px 22px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  display:flex;
  flex-direction: column;
}

.panel.is-active{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* shared centered panel (lore, mint) */

.panel-center{
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* lore */

.lore-text{
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  max-width: 250px;
}

.lore-final{
  display:block;
  margin-top: 12px;
  font-style: italic;
  color: var(--ink);
}

/* portfolio / deck */

.deck{
  position: relative;
  flex: 1;
  margin: 4px auto 0;
  width: 168px;
  height: 168px;
}

.deck-card{
  position:absolute;
  top:0; left:0;
  width: 168px;
  height: 168px;
  border-radius: 26px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  box-shadow: 0 10px 24px -12px rgba(23,27,31,0.3);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.6s ease, box-shadow 0.6s ease;
}

.deck-card img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(0.9) contrast(1.02);
  pointer-events: none;
}

.deck-caption{
  margin: 14px 0 0;
  text-align:center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* gains */

.gains-wrap{
  position: relative;
  flex:1;
  margin: -22px -22px -20px;
  border-radius: 0 0 34px 34px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.gains-blur{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  filter: blur(26px) saturate(0.7) brightness(0.85);
  transform: scale(1.2);
}

.gains-veil{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(28,33,38,0.55), rgba(28,33,38,0.72));
}

.gains-soon{
  position:relative;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #eef0f1;
  padding-left: 0.5em;
}

/* mint */

.mint-stats{
  margin: 4px auto 20px;
  width: 100%;
  max-width: 220px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.mint-stats > div{
  display:flex;
  flex-direction: column;
  align-items:center;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}

.mint-stats dt{
  font-family: var(--mono);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 4px;
}

.mint-stats dd{
  margin:0;
  font-size: 14px;
  color: var(--ink);
}

.mint-btn{
  position:relative;
  margin: 0 auto 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 210px;
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration:none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  transition: color 0.35s ease;
}

.mint-btn::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--ink);
  border-radius: 999px;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}

.mint-btn span, .mint-btn{ z-index: 1; }

.mint-btn:hover{ color: var(--paper); }
.mint-btn:hover::before{ transform: scale(1); }

.mint-btn:focus-visible{
  outline: 1.5px solid var(--ink);
  outline-offset: 2px;
}

/* -------------------- footer -------------------- */

.foot{
  margin-top: 26px;
  display:flex;
  gap: 14px;
  align-items:center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.foot a{
  color: var(--ink-faint);
  text-decoration:none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.3s ease;
}
.foot a:hover{ color: var(--ink); }

/* -------------------- lightbox -------------------- */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(28,33,38,0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.lightbox.is-open{
  opacity: 1;
  visibility: visible;
}

.lightbox-bubble{
  width: min(78vw, 340px);
  height: min(78vw, 340px);
  border-radius: 40px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 40px 80px -20px rgba(23,27,31,0.4);
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}

.lightbox.is-open .lightbox-bubble{
  transform: scale(1);
}

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

/* -------------------- responsive -------------------- */

@media (max-width: 420px){
  .box{ width: 92vw; }
  .panelwrap{ height: 330px; }
  .deck, .deck-card{ width: 150px; height: 150px; }
  .mint-stats{ grid-template-columns: 1fr 1fr; }
}
