/* =========================================================
   Ivy Bluebell — direct copy of link.me dimensions
   Reference spec pulled from https://link.me/ivybluebell
   (see _ref_linkme*.css for the originals)
   ========================================================= */

:root {
  --bg-page: #09090B;
  --bg-card: #18181B;
  --ink: #FAFAFA;
  --ink-dim: rgba(250, 250, 250, 0.72);
  --ink-faint: rgba(250, 250, 250, 0.48);
  --pink: #FF4F99;
  --pink-soft: #FFAFCF;
  --pink-glow: rgba(255, 79, 153, 0.55);
  --gold: #F5D98E;
  --gold-soft: #FFE8C2;
  --gold-glow: rgba(245, 217, 142, 0.45);
  --cream: #FFF1E8;
  --line: rgba(250, 250, 250, 0.08);
  --line-hi: rgba(250, 250, 250, 0.16);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

a, button {
  -webkit-tap-highlight-color: rgba(255, 46, 134, 0.18);
  touch-action: manipulation;
}

button {
  -webkit-user-select: none;
  user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #09090B;
  overflow-x: hidden;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

/* link.me .bg-image — fixed, cover, blur(50px) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  background: url('assets/hero.png') center/cover no-repeat;
  filter: blur(50px) saturate(1.25);
  transform: scale(1.1);
  z-index: -2;
}

/* link.me hides the blurred bg on mobile — content fills 100vw anyway */
@media (max-width: 640px) {
  body::before { display: none; }
}

/* link.me has no drifting particles — hide canvas entirely */
#particles { display: none; }

/* =========================================================
   Container (link.me .userprofilepage .container)
   desktop: 566px max, border-radius 30px, soft shadow
   mobile: 100vw, no radius, no shadow
   ========================================================= */

.stage {
  position: relative;
  z-index: 2;
  max-width: 566px;
  width: 100%;
  margin: 20px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 1px 10px 2px rgba(0, 0, 0, 0.5);
  background: #09090B;
}

@media (max-width: 640px) {
  .stage {
    max-width: 100vw;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
  }
}

.card {
  position: relative;
  overflow: hidden;
}

/* =========================================================
   Hero (link.me .userProfileImage)
   desktop: 566 × 546, border-radius 30px 30px 0 0
   mobile: 100vw × 100vw (square full-bleed)
   ========================================================= */

.hero {
  width: 100%;
  height: 546px;
  position: relative;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background: #0f0f12;
}

@media (max-width: 640px) {
  .hero {
    width: 100vw;
    height: 100vw;
    border-radius: 0;
  }
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.hero-img.missing { opacity: 0; }

.hero.no-img {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(232,180,200,0.22) 0%, transparent 60%),
    linear-gradient(160deg, #2a0e1f, #14090f 70%);
}

.hero.no-img::before {
  content: "hero.jpg";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink-faint);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* link.me .bottomshadow — 198px tall gradient at the bottom of the hero.
   Fades photo into the stage's solid black (#09090B) for a seamless blend. */
.hero-scrim {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 198px;
  background: linear-gradient(180deg,
    rgba(9, 9, 11, 0) 0%,
    rgba(9, 9, 11, 0.35) 45%,
    rgba(9, 9, 11, 0.82) 82%,
    #09090B 100%);
  pointer-events: none;
}

@media (max-width: 640px) {
  .hero-scrim { height: 52.8vw; }
}

/* name + handle + socials stacked at the bottom of the hero image */
.hero-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 0 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

/* link.me: font-size 32px; font-weight 750; letter-spacing 0.25px; line-height 40px */
.name {
  font-family: var(--sans);
  font-weight: 750;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0.25px;
  text-transform: capitalize;
  margin: 0 0 2px;
  color: #FAFAFA;
}

/* link.me .userNameAndCount: font-weight 500; 14/15; padding-bottom 8px */
.handle {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 15px;
  color: rgba(250, 250, 250, 0.82);
  margin: 0 0 8px;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
}

/* link.me .carousel-container: 520px wide, centered grid */
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 2px 0 11px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* link.me .socialicon: border-radius 25px */
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  opacity: 0.95;
}

.socials a:focus-visible { outline: none; opacity: 1; }

@media (hover: hover) {
  .socials a:hover {
    transform: translateY(-1px);
    opacity: 1;
  }
}

.socials svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* =========================================================
   Bio (link.me .userBio)
   width: calc(100% - 28px); margin 0 auto 11px; padding 8px
   border-radius 15px; font 14/18; center
   ========================================================= */

.bio {
  width: calc(100% - 28px);
  margin: 0 auto 11px;
  padding: 8px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  letter-spacing: 0;
}

.bio .heart {
  color: #FF1F8F;
  display: inline-block;
  opacity: 1;
  text-shadow:
    0 0 6px rgba(255, 31, 143, 0.65),
    0 0 14px rgba(255, 31, 143, 0.35);
  animation: heart-pulse 4s ease-in-out infinite;
}

.bio .heart:nth-child(2) { animation-delay: 0.4s; }
.bio .heart:nth-child(3) { animation-delay: 0.8s; }

@keyframes heart-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.10); opacity: 1; }
}

/* =========================================================
   Link tiles (link.me .listofalbum .singlealbum)
   2-col grid: calc(50% - 8px) × 151px, radius 12px, column-gap 12px
   Odd count: first tile promoted to full-width × 200px
   ========================================================= */

.tiles {
  width: 100%;
  padding: 6px 14px 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 12px;
  row-gap: 14px;
}

.tile {
  position: relative;
  display: block;
  width: calc(50% - 8px);
  height: 180px;
  border-radius: 12px;
  background: #0f0f12;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 0;
  color: var(--ink);
  text-decoration: none;
  border: none;
  transition: transform 0.25s var(--ease);
}

/* Odd tile count (3 tiles) — first one spans full width, taller */
.tiles > .tile:first-child:nth-last-child(3) {
  width: 100%;
  height: 260px;
}

.tiles > .tile:first-child:nth-last-child(3) .tile-img {
  object-position: center;
}

.tile:focus-visible { outline: none; }

@media (hover: hover) {
  .tile:hover { transform: translateY(-1px); }
}

.tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-img.missing { opacity: 0; }

.tile.no-img {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 79, 153, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, #2a1620, #150a12);
}

.tile.no-img::before {
  content: attr(data-placeholder, "tile image");
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
}

.tile[href*="OF_LINK"].no-img::before { content: "tile-exclusive.jpg"; }
.tile[data-open-shop].no-img::before { content: "tile-shop.jpg"; }
.tile[href*="AMAZON_WISHLIST_URL"].no-img::before { content: "tile-amazon.jpg"; }

/* link.me .imgbox:after — bottom-up darken gradient for label contrast */
.tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

/* link.me .albumtextbox .first: font-weight 600; 16px; center bottom */
.tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  width: 95%;
  margin: 0 auto;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  z-index: 2;
}

/* link.me .singlebigitem: label 18–20px on the promoted full-width tile */
.tiles > .tile:first-child:nth-last-child(3) .tile-label {
  font-size: 18px;
}

.tile-label .wink {
  color: #fff;
  font-weight: 600;
}

/* =========================================================
   Photo grid (link.me .galleryImage)
   151×151 squares, 7.64px gap, horizontal scroll, 14px gutter
   ========================================================= */

.grid {
  display: flex;
  gap: 10px;
  padding: 18px 14px 18px;
  margin: 0;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
}

.grid::-webkit-scrollbar { display: none; }

.grid-item {
  flex: 0 0 170px;
  width: 170px;
  height: 170px;
  border-radius: 15px;
  overflow: hidden;
  padding: 0;
  border: none;
  background: #0f0f12;
  cursor: pointer;
  position: relative;
}

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

.grid-item img.missing { opacity: 0; }

.grid-item:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* =========================================================
   Footer
   ========================================================= */

.foot {
  text-align: center;
  padding: 14px 14px 20px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.foot p { margin: 0; }

/* =========================================================
   Shop modal
   ========================================================= */

.shop-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.shop-overlay[hidden] { display: none; }

.shop-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 5, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: scrim-in 0.3s var(--ease);
}

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

.shop-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px 28px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #2a1820, #150D10);
  border: 1px solid rgba(255, 79, 153, 0.28);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(255, 79, 153, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
  animation: panel-in 0.4s var(--ease-out);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.shop-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-hi);
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: all 0.2s var(--ease);
}

.shop-close:hover,
.shop-close:focus-visible {
  background: rgba(255, 79, 153, 0.18);
  color: var(--pink);
  outline: none;
}

.shop-header {
  text-align: center;
  margin-bottom: 22px;
}

.shop-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.shop-title .heart {
  color: var(--pink);
  text-shadow: 0 0 8px var(--pink-glow);
}

.shop-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.6;
}

/* Form fields */
.shop-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label,
.field > legend {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0;
}

.field .dim {
  color: var(--ink-faint);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line-hi);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 79, 153, 0.55);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 3px rgba(255, 79, 153, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.field-hint {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 2px 0 0;
}

.field-hint a {
  color: var(--pink-soft);
  text-decoration: none;
}

.field-hint a:hover { text-decoration: underline; }

.field-radio,
.field-check {
  border: 0;
  margin: 0;
  padding: 0;
}

.field-radio .opt,
.field-check .opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s var(--ease);
  margin-top: 6px;
  font-size: 14px;
}

.field-radio .opt:hover,
.field-check .opt:hover {
  background: rgba(255,255,255,0.04);
}

.field-radio .opt input,
.field-check .opt input {
  accent-color: var(--pink);
  width: 16px;
  height: 16px;
  margin: 0;
}

.field-radio .opt em,
.field-check .opt em {
  color: var(--ink-faint);
  font-style: normal;
  font-size: 13px;
  margin-left: 2px;
}

.field-confirm {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-hi);
  font-size: 13px;
  color: var(--ink-dim);
}

.field-confirm input {
  accent-color: var(--pink);
  margin-top: 2px;
  width: 16px;
  height: 16px;
}

.btn-submit {
  position: relative;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 79, 153, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 79, 153, 0.32), rgba(245, 217, 142, 0.18));
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow:
    0 10px 30px rgba(255, 79, 153, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.14);
  transition: all 0.3s var(--ease);
  overflow: hidden;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 14px 40px rgba(255, 79, 153, 0.45),
    0 0 40px rgba(245, 217, 142, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.18);
  outline: none;
}

.btn-submit .btn-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
}

.btn-submit .btn-arrow {
  font-size: 20px;
  color: var(--pink-soft);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  margin: 4px 0 0;
}

/* Thank you state */
.shop-thankyou {
  text-align: center;
  padding: 24px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ty-heart {
  font-size: 48px;
  color: var(--pink);
  text-shadow:
    0 0 10px var(--pink-glow),
    0 0 30px rgba(255, 79, 153, 0.5);
  animation: heart-pulse 2s ease-in-out infinite;
}

.shop-thankyou h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0;
}

.shop-thankyou p {
  color: var(--ink-dim);
  margin: 0 0 12px;
}

.shop-thankyou .heart { color: var(--pink); text-shadow: 0 0 8px var(--pink-glow); }

body.shop-open,
body.lightbox-open,
body.age-open,
body.closet-open {
  overflow: hidden;
}

/* =========================================================
   Closet modal (two-step: chooser → Google Form iframe)
   ========================================================= */

.closet-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.closet-overlay[hidden] { display: none; }

.closet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 10, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.closet-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  background:
    radial-gradient(circle at 88% -10%, rgba(255, 46, 134, 0.28), transparent 55%),
    radial-gradient(circle at 0% 110%, rgba(245, 99, 177, 0.18), transparent 60%),
    linear-gradient(165deg, #2B0E24 0%, #1A0A18 60%, #13080F 100%);
  border: 1px solid rgba(255, 79, 153, 0.22);
  border-radius: 22px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 79, 153, 0.08),
    0 0 40px rgba(255, 46, 134, 0.12);
  padding: 28px 24px 22px;
  color: var(--ink);
  overflow-y: auto;
  transition: max-width 0.2s ease;
}
.closet-panel.is-form {
  max-width: 680px;
  padding: 4px;
  background:
    linear-gradient(#1a0a18, #1a0a18) padding-box,
    linear-gradient(135deg, #FF2E86 0%, #FF80BA 50%, #F563B1 100%) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 46, 134, 0.32);
}

.closet-panel.is-form .closet-back,
.closet-panel.is-form .closet-close {
  background: rgba(10, 5, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  z-index: 5;
  border-color: rgba(255, 255, 255, 0.18);
}

.closet-panel.is-form .closet-back {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
}

.closet-panel.is-form .closet-close {
  top: 12px;
  right: 12px;
}

.closet-panel.is-form [data-screen="form"] {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.closet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  z-index: 3;
  transition: background 0.18s ease, color 0.18s ease;
}
.closet-close:hover,
.closet-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.closet-header {
  text-align: center;
  margin-bottom: 22px;
}
.closet-title {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0;
}
.closet-title .heart {
  color: var(--pink);
  margin: 0 4px;
  text-shadow: 0 0 8px var(--pink-glow);
}
.closet-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
}

.closet-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.closet-option {
  display: block;
  width: 100%;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 175, 207, 0.18);
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.closet-option:focus-visible {
  background: linear-gradient(135deg, rgba(255, 46, 134, 0.18), rgba(255, 175, 207, 0.08));
  border-color: rgba(255, 46, 134, 0.5);
  box-shadow: 0 6px 24px rgba(255, 46, 134, 0.2);
  outline: none;
}

@media (hover: hover) {
  .closet-option:hover {
    background: linear-gradient(135deg, rgba(255, 46, 134, 0.18), rgba(255, 175, 207, 0.08));
    border-color: rgba(255, 46, 134, 0.5);
    box-shadow: 0 6px 24px rgba(255, 46, 134, 0.2);
    transform: translateY(-1px);
  }
}
.option-title {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 3px;
}
.option-desc {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
}

.closet-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-faint);
  padding: 7px 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.closet-back:hover,
.closet-back:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
}

.closet-iframe {
  display: block;
  width: 100%;
  height: min(780px, calc(100vh - 60px));
  border: none;
  border-radius: 18px;
  background: #fff;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

/* =========================================================
   18+ age gate (Exclusive tile)
   ========================================================= */

.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-overlay[hidden] { display: none; }

.age-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 10, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.age-panel {
  position: relative;
  max-width: 320px;
  width: 100%;
  padding: 26px 22px 20px;
  border-radius: 18px;
  background: rgba(22, 14, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.age-title {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
}

.age-desc {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
}

.age-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.age-btn {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.age-yes {
  background: #fff;
  color: #1A1014;
}
@media (hover: hover) {
  .age-yes:hover { background: #ffe8c2; }
}

.age-no {
  background: transparent;
  color: var(--ink-faint);
  border-color: rgba(255, 255, 255, 0.12);
}
@media (hover: hover) {
  .age-no:hover { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
}

/* =========================================================
   Lightbox
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 2, 5, 0.95);
  display: grid;
  place-items: center;
  animation: scrim-in 0.25s var(--ease);
}

.lightbox[hidden] { display: none; }

.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: panel-in 0.35s var(--ease-out);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  border: 1px solid var(--line-hi);
  background: rgba(255,255,255,0.06);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all 0.2s var(--ease);
}

.lb-close:focus-visible,
.lb-prev:focus-visible,
.lb-next:focus-visible {
  background: rgba(255, 79, 153, 0.22);
  border-color: var(--pink);
  color: var(--pink-soft);
  outline: none;
}

@media (hover: hover) {
  .lb-close:hover,
  .lb-prev:hover,
  .lb-next:hover {
    background: rgba(255, 79, 153, 0.22);
    border-color: var(--pink);
    color: var(--pink-soft);
  }
}

.lb-close { top: 16px; right: 16px; }
.lb-prev  { left: 16px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb-next  { right: 16px; top: 50%; transform: translateY(-50%); font-size: 28px; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 640px) {
  html, body, .closet-panel {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .closet-panel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .socials { gap: 12px; }
  .socials a { width: 44px; height: 44px; }

  .tiles > .tile { width: calc(50% - 6px); }
  .tiles > .tile:first-child:nth-last-child(3) { height: 220px; }

  .grid {
    justify-content: space-between;
    gap: 8px;
    padding: 16px 14px;
    overflow-x: hidden;
  }
  .grid-item {
    flex: 1 1 0;
    width: auto;
    height: auto;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .lb-close, .lb-prev, .lb-next {
    width: 44px;
    height: 44px;
  }

  .closet-overlay { padding: 8px; }
  .closet-overlay.is-form { padding: 0; }
  .closet-panel {
    padding: 22px 18px 18px;
    border-radius: 18px;
    max-height: calc(100vh - 16px);
  }
  .closet-panel.is-form {
    padding: 0;
    border: none;
    border-radius: 0;
    background: #13080F;
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    box-shadow: none;
    overflow: hidden;
  }
  .closet-panel.is-form .closet-back {
    top: 10px;
    left: 10px;
    width: auto;
    height: 36px;
    padding: 0 14px;
  }
  .closet-panel.is-form .closet-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  .closet-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
  .closet-title { font-size: 18px; }
  .closet-desc { font-size: 12.5px; }
  .closet-option { padding: 16px 16px; }
  .option-title { font-size: 14.5px; }
  .option-desc { font-size: 11.5px; }
  .closet-iframe {
    height: calc(100vh - 22px);
    border-radius: 15px;
  }
  .closet-panel.is-form .closet-iframe {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .age-overlay {
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }
  .age-panel { padding: 24px 20px 18px; border-radius: 16px; }
  .age-title { font-size: 17px; }
  .age-btn {
    padding: 13px 18px;
    font-size: 14px;
    min-height: 44px;
  }

  .closet-panel.is-form .closet-back {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    min-height: 40px;
  }
  .closet-panel.is-form .closet-close {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
  }

  .lb-close { top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
  .lb-prev  { left: max(12px, env(safe-area-inset-left)); }
  .lb-next  { right: max(12px, env(safe-area-inset-right)); }
}

@media (max-width: 420px) {
  .shop-panel { padding: 28px 20px 20px; }
  .shop-title { font-size: 24px; }
}

/* =========================================================
   Motion safety
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  #particles { display: none; }
  .hero-img,
  .tile-img { transform: none !important; }
}
