/* ════════════════════════════════════════════
   Chaton Café — Profile Page
   Rich animated profile inspired by ém portfolio
   ════════════════════════════════════════════ */

:root {
  --canvas-bg: #f3ead9;           /* Warm cream canvas */
  --canvas-bg-dark: #e6d7bb;
  --ink: #3d2b1f;                 /* Dark coffee text */
  --ink-soft: #6b5544;
  --ink-mute: rgba(61, 43, 31, 0.55);
  --sepia: #8a6a4a;               /* Sepia accent */
  --gold: #b8814b;                /* Caramel gold */
  --gold-light: rgba(184, 129, 75, 0.3);
  --gold-bright: #d9a066;
  --rose: #e8a9a0;                /* Soft rose (pink accent) */
  --cream: #fffaf2;

  --f-heading: 'Jost', sans-serif;
  --f-body: 'Zen Kaku Gothic New', 'Jost', sans-serif;
  --f-name: 'Cormorant Garamond', 'Fraunces', serif;
  --f-jp: 'Zen Kaku Gothic New', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100vh;
  min-height: 100dvh;
}

body {
  font-family: var(--f-body);
  background-color: var(--canvas-bg);
  color: var(--ink);
  width: 100vw;
  max-width: 100%;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════
   BACKGROUND & ATMOSPHERE
   ════════════════════════════════════════════ */
.bg-image {
  position: fixed;
  inset: -5%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  animation: bgPan 60s ease-in-out infinite alternate;
}
.bg-image__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(6px) brightness(0.95) saturate(0.85) sepia(0.15);
}

@keyframes bgPan {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 250, 242, 0.45) 0%, transparent 55%),
    linear-gradient(
      180deg,
      rgba(243, 234, 217, 0.82) 0%,
      rgba(230, 215, 187, 0.88) 50%,
      rgba(243, 234, 217, 0.9) 100%
    );
}

/* Noise / canvas texture */
.texture {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* ════════════════════════════════════════════
   ATMOSPHERIC PARTICLES CONTAINERS
   ════════════════════════════════════════════ */
#steam-container,
#komorebi-container,
#illustrations-container,
#floating-food-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
#steam-container { z-index: 3; }
#komorebi-container { z-index: 4; mix-blend-mode: overlay; }
#illustrations-container { z-index: 3; }
#floating-food-container { z-index: 3; }

/* --- Steam / Dust particles (like dust in atelier) --- */
.dust-particle {
  position: absolute;
  background: rgba(255, 248, 230, 0.85);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
  animation: floatUp var(--duration) linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0.5); opacity: 0; }
  20%  { opacity: var(--max-opacity); }
  80%  { opacity: var(--max-opacity); }
  100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
}

/* --- Komorebi (light pools) --- */
.komorebi-light {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 230, 180, 0.55) 0%,
    rgba(255, 220, 160, 0) 70%
  );
  animation: kSway var(--k-duration) ease-in-out infinite alternate;
}
@keyframes kSway {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.08; }
  50%  { opacity: var(--k-opacity); }
  100% {
    transform: translate(var(--k-x), var(--k-y)) scale(var(--k-scale));
    opacity: 0.08;
  }
}

/* --- Floating hand-drawn SVG illustrations (tapioca/taiyaki/icecream/coffee/paw/heart/star/bean) --- */
.floating-illust {
  position: absolute;
  pointer-events: none;
  animation: floatIllust var(--duration) linear infinite;
  opacity: 0;
  transform-origin: center;
  will-change: transform, opacity;
}
.floating-illust svg {
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes floatIllust {
  0% {
    transform: translateY(110vh) rotate(var(--rot-start)) scale(var(--scale));
    opacity: 0;
  }
  15% { opacity: var(--max-opacity); }
  85% { opacity: var(--max-opacity); }
  100% {
    transform: translateY(-20vh) rotate(var(--rot-end)) scale(var(--scale));
    opacity: 0;
  }
}

/* --- Floating food (taiyaki + tapioca) --- */
.floating-food {
  position: absolute;
  pointer-events: none;
  animation: floatFood var(--duration) linear infinite;
  opacity: 0;
  filter: drop-shadow(0 4px 10px rgba(138, 90, 43, 0.25));
  transform-origin: center;
}
.floating-food img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@keyframes floatFood {
  0%   {
    transform: translateY(110vh) translateX(0) rotate(var(--rot-start));
    opacity: 0;
  }
  10%  { opacity: var(--max-opacity); }
  50%  { transform: translateY(40vh) translateX(var(--drift)) rotate(0deg); }
  90%  { opacity: var(--max-opacity); }
  100% {
    transform: translateY(-25vh) translateX(calc(var(--drift) * -1)) rotate(var(--rot-end));
    opacity: 0;
  }
}

/* --- Tap effect: SVG doodle bloom (em-profile style) --- */
/* 極めてシンプル: position:fixed + translate(-50%,-50%) のみ
   SVG要素はGPUに優しく、1個だけなので超軽量 */
.tap-effect {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%) scale(0.5) rotate(-15deg);
  opacity: 0;
  will-change: transform, opacity;
  animation: tapBloom 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes tapBloom {
  0%   {
    transform: translate(-50%, -50%) scale(0.3) rotate(-15deg);
    opacity: 0;
  }
  20%  {
    transform: translate(-50%, -50%) scale(1.15) rotate(5deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6) rotate(20deg);
    opacity: 0;
    filter: blur(1.5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tap-effect { animation-duration: 0.7s; }
}

/* --- Twinkle stars --- */
.twinkle-star {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  animation: twinkleFade 3s ease-in-out forwards;
}
.draw-path-fast {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes twinkleFade {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 0.85; }
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ════════════════════════════════════════════
   CARD WRAPPER
   ════════════════════════════════════════════ */
.card-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 10;
  gap: 1.5rem;
  padding: 2rem 0 2rem;
  min-height: 100vh;
  min-height: 100dvh;
  /* Hide until splash done (prevents flash) */
  visibility: hidden;
}
.card-wrapper.ready {
  visibility: visible;
}

.footer-credit {
  font-family: var(--f-heading);
  font-size: 0.6rem;
  color: rgba(61, 43, 31, 0.35);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 0 1.5rem;
  opacity: 0;
  will-change: opacity, transform;
}
.anim .footer-credit {
  animation: fadeUp 1.2s ease 3.6s forwards;
}

/* ════════════════════════════════════════════
   PROFILE CARD (Glass card)
   ════════════════════════════════════════════ */
.profile-card {
  position: relative;
  z-index: 10;
  width: 92%;
  max-width: 460px;
  background: rgba(255, 250, 242, 0.72);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border-radius: 16px;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  box-shadow:
    0 30px 60px rgba(61, 43, 31, 0.18),
    inset 0 0 20px rgba(255, 255, 255, 0.3);

  opacity: 0;
  will-change: opacity, transform;
}
.anim .profile-card {
  animation:
    cardEnter 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards,
    cardFloat 16s ease-in-out 2.5s infinite alternate;
}

/* All card children on top of border/shine */
.profile-card > * {
  position: relative;
  z-index: 10;
}
.profile-card > .card-border-svg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 25;
}
.profile-card > .card-shine {
  position: absolute !important;
  z-index: 1;
}

/* SVG animated border */
.card-border-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.card-border-outer {
  fill: none;
  stroke: url(#border-grad);
  stroke-width: 1.2px;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}
.anim .card-border-outer {
  animation: drawBorderSlow 6s cubic-bezier(0.1, 0.6, 0.3, 1) 1s forwards;
}

.card-border-inner {
  fill: none;
  stroke: url(#border-grad-subtle);
  stroke-width: 0.5px;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}
.anim .card-border-inner {
  animation: drawBorderSlow 7s cubic-bezier(0.1, 0.6, 0.3, 1) 2.5s forwards;
}

.card-border-glow {
  fill: none;
  stroke: url(#border-grad-glow);
  stroke-width: 4px;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: blur(5px);
  opacity: 0;
}
.anim .card-border-glow {
  animation:
    drawBorderGlow 8s cubic-bezier(0.05, 0.5, 0.3, 1) 0.5s forwards,
    borderPulse 5s ease-in-out 9s infinite alternate;
}

.corner-ornament {
  stroke: var(--gold);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0;
}
.corner-ornament path,
.corner-ornament circle {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.anim .corner-ornament {
  animation: cornerReveal 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.anim .corner-ornament path,
.anim .corner-ornament circle {
  animation: drawCorner 3s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.anim .corner-tl { animation-delay: 3.5s; }
.anim .corner-tl path, .anim .corner-tl circle { animation-delay: 3.5s; }
.anim .corner-tr { animation-delay: 4.2s; }
.anim .corner-tr path, .anim .corner-tr circle { animation-delay: 4.2s; }
.anim .corner-br { animation-delay: 4.9s; }
.anim .corner-br path, .anim .corner-br circle { animation-delay: 4.9s; }
.anim .corner-bl { animation-delay: 5.6s; }
.anim .corner-bl path, .anim .corner-bl circle { animation-delay: 5.6s; }

.border-sparkle {
  fill: url(#sparkle-grad);
  opacity: 0;
  filter: blur(0.5px);
}
.anim .border-sparkle {
  animation: sparkleTravel var(--sp-duration) linear var(--sp-delay) infinite;
}

@keyframes drawBorderSlow {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  3%   { opacity: 0.4; }
  8%   { opacity: 0.8; }
  15%  { stroke-dashoffset: 80; }
  40%  { stroke-dashoffset: 50; }
  70%  { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes drawBorderGlow {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  5%   { opacity: 0.2; }
  15%  { stroke-dashoffset: 80; opacity: 0.4; }
  40%  { stroke-dashoffset: 50; }
  70%  { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 0; opacity: 0.5; }
}
@keyframes drawCorner {
  0%   { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}
@keyframes cornerReveal {
  0%   { opacity: 0; transform: scale(0.7); }
  40%  { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes borderPulse {
  0%   { opacity: 0.2; filter: blur(4px); }
  50%  { opacity: 0.55; filter: blur(6px); }
  100% { opacity: 0.2; filter: blur(4px); }
}
@keyframes sparkleTravel {
  0%   { offset-distance: 0%; opacity: 0; }
  5%   { opacity: 1; }
  50%  { opacity: 0.6; }
  95%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Shine sweep */
.card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 245, 230, 0.1) 25%,
    rgba(255, 245, 230, 0.45) 50%,
    rgba(255, 245, 230, 0.1) 75%,
    transparent 80%
  );
  background-size: 200% 200%;
  background-position: -150% 0;
  animation: shineSweep 16s cubic-bezier(0.3, 0.1, 0.3, 1) infinite;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
@keyframes shineSweep {
  0%, 65% { background-position: -150% 0; opacity: 0; }
  75%     { opacity: 1; }
  90%     { background-position: 250% 0; opacity: 0.6; }
  100%    { background-position: 250% 0; opacity: 0; }
}

@keyframes cardEnter {
  0%   { opacity: 0; transform: translateY(30px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* ════════════════════════════════════════════
   AVATAR & ORBIT RINGS
   ════════════════════════════════════════════ */
.avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  will-change: opacity, transform;
}
.anim .avatar-wrap {
  animation: cascadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.avatar-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 5;
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.2);
  border: 3px solid rgba(255, 250, 242, 0.9);
  animation: avatarBreathe 10s ease-in-out infinite alternate;
  background-color: var(--cream);
}
@keyframes avatarBreathe {
  from {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(61, 43, 31, 0.2), 0 0 0 rgba(184, 129, 75, 0);
  }
  to {
    transform: scale(1.05);
    box-shadow:
      0 8px 28px rgba(184, 129, 75, 0.35),
      0 0 30px 6px rgba(232, 169, 160, 0.3);
  }
}

.avatar-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 4px var(--gold-light));
}
.orbit-ring {
  fill: none;
  stroke: var(--gold);
  transform-origin: center;
}
.orbit-ring-1 {
  stroke-width: 1.2;
  stroke-dasharray: 4 8;
  opacity: 0.85;
  animation: spin 30s linear infinite;
}
.orbit-ring-2 {
  stroke-width: 0.8;
  stroke-dasharray: 15 10;
  opacity: 0.65;
  animation: spinRev 40s linear infinite;
}
.orbit-ring-3 {
  stroke-width: 0.5;
  stroke-dasharray: 2 4;
  opacity: 0.45;
  animation: spin 20s linear infinite;
}
.orbit-group-1 {
  transform-origin: center;
  animation: spin 20s linear infinite;
}
.orbit-group-2 {
  transform-origin: center;
  animation: spinRev 25s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}
@keyframes spinRev {
  100% { transform: rotate(-360deg); }
}

/* ════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════ */
.name-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.2rem;
}

.name {
  font-family: var(--f-name);
  font-size: clamp(2.5rem, 9vw, 3.6rem);
  line-height: 1.1;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.3rem;
  position: relative;

  background: linear-gradient(
    135deg,
    #a86b3a 0%,
    #d9a066 20%,
    #fff8ef 40%,
    #b8814b 60%,
    #e8a9a0 80%,
    #8a5a2b 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  opacity: 0;
  will-change: opacity, transform;
}
.anim .name {
  animation:
    blurTrackingIn 2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s forwards,
    nameShimmer 6s ease-in-out 3.5s infinite alternate;
}
@keyframes nameShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes blurTrackingIn {
  0% {
    letter-spacing: 0.3em;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    filter: blur(8px);
  }
  100% {
    letter-spacing: 0.02em;
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.name-underline {
  position: absolute;
  bottom: -4px;
  left: -5%;
  width: 110%;
  height: 15px;
  pointer-events: none;
  opacity: 0.5;
}

.subtitle {
  font-family: var(--f-heading);
  font-size: 0.8rem;
  color: var(--sepia);
  letter-spacing: 0.35em;
  padding-left: 0.35em;
  font-weight: 300;
  text-transform: lowercase;
  margin-bottom: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 1.2em;

  opacity: 0;
  will-change: opacity, transform;
}
.anim .subtitle {
  animation: cascadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
}

.cursor {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  background-color: var(--sepia);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Divider */
.divider-svg {
  width: 70%;
  max-width: 220px;
  margin: 0 auto 1.2rem;
  opacity: 0;
  will-change: opacity, transform;
}
.anim .divider-svg {
  animation: cascadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
}
.draw-path-slow {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}
.anim .draw-path-slow {
  animation: drawLine 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.anim .delay-1 { animation-delay: 2.2s; }
.anim .delay-2 { animation-delay: 2.5s; }
.anim .delay-3 { animation-delay: 2.8s; }
.divider-dot {
  opacity: 0;
}
.anim .divider-dot {
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes cascadeIn {
  0%   { opacity: 0; transform: translateY(25px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ════════════════════════════════════════════
   QUOTE SECTION
   ════════════════════════════════════════════ */
.quote-section {
  width: 100%;
  text-align: center;
  padding: 0.3rem 0 1rem;
  min-height: 2.4rem;
  opacity: 0;
  will-change: opacity, transform;
}
.anim .quote-section {
  animation: cascadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.0s forwards;
}
.quote-text {
  font-family: var(--f-name);
  font-size: 0.92rem;
  font-weight: 300;
  font-style: italic;
  color: var(--sepia);
  line-height: 1.6;
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.quote-text.visible {
  opacity: 1;
}
.quote-dash {
  display: block;
  font-family: var(--f-heading);
  font-size: 0.6rem;
  font-weight: 300;
  font-style: normal;
  color: rgba(138, 106, 74, 0.55);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ════════════════════════════════════════════
   NEXT SPOT
   ════════════════════════════════════════════ */
.next-spot {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 250, 242, 0.95) 0%,
    rgba(255, 235, 215, 0.95) 100%
  );
  border: 1px solid rgba(184, 129, 75, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(61, 43, 31, 0.08);
  margin-bottom: 1.2rem;

  opacity: 0;
  will-change: opacity, transform;
}
.anim .next-spot {
  animation: cascadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.4s forwards;
}
.next-spot__label {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--f-heading);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  padding-right: 12px;
  border-right: 1px dashed rgba(184, 129, 75, 0.35);
}
.next-spot__label i {
  font-size: 1.1rem;
  color: var(--rose);
}
.next-spot__body {
  flex: 1;
  text-align: left;
}
.next-spot__date {
  font-size: 0.75rem;
  color: var(--ink-mute);
  margin-bottom: 2px;
  font-family: var(--f-heading);
}
.next-spot__place {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  font-family: var(--f-body);
}

/* ════════════════════════════════════════════
   LINKS (BUTTONS)
   ════════════════════════════════════════════ */
.links-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 250, 242, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 129, 75, 0.2);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-heading);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;

  opacity: 0;
  will-change: opacity, transform;
}

.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 245, 230, 0.4),
    transparent
  );
  transform: skewX(-25deg);
  transition: none;
}
.link-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideInLeft {
  0%   { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}
.anim .link-btn:nth-child(1) { animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.8s forwards; }
.anim .link-btn:nth-child(2) { animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 3.05s forwards; }
.anim .link-btn:nth-child(3) { animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 3.3s forwards; }
.anim .link-btn:nth-child(4) { animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 3.55s forwards; }
.anim .link-btn:nth-child(5) { animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 3.8s forwards; }
.anim .link-btn:nth-child(6) { animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 4.05s forwards; }

.link-btn span {
  z-index: 2;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.link-btn .btn-icon {
  position: absolute;
  left: 1.5rem;
  width: 22px;
  height: 22px;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.link-btn .btn-icon path,
.link-btn .btn-icon circle,
.link-btn .btn-icon rect {
  stroke: var(--sepia);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.5s ease;
}

@media (hover: hover) {
  .link-btn:hover {
    background: rgba(255, 250, 242, 0.9);
    border-color: rgba(184, 129, 75, 0.5);
    box-shadow: 0 10px 30px rgba(61, 43, 31, 0.12);
    transform: translateY(-2px);
  }
  .link-btn:hover::before {
    left: 200%;
    transition: left 1s ease-in-out;
  }
  .link-btn:hover::after {
    width: 60%;
  }
  .link-btn:hover .btn-icon {
    transform: translateX(3px) scale(1.1);
  }
  .link-btn:hover .btn-icon path,
  .link-btn:hover .btn-icon circle,
  .link-btn:hover .btn-icon rect {
    stroke: var(--gold);
  }
  .link-btn:hover span {
    transform: translateX(3px);
  }
}
.link-btn:active {
  transform: translateY(0);
  transition: all 0.2s ease;
}

/* ════════════════════════════════════════════
   SECTIONS (Menu / Schedule)
   ════════════════════════════════════════════ */
.section {
  width: 100%;
  margin-top: 2rem;
  scroll-margin-top: 1rem;
  opacity: 0;
  will-change: opacity, transform;
}
.anim .section {
  animation: cascadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 4.2s forwards;
}
.anim .section:nth-of-type(2) {
  animation-delay: 4.5s;
}

.section__title {
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.section__title-en {
  font-family: var(--f-name);
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.section__title-ja {
  font-family: var(--f-heading);
  font-size: 0.65rem;
  color: var(--ink-mute);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.section__title::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background-color: var(--gold);
  margin-top: 6px;
  border-radius: 2px;
}

/* Menu list */
.menu-list {
  list-style: none;
  background: rgba(255, 250, 242, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 129, 75, 0.2);
  border-radius: 8px;
  padding: 4px 0;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px dashed rgba(184, 129, 75, 0.2);
}
.menu-item:last-child { border-bottom: none; }
.menu-item__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink);
}
.menu-item__name i {
  color: var(--gold);
  width: 18px;
  text-align: center;
}
.menu-item__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(184, 129, 75, 0.25));
}
.menu-item__price {
  font-family: var(--f-name);
  font-weight: 400;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Schedule */
.schedule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 250, 242, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 129, 75, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
}
.schedule-item__date {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(184, 129, 75, 0.3);
}
.schedule-item__day {
  font-family: var(--f-name);
  font-weight: 600;
  font-size: 1.3rem;
}
.schedule-item__month {
  font-family: var(--f-heading);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  margin-top: 2px;
  opacity: 0.95;
}
.schedule-item__info {
  flex: 1;
  text-align: left;
}
.schedule-item__place {
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink);
}
.schedule-item__time {
  font-family: var(--f-heading);
  font-size: 0.75rem;
  color: var(--ink-mute);
  margin-top: 2px;
}
.schedule-item__time i {
  margin-right: 4px;
}

/* Card footer */
.card-footer {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(184, 129, 75, 0.25);
  opacity: 0;
  will-change: opacity, transform;
}
.anim .card-footer {
  animation: fadeUp 1.2s ease 4.8s forwards;
}
.card-footer__signature {
  font-family: var(--f-name);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
}
.card-footer__signature i {
  margin-right: 6px;
  color: var(--rose);
}

/* ════════════════════════════════════════════
   SPLASH SCREEN
   ════════════════════════════════════════════ */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(
    180deg,
    #f3ead9 0%,
    #e6d7bb 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.splash-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(232, 169, 160, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(184, 129, 75, 0.18) 0%, transparent 45%);
  pointer-events: none;
}
.splash-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-name {
  font-family: var(--f-name);
  font-size: clamp(3.2rem, 13vw, 6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(
    135deg,
    #a86b3a 0%,
    #d9a066 20%,
    #fff8ef 40%,
    #b8814b 60%,
    #e8a9a0 80%,
    #8a5a2b 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: scale(1.1);
  animation:
    splashNameIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards,
    nameShimmer 4s ease-in-out 1s infinite alternate;
  position: relative;
  z-index: 2;
}
@keyframes splashNameIn {
  0%   { opacity: 0; transform: scale(1.15); filter: blur(10px); letter-spacing: 0.4em; }
  50%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); letter-spacing: 0.02em; }
}

.splash-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-top: 1rem;
  animation: splashLineGrow 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
  position: relative;
  z-index: 2;
}
@keyframes splashLineGrow {
  to { width: min(240px, 55vw); }
}

.splash-sub {
  font-family: var(--f-heading);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  color: var(--sepia);
  text-transform: lowercase;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.5s forwards;
  position: relative;
  z-index: 2;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 420px) {
  .profile-card {
    padding: 2.5rem 1.4rem 2rem;
  }
  .avatar-wrap { width: 110px; height: 110px; }
  .avatar-img { width: 92px; height: 92px; }
  .avatar-orbit { width: 160px; height: 160px; }
  .link-btn { padding: 0.9rem 1.2rem; font-size: 0.72rem; letter-spacing: 0.25em; }
  .link-btn .btn-icon { left: 1.1rem; width: 20px; height: 20px; }
  .next-spot { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
