/* ============================================================
   xramuchanx.com - "Sticker Sheet" design system
   Palette:
     --cream   #FFF5F9  sakura cream base
     --petal   #FFD3E4  petal pink
     --hot     #FF4F9E  hot pink accent
     --plum    #47203B  deep plum ink (text)
     --lilac   #B48CF2  lilac secondary
   Type: Mochiy Pop One (display) / Zen Maru Gothic (body)
   ============================================================ */

:root {
  --cream: #FFF5F9;
  --petal: #FFD3E4;
  --hot: #FF4F9E;
  --hot-deep: #E23A87;
  --plum: #47203B;
  --lilac: #B48CF2;
  --white: #FFFFFF;
  --shadow: rgba(226, 58, 135, 0.18);
  --font-display: 'Mochiy Pop One', 'Zen Maru Gothic', sans-serif;
  --font-body: 'Zen Maru Gothic', sans-serif;
  --radius: 26px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--plum);
  background-color: var(--cream);
  /* faint seigaiha (wave) pattern */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 211, 228, 0.55) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(180, 140, 242, 0.18) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23FFD3E4' stroke-opacity='0.45' stroke-width='1.5'%3E%3Cpath d='M0 40a20 20 0 0 1 40 0M40 40a20 20 0 0 1 40 0M-20 40a20 20 0 0 1 40 0 M60 40a20 20 0 0 1 40 0'/%3E%3Cpath d='M0 40a14 14 0 0 1 28 0 M6 40a8 8 0 0 1 16 0'/%3E%3Cpath d='M40 40a14 14 0 0 1 28 0 M46 40a8 8 0 0 1 16 0'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Sakura petal canvas sits behind everything */
#sakura-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.page--wide { max-width: 900px; }

/* ---------- The sticker treatment (signature element) ---------- */
.sticker {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 4px var(--white),
    0 0 0 6px rgba(255, 79, 158, 0.25),
    0 10px 24px var(--shadow);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.nav__pill {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow:
    0 0 0 3px var(--white),
    0 0 0 5px rgba(255, 79, 158, 0.25),
    0 8px 20px var(--shadow);
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--plum);
  padding: 8px 16px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav__link:hover { transform: scale(1.07) rotate(-1.5deg); background: var(--petal); }

.nav__link--active {
  background: linear-gradient(135deg, var(--hot), var(--lilac));
  color: var(--white);
}

/* ---------- Home / profile ---------- */
.profile { text-align: center; margin-bottom: 36px; }

.profile__avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
  background: linear-gradient(140deg, var(--hot) 0%, var(--lilac) 100%);
  box-shadow:
    0 0 0 5px var(--white),
    0 0 0 7px rgba(255, 79, 158, 0.3),
    0 12px 28px var(--shadow);
  animation: avatar-bob 4s ease-in-out infinite;
  overflow: hidden;
}

.profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

@keyframes avatar-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  color: var(--hot);
  text-shadow:
    3px 3px 0 var(--white),
    -3px 3px 0 var(--white),
    3px -3px 0 var(--white),
    -3px -3px 0 var(--white),
    0 6px 14px var(--shadow);
  letter-spacing: 0.02em;
}

.wordmark .bounce { display: inline-block; animation: letter-bounce 2.6s ease-in-out infinite; }
.wordmark .bounce:nth-child(2n) { animation-delay: 0.12s; }
.wordmark .bounce:nth-child(3n) { animation-delay: 0.24s; }
.wordmark .bounce:nth-child(4n) { animation-delay: 0.36s; }

@keyframes letter-bounce {
  0%, 100% { transform: translateY(0); }
  8% { transform: translateY(-10px) rotate(-4deg); }
  16% { transform: translateY(0); }
}

.profile__jp {
  font-family: var(--font-display);
  color: var(--lilac);
  font-size: 1.1rem;
  margin-top: 2px;
}

.profile__tag { margin-top: 10px; color: var(--plum); opacity: 0.75; }

/* hanko seal accent */
.hanko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 3px solid #E03A5F;
  border-radius: 10px;
  color: #E03A5F;
  font-family: var(--font-display);
  font-size: 1.1rem;
  transform: rotate(8deg);
  margin-left: 10px;
  vertical-align: middle;
}

/* ---------- Link stickers ---------- */
.links { display: flex; flex-direction: column; gap: 18px; }

.link-sticker {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  text-decoration: none;
  color: var(--plum);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.link-sticker:hover {
  transform: scale(1.035) rotate(-1deg);
  box-shadow:
    0 0 0 4px var(--white),
    0 0 0 6px var(--hot),
    0 14px 30px var(--shadow);
}

.link-sticker:active { transform: scale(0.97); }

.link-sticker__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.link-sticker__icon svg { width: 26px; height: 26px; }

.link-sticker__body { flex: 1; }
.link-sticker__title { font-family: var(--font-display); font-size: 1.05rem; }
.link-sticker__sub { font-size: 0.85rem; opacity: 0.65; }

.link-sticker__arrow {
  font-family: var(--font-display);
  color: var(--hot);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.link-sticker:hover .link-sticker__arrow { transform: translateX(5px); }

.icon--twitch { background: #9146FF; }
.icon--instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.icon--tiktok { background: #1B1B1B; }
.icon--discord { background: #5865F2; }
.icon--throne { background: linear-gradient(135deg, #7B2FF7, #F72F8E); }
.icon--tip { background: linear-gradient(135deg, var(--hot), #FF9AC5); }
.icon--birthday { background: linear-gradient(135deg, #FF4F9E, #FFB347); }

/* ---------- Section headings ---------- */
.heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  color: var(--hot);
  text-align: center;
  text-shadow: 2px 2px 0 var(--white), -2px 2px 0 var(--white), 2px -2px 0 var(--white), -2px -2px 0 var(--white);
  margin-bottom: 8px;
}

.subheading { text-align: center; opacity: 0.75; margin-bottom: 28px; }

/* ---------- Birthday page ---------- */
.bday-hero { text-align: center; padding: 30px 0 20px; }

.bday-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10vw, 4.2rem);
  line-height: 1.15;
  color: var(--hot);
  text-shadow:
    3px 3px 0 var(--white), -3px 3px 0 var(--white),
    3px -3px 0 var(--white), -3px -3px 0 var(--white),
    0 8px 18px var(--shadow);
  cursor: pointer;
  user-select: none;
}

.bday-hero__title .bounce { display: inline-block; animation: letter-bounce 3s ease-in-out infinite; }
.bday-hero__title .bounce:nth-child(2n) { animation-delay: 0.1s; }
.bday-hero__title .bounce:nth-child(3n) { animation-delay: 0.2s; }
.bday-hero__title .bounce:nth-child(5n) { animation-delay: 0.3s; }

.bday-hero__22 {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 14vw, 5.5rem);
  color: var(--white);
  background: linear-gradient(135deg, var(--hot), var(--lilac));
  border-radius: 30px;
  padding: 4px 26px;
  margin: 14px 0;
  transform: rotate(-4deg);
  box-shadow:
    0 0 0 5px var(--white),
    0 0 0 7px rgba(255, 79, 158, 0.3),
    0 14px 30px var(--shadow);
  animation: pulse-22 2.4s ease-in-out infinite;
}

@keyframes pulse-22 {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(-4deg) scale(1.06); }
}

.bday-hero__jp { font-family: var(--font-display); color: var(--lilac); font-size: 1.15rem; margin-top: 6px; }

/* marquee ribbon */
.ribbon {
  overflow: hidden;
  background: linear-gradient(90deg, var(--hot), var(--lilac), var(--hot));
  border-top: 4px solid var(--white);
  border-bottom: 4px solid var(--white);
  box-shadow: 0 6px 16px var(--shadow);
  margin: 26px -20px;
  transform: rotate(-1.5deg) scale(1.02);
}

.ribbon__track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  padding: 10px 0;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  animation: ribbon-scroll 18s linear infinite;
}

@keyframes ribbon-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* countdown */
.countdown { display: flex; justify-content: center; gap: 14px; margin: 26px 0 34px; flex-wrap: wrap; }

.countdown__unit {
  padding: 12px 8px;
  min-width: 84px;
  text-align: center;
}

.countdown__num { font-family: var(--font-display); font-size: 1.9rem; color: var(--hot); }
.countdown__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.65; }

/* big action cards */
.action-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 10px; }
@media (max-width: 560px) { .action-cards { grid-template-columns: 1fr; } }

.action-card__icon { display: flex; justify-content: center; margin-bottom: 12px; }
.action-card__icon svg { width: 54px; height: 54px; }

.action-card {
  display: block;
  text-decoration: none;
  color: var(--plum);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.action-card:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow:
    0 0 0 4px var(--white),
    0 0 0 6px var(--hot),
    0 16px 34px var(--shadow);
}

.action-card__emoji { font-size: 2.6rem; display: block; margin-bottom: 10px; }
.action-card__title { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--hot); margin-bottom: 6px; }
.action-card__desc { display: block; font-size: 0.9rem; opacity: 0.75; }

/* ---------- Forms (submit page) ---------- */
.guidance {
  padding: 22px 24px;
  margin-bottom: 26px;
  border-left: 6px solid var(--lilac);
}

.guidance h2 { font-family: var(--font-display); font-size: 1.05rem; color: var(--lilac); margin-bottom: 8px; }
.guidance p { font-size: 0.92rem; }

.form-card { padding: 28px 26px; }

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--plum);
}

.form-field label .req { color: var(--hot); }
.form-field label .opt { font-family: var(--font-body); font-weight: 500; opacity: 0.55; font-size: 0.8rem; }

.form-field input[type="text"],
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--plum);
  padding: 12px 16px;
  border: 3px solid var(--petal);
  border-radius: 16px;
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input[type="text"]:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--hot);
  box-shadow: 0 0 0 4px rgba(255, 79, 158, 0.15);
}

.form-field textarea { resize: vertical; min-height: 90px; }

.form-hint { font-size: 0.8rem; opacity: 0.6; margin-top: 5px; }

/* file drop zone */
.dropzone {
  border: 3px dashed var(--lilac);
  border-radius: 20px;
  background: rgba(180, 140, 242, 0.06);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--hot);
  background: rgba(255, 79, 158, 0.06);
  transform: scale(1.01);
}

.dropzone__emoji { font-size: 2rem; display: block; margin-bottom: 8px; }
.dropzone__file { font-family: var(--font-display); color: var(--hot); margin-top: 8px; word-break: break-all; }

.btn {
  display: inline-block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--hot), var(--lilac));
  border: none;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  box-shadow:
    0 0 0 3px var(--white),
    0 0 0 5px rgba(255, 79, 158, 0.3),
    0 10px 24px var(--shadow);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.btn:hover:not(:disabled) { transform: scale(1.03); filter: brightness(1.05); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* progress */
.progress { display: none; margin-top: 20px; }
.progress.visible { display: block; }

.progress__bar {
  height: 22px;
  border-radius: 999px;
  background: var(--petal);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(71, 32, 59, 0.1);
}

.progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hot), var(--lilac));
  transition: width 0.25s ease;
}

.progress__label { text-align: center; font-size: 0.85rem; margin-top: 8px; font-family: var(--font-display); color: var(--hot); }

/* status messages */
.status { display: none; padding: 18px 22px; border-radius: 18px; margin-top: 20px; font-size: 0.95rem; }
.status.visible { display: block; }
.status--success { background: #E8FBEF; border: 3px solid #4CC57E; color: #1E6B41; }
.status--error { background: #FFECF1; border: 3px solid var(--hot); color: var(--hot-deep); }

.deadline-note { text-align: center; font-size: 0.85rem; opacity: 0.7; margin-top: 18px; }

.turnstile-wrap { display: flex; justify-content: center; margin-bottom: 22px; }

/* ---------- Video page ---------- */
.video-frame-wrap { padding: 14px; overflow: hidden; }

.video-frame-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 16px;
  display: block;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  text-align: center;
  gap: 10px;
  color: var(--lilac);
  font-family: var(--font-display);
  background: rgba(180, 140, 242, 0.06);
  border-radius: 16px;
}

.notice {
  padding: 16px 22px;
  margin-bottom: 24px;
  text-align: center;
  border-left: 6px solid var(--hot);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--hot-deep);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  margin-top: 60px;
  font-size: 0.82rem;
  opacity: 0.55;
}

.footer .heart { color: var(--hot); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 56px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-social + .footer { margin-top: 0; }

.footer-social__link {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow:
    0 0 0 3px var(--white),
    0 0 0 4px rgba(255, 79, 158, 0.2),
    0 6px 14px var(--shadow);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social__link:hover { transform: scale(1.12) rotate(-4deg); }
.footer-social__link svg { width: 22px; height: 22px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #sakura-canvas { display: none; }
}

/* keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .dropzone:focus-visible {
  outline: 3px solid var(--hot);
  outline-offset: 3px;
}

/* inline play icon inside headings */
.heading-icon { display: inline-block; width: 0.95em; height: 0.95em; vertical-align: -0.12em; }
.heading-icon svg { width: 100%; height: 100%; display: block; }

/* coloured badge icons on action cards */
.action-card__badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.action-card__badge svg { width: 30px; height: 30px; }

/* guidance section structure */
.guidance h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--hot);
  margin: 18px 0 6px;
}
.guidance .guidance__label { margin-top: 14px; }
.guidance ul { margin: 6px 0 4px 4px; padding-left: 20px; font-size: 0.92rem; }
.guidance li { margin-bottom: 4px; }
.guidance li::marker { color: var(--hot); }
.guidance__notice {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(255, 79, 158, 0.07);
  border-radius: 12px;
  font-size: 0.88rem;
}
.guidance p + p { margin-top: 8px; }

/* compact dropzone (profile photo) */
.dropzone--compact { padding: 20px 16px; }
.dropzone--compact .dropzone__emoji { font-size: 1.5rem; margin-bottom: 4px; }

/* birthday hero avatar */
.bday-avatar {
  width: 112px;
  height: 112px;
  margin: 6px auto 18px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 5px var(--white),
    0 0 0 7px rgba(255, 79, 158, 0.3),
    0 12px 28px var(--shadow);
  animation: avatar-bob 4s ease-in-out infinite;
}
.bday-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* alternating sticker-sheet tilt on the link hub */
.link-sticker { --tilt: 0deg; transform: rotate(var(--tilt)); }
.links .link-sticker:nth-child(odd) { --tilt: -0.7deg; }
.links .link-sticker:nth-child(even) { --tilt: 0.6deg; }

/* ---------- Submission type picker ---------- */
[hidden] { display: none !important; }

.type-picker { border: none; padding: 0; }
.type-picker legend {
  font-family: var(--font-display);
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.type-picker__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 420px) { .type-picker__options { grid-template-columns: 1fr; } }

.type-chip { position: relative; cursor: pointer; }
.type-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.type-chip__face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px 10px;
  border: 3px solid var(--petal);
  border-radius: 18px;
  background: var(--cream);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--plum);
  text-align: center;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.type-chip__face small { font-family: var(--font-body); font-size: 0.72rem; opacity: 0.65; }
.type-chip__emoji { font-size: 1.5rem; margin-bottom: 2px; }
.type-chip:hover .type-chip__face { transform: scale(1.03); border-color: var(--hot); }
.type-chip input:checked + .type-chip__face {
  background: linear-gradient(135deg, var(--hot), var(--lilac));
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 79, 158, 0.3), 0 8px 18px var(--shadow);
}
.type-chip input:checked + .type-chip__face small { opacity: 0.9; }
.type-chip input:focus-visible + .type-chip__face { outline: 3px solid var(--hot); outline-offset: 3px; }

.deadline-note strong.urgent { color: var(--hot); }
