:root {
  --scallop: #F5DDEE; /* lightest */
  --pink: #E4BAD7;    /* middle */
  --border: #E4BAD7;  /* middle (used for borders) */
  --dark-pink: #D296BF; /* darkest */
  --deep: #D296BF;    /* darkest for text/accents */
  --scroll-thumb: #c193b2;
  --scroll-track: rgba(0,0,0,0.04);
  scrollbar-gutter: stable;
}

html {
  scrollbar-gutter: stable;
}

/* Custom cursors removed; using default system pointer */
/* (optional, could reintroduce later) */

/* Touch-friendly improvements for mobile devices */
* { box-sizing: border-box; }

body {
  font-family: 'ms gothic', 'Winky Sans', sans-serif;
  background-color: var(--scallop);
  background-image: url('assets/bg.gif');
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #000;
  margin: 0;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.main-container {
  width: 620px; /* exact width of your middle part */
  margin: 0 auto;
  scrollbar-gutter: stable;
}

.window {
  background: white;
  border-radius: 8px; /* slightly rounded corners for main container */
  box-shadow: 0 12px 40px rgba(210,150,191,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  scrollbar-gutter: stable;
}

/* overlapping site logo placed inside .window */
.main-container { position: relative; }

.site-logo {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: auto;
  pointer-events: none;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: 60;
}

.scalloped {
  padding: 14px 12px;
  border: 2px solid var(--border);
  position: relative;
}

.scalloped::before,
.scalloped::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 24px;
  background: radial-gradient(circle at 12px 12px, transparent 7px, var(--scallop) 8px, var(--scallop) 10px, transparent 11px);
  background-size: 24px 24px;
  background-repeat: repeat-x;
}
.scalloped::before { top: -12px; }
.scalloped::after { bottom: -12px; transform: scaleY(-1); }

/* remove scallops from inner tab containers and main window */
.window.scalloped::before,
.window.scalloped::after,
.basic.scalloped::before,
.basic.scalloped::after,
.about-profile.scalloped::before,
.about-profile.scalloped::after,
.tipping-ui.scalloped::before,
.tipping-ui.scalloped::after,
.info-box.scalloped::before,
.info-box.scalloped::after,
.frame.scalloped::before,
.frame.scalloped::after {
  display: none !important;
  content: none !important;
}
/* Global scrollbar styling (WebKit + Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
*::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

@supports(padding: max(0px)) {
  .scalloped {
    padding: max(14px, calc(14px + env(safe-area-inset-top))) max(12px, calc(12px + env(safe-area-inset-right))) max(14px, calc(14px + env(safe-area-inset-bottom))) max(12px, calc(12px + env(safe-area-inset-left)));
  }
}

.window-top {
  background: linear-gradient(120deg, #ffe4f5, #f9d1ec);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #9a477f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px dashed #d296bf;
}

.window-title {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: pixelpoiiz, 'Winky Sans', sans-serif;
  text-shadow: -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff, 1px 1px 0 #ffffff;
}

.divider {
  color: var(--pink);
  margin: 0 4px;
}

.window-controls button {
  width: 24px; height: 20px;
  margin-left: 4px;
  background: var(--pink);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  color: #a86894;
}

.window-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  background: var(--scallop);
  border-bottom: 4px solid var(--dark-pink);
  min-height: 50px;
  align-items: center;
}

.tab-btn {
  padding: 9px 17px;
  border: 2px solid var(--border);
  border-radius: 0;
  background: white;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  position: relative;
  color: #a86894;
  flex-shrink: 0;
  white-space: nowrap;
  box-sizing: border-box;
}

.tab-btn:hover,
.tab-btn:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(210,150,191,0.12), inset 0 -3px 8px rgba(210,150,191,0.06);
}

.tab-btn.active {
  background: linear-gradient(90deg, var(--dark-pink), var(--border));
  color: white;
}

.content {
  padding: 20px;
  min-height: 0;
  flex: 1 1 auto;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.tab-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.tab-content .profile-grid {
  flex: 0 0 auto;
}

.tab-content .tipping-ui {
  flex: 0 0 auto;
}

.reference-area {
  border: 1px dashed #d296bf;
  background-color: #fff4fb;
  background-image: linear-gradient(135deg, rgba(255, 235, 251, 0.9) 25%, rgba(255, 244, 253, 0.9) 25%, rgba(255, 235, 251, 0.9) 50%, rgba(255, 244, 253, 0.9) 50%, rgba(255, 235, 251, 0.9) 75%, rgba(255, 244, 253, 0.9) 75%, rgba(255, 235, 251, 0.9) 100%);
  background-size: 16px 16px;
  padding: 10px;
  box-sizing: border-box;
}

.content .ref-thumb {
  background-color: #fff4fb;
  background-image: linear-gradient(135deg, rgba(255, 235, 251, 0.9) 25%, rgba(255, 244, 253, 0.9) 25%, rgba(255, 235, 251, 0.9) 50%, rgba(255, 244, 253, 0.9) 50%, rgba(255, 235, 251, 0.9) 75%, rgba(255, 244, 253, 0.9) 75%, rgba(255, 235, 251, 0.9) 100%);
  background-size: 16px 16px;
  padding: 10px;
  box-sizing: border-box;
}

.bunny-header {
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--pink);
  overflow: hidden;
  width: var(--pfp-size, 220px);
  height: var(--pfp-size, 220px);
  flex: 0 0 auto;
}

.pfp-info-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
  --pfp-size: 220px;
  min-height: var(--pfp-size);
}

.info-box {
  padding: 16px;
  font-size: 13px;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  flex: 1;
  height: auto;
  min-height: calc(var(--pfp-size) - 30px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Links/buttons inside the info box */
.info-box .links{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.link-btn{background:var(--pink);color:var(--deep);border:2px solid var(--border);padding:8px 10px;border-radius:8px;cursor:pointer;font-weight:700}
.link-btn:hover{background:var(--border);color:#fff}

/* icon links */
.link-icon{display:inline-block;width:40px;height:40px;border-radius:8px;overflow:hidden;border:2px solid var(--border);background:#fff}

/* headings inside the links container */
.link-section-heading{
  width:100%;
  margin:6px 0 0;
  font-size:14px;
  font-weight:600;
  color:var(--deep);
}
.link-icon img{width:100%;height:100%;object-fit:cover;display:block}
.link-icon:hover{border-color:var(--dark-pink);transform:scale(1.03);}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--deep);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.tipping-ui {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 2px solid #f0d3ea;
  background: #fff;
  border-radius: 0;
  padding: 10px 14px 10px;
  height: auto;
  min-height: auto;
  max-height: none;
  box-shadow: 0 8px 20px rgba(210,150,191,0.18);
  position: relative;
  overflow: visible;
  margin-top: 0;
  margin-bottom: 0;
  flex: 0 0 auto;
}

.tipping-ui::before,
.tipping-ui::after,
.tipping-ui > *,
.tipping-ui .tipping-preview,
.tipping-ui h3,
.tipping-ui p {
  position: relative;
  z-index: 1;
}

.tipping-ui h3 {
  margin: 0;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--deep);
}
.tipping-ui p {
  margin: 0;
  margin-bottom: 12px;
  font-size: 12px;
  color: #7c5e7f;
}

.lore-ui h3 {
  margin: 0;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--deep);
}
.lore-ui p {
  margin: 0;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #4a3150;
}

.tipping-preview {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.tipping-preview .amount-field,
.tipping-preview .name-field {
  border-radius: 999px;
  border: 1px solid #e4ddeb;
  background: #f9f7f8;
  font-weight: 700;
  color: #333;
  padding: 10px 14px;
}

.tipping-preview .name-field {
  color: #8a7a95;
  font-weight: 500;
}

.tipping-preview .tip-btn {
  width: 100%;
  background: #fabe21;
  border-color: #fabe21;
  color: #4d1f00;
  font-weight: 800;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(250, 190, 33, 0.32);
}

.tipping-preview .tip-btn:hover {
  background: #ffcb52;
  border-color: #ffcb52;
}

/* Override scalloped for tipping-ui (no divider image) */
.tipping-ui.scalloped::before,
.tipping-ui.scalloped::after {
  height: 8px;
  background: none;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: none;
  overflow: visible;
  box-shadow: 0 12px 40px rgba(210,150,191,0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(var(--scallop), var(--pink));
  border-bottom: 2px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--deep);
}

.modal-close {
  background: var(--pink);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: #a86894;
  cursor: pointer;
}

.modal-body {
  padding: 16px;
}

/* Talent Info / Disclaimers sizing/scroll behavior */
.profile-grid .basic,
.profile-grid .about-profile {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.profile-grid .basic .scrollable-content,
.profile-grid .about-profile .scrollable-content {
  flex: 1;
  overflow: visible;
  padding-right: 6px; /* avoid content clipping under scrollbar */
}

.profile-grid .basic .scrollable-content::-webkit-scrollbar,
.profile-grid .about-profile .scrollable-content::-webkit-scrollbar {
  display: none;
}

.profile-grid .basic .scrollable-content::-webkit-scrollbar-thumb,
.profile-grid .about-profile .scrollable-content::-webkit-scrollbar-thumb {
  display: none;
}


.link-btn img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.link-btn:hover {
  border-color: var(--dark-pink);
  transform: scale(1.03);
}

/* Age warning overlay */
#age-warning{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.6);z-index:9999}
.warning-box{background:#fff;padding:18px;border-radius:10px;max-width:520px;text-align:left;color:#a86894;border:4px solid var(--border)}
.warning-box p{margin:6px 0}
.proceed-btn{background:var(--dark-pink);color:#fff;padding:8px 12px;border-radius:6px;border:none;cursor:pointer}

.bunny-img {
  max-width: 100%;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 3px solid var(--border);
  object-fit: cover;
  display: block;
}

/* Wrapper used when showing only the profile image */
.pfp-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.profile-grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  position: relative;
  min-width: 0;
  align-items: stretch;
}

.profile-grid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 6px, var(--border) 6px, var(--border) 12px);
  transform: translateX(-50%);
  pointer-events: none;
  display: none;
}

.basic, .about-profile, .tipping-ui, .frame {
  border: 1px dashed #d296bf;
  background-color: #fff4fb;
  background-image: linear-gradient(135deg, rgba(255, 235, 251, 0.9) 25%, rgba(255, 244, 253, 0.9) 25%, rgba(255, 235, 251, 0.9) 50%, rgba(255, 244, 253, 0.9) 50%, rgba(255, 235, 251, 0.9) 75%, rgba(255, 244, 253, 0.9) 75%, rgba(255, 235, 251, 0.9) 100%);
  background-size: 16px 16px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  display: flex;
  flex-direction: column;
}

.basic h3, .about-profile h3, .tipping-ui h3, .ref-container h3 {
  margin: 0 0 8px 0;
  padding: 6px;
  border-top: 1px dotted #d296bf;
  border-bottom: 1px dotted #d296bf;
  background-image: url('assets/header.jpg');
  background-repeat: repeat;
  background-size: auto;
  box-shadow: inset 0 0 0 1px rgba(210, 150, 191, 0.3);
  font-family: pixelpoiiz, 'Winky Sans', sans-serif;
  font-weight: bold;
  color: #a02b75;
  text-shadow: -1px 0 #ffffff, 0 1px #ffffff, 1px 0 #ffffff, 0 -1px #ffffff;
}

.basic ul,
.about-profile ul {
  padding-right: 16px;
}

.scrollable-content {
  overflow: visible;
  max-height: none;
  flex: 1;
}

/* Use anchor.gif as custom bullet for profile lists */
.basic ul,
.about-profile ul,
.lore-ui ul {
  list-style: none;
  padding-left: 28px; /* space for custom bullet */
}
.basic ul li,
.about-profile ul li,
.lore-ui ul li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 0;
}
.basic ul li::before,
.about-profile ul li::before,
.lore-ui ul li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 3px;
  width: 16px;
  height: 16px;
  background-image: url('assets/anchor.gif');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Taken block removed from HTML; rules deleted for cleanliness */

.tab-content { display: none; }
.tab-content.active { display: flex; flex-direction: column; height: auto; }

/* Assets / Downloads list */
.assets-list{list-style:none;padding:0;margin:12px 0}
.asset-item{padding:8px 10px;border:1px dashed var(--border);border-radius:10px;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center;background:#fff}
.asset-item .tag{font-size:12px;color:var(--deep);font-weight:700;margin-left:8px}

/* Pixel grid samples */
.pixel-grid{display:flex;gap:12px;margin-top:10px}
.pixel-sample{width:64px;height:64px;border-radius:8px;background:linear-gradient(var(--scallop),var(--pink));display:flex;align-items:center;justify-content:center;color:var(--deep);font-weight:700;border:2px solid var(--border)}

/* Reference thumbnail and modal */
.reference-area { display:block; width:100%; }
.ref-thumb { width:100%; height:auto; object-fit:contain; cursor:pointer; border-radius:8px; background:transparent; display:block; }
.ref-modal { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,0.6); z-index:10000; }
.ref-modal.open { display:flex; }
.ref-modal img { max-width:92vw; max-height:92vh; border-radius:8px; border:6px solid #fff; box-shadow:0 18px 40px rgba(0,0,0,0.4); }

/* Mail embed (feed) styling */
.feed-embed { padding: 0; margin: 0; width: 100%; display: block; position: relative; min-height: 580px; }
.feed-embed iframe { width: 100%; min-height: 580px; height: auto; border: 0; display: block; position: relative; z-index: 1; }
.feed-embed::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: #fff4fb; pointer-events: none; z-index: 10; }

/* Stamps grid for Fun Corner */
.stamps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 12px; padding: 12px 0; }
.stamps-grid img { width: 100%; height: auto; object-fit: contain; cursor: pointer; border-radius: 4px; transition: transform 0.12s ease; }
.stamps-grid img:hover { transform: scale(1.08); }

/* Files grid for Projects tab */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  padding: 12px 0;
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 12px !important;
  text-align: center;
}

.file-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--deep);
  word-break: break-word;
}

.download-btn {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 0;
  background: white;
  color: #a86894;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  position: relative;
}

.download-btn:hover {
  box-shadow: 0 8px 20px rgba(210,150,191,0.12), inset 0 -3px 8px rgba(210,150,191,0.06);
  transform: translateY(-2px);
  background: var(--border);
  color: white;
}



/* Canvas overlay for cursor particles */
.cursor-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* behind main content */
  mix-blend-mode: normal;
}

/* make sure main content stays above the falling petals */
.main-container {
  position: relative;
  z-index: 1;
}

/* References tab styles */
.references-scrollable {
  overflow: visible;
  flex: 1;
  padding: 0;
}

.ref-container {
  margin-bottom: 20px;
}

.ref-container:last-child {
  margin-bottom: 0;
}