:root {
  --void: #000000;
  --starlight: #f1efff;
  --haze: #a3a1c9;
  --violet: #8f86ff;
  --ember: #ffd9a8;
  --rose: #ff9fbf;
  --line: rgba(241, 239, 255, 0.13);
  --glass: rgba(4, 5, 12, 0.84);
  --danger: #ffa8a8;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ui: "Jost", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--ui);
  color: var(--starlight);
  background: var(--void);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--starlight); outline-offset: 3px; }

/* ---------- Gökyüzü, galaksi, gezegenler ---------- */
.sky {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(55% 40% at 15% 10%, rgba(98, 84, 200, 0.10), transparent 70%),
    radial-gradient(45% 35% at 90% 95%, rgba(60, 110, 210, 0.07), transparent 70%),
    var(--void);
}
.sky canvas { width: 100%; height: 100%; display: block; }

.galaxy {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none; display: block;
}
/* Galaksi ekranında tuval öne gelir ki fare ve dokunma olaylarını alabilsin
   (negatif katmandaki öğeler sayfa gövdesinin arkasında kalıp tıklanamaz). */
body[data-screen="wall"][data-view="galaxy"] .galaxy { z-index: 0; pointer-events: auto; touch-action: manipulation; }

/* Gezegenler hafifçe süzülür; fareyle birlikte biraz kayarak derinlik hissi verir. */
.planets {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
.planet-ringed { animation: float-a 18s ease-in-out infinite alternate; }
.planet-rose { animation: float-b 13s ease-in-out infinite alternate; }
.planet-moon { animation: float-b 9s ease-in-out infinite alternate-reverse; }
@keyframes float-a { to { transform: translate(-10px, 12px) rotate(-2deg); } }
@keyframes float-b { to { transform: translate(7px, -9px); } }
body[data-screen="wall"] .planets { opacity: 0; }
.planet { position: absolute; display: block; height: auto; }
.planet-ringed {
  width: clamp(250px, 34vw, 520px);
  top: clamp(-160px, -9vw, -60px);
  right: clamp(-200px, -10vw, -80px);
  filter: drop-shadow(0 0 50px rgba(143, 134, 255, 0.16));
}
.planet-moon {
  width: clamp(12px, 1.3vw, 20px);
  top: clamp(150px, 20vw, 300px);
  right: clamp(120px, 23vw, 360px);
}
.planet-rose {
  width: clamp(54px, 6vw, 92px);
  bottom: 18%; left: 6%;
  filter: drop-shadow(0 0 26px rgba(255, 159, 191, 0.2));
}

/* ---------- Butonlar ---------- */
.btn {
  font: inherit; font-weight: 500; letter-spacing: 0.02em;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 14px 28px;
  transition: box-shadow 0.25s ease, background 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Yörünge ışığı: butonun kenarında dönen küçük bir ışık */
@property --orbit { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn.orbit { position: relative; isolation: isolate; }
.btn.orbit::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--orbit),
    rgba(143, 134, 255, 0) 0deg, rgba(143, 134, 255, 0) 200deg,
    rgba(143, 134, 255, 0.75) 285deg, #ffffff 340deg, rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: orbit 3.6s linear infinite;
  pointer-events: none;
}
.btn.primary.orbit::before { inset: -5px; padding: 2px; }
#view-toggle::before { animation-duration: 4.6s; animation-delay: -2s; }
.btn.orbit:hover::before { filter: brightness(1.4); }
@keyframes orbit { to { --orbit: 360deg; } }
.btn.primary {
  color: #000;
  background: var(--starlight);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 30px rgba(241, 239, 255, 0.28);
}
.btn.primary:hover:not(:disabled) { box-shadow: 0 0 0 1px #fff, 0 0 46px rgba(241, 239, 255, 0.5); }
.btn.ghost { color: var(--starlight); background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(241, 239, 255, 0.35); }
.btn.small { padding: 10px 18px; font-size: 0.95rem; }

.link {
  font: inherit; color: var(--haze); background: none; border: 0; cursor: pointer;
  padding: 10px; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: rgba(163, 161, 201, 0.4);
}
.link:hover { color: var(--starlight); }

/* ---------- Giriş ekranı ---------- */
.intro {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 56px 16px 72px;
  max-width: 720px; margin: 0 auto;
  transition: opacity 0.7s ease;
}
.intro.leaving { opacity: 0; pointer-events: none; }

.intro-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2rem, 7.6vw, 4.5rem);
  line-height: 1.05; letter-spacing: -0.005em;
  width: min(1000px, calc(100vw - 32px)); /* geniş ekranda üç satır kalsın */
  margin: 0 0 22px;
  text-shadow: 0 0 34px rgba(241, 239, 255, 0.22);
}
.intro-title .line { display: block; }
.invite { font-size: clamp(1rem, 3.4vw, 1.15rem); color: var(--haze); letter-spacing: 0.02em; margin: 0 0 30px; }

/* Satırlar, odaklanan bir ışık gibi bulanıktan netleşerek belirir. */
.line { opacity: 0; animation: kindle 1.5s cubic-bezier(.2, .6, .2, 1) forwards; }
.d1 { animation-delay: 0.3s; }
.d2 { animation-delay: 1.4s; }
.d3 { animation-delay: 2.5s; }
.d4 { animation-delay: 3.7s; }
.d5 { animation-delay: 4.5s; }
body.returning .d1 { animation-delay: 0s; }
body.returning .d2 { animation-delay: 0.25s; }
body.returning .d3 { animation-delay: 0.5s; }
body.returning .d4 { animation-delay: 0.8s; }
body.returning .d5 { animation-delay: 1s; }

/* Açılış vitrininden sonra: başlık hızlıca belirir, yazma kutusu büyüyüp küçülerek yerine oturur. */
body.after-showcase .d1 { animation-delay: 0.1s; }
body.after-showcase .d2 { animation-delay: 0.3s; }
body.after-showcase .d3 { animation-delay: 0.5s; }
body.after-showcase .d4 { animation-delay: 0.75s; }
body.after-showcase #see-wishes { animation-delay: 1.5s; }
body.after-showcase .compose.line { animation: invite-pop 1.15s cubic-bezier(.2, .8, .2, 1) 0.9s both; }
body.after-showcase .wish-form { animation: invite-glow 1.8s ease 1.8s both; }
@keyframes invite-pop {
  0%   { opacity: 0; transform: scale(0.8); filter: blur(6px); }
  55%  { opacity: 1; transform: scale(1.07); filter: none; }
  78%  { transform: scale(0.985); }
  100% { opacity: 1; transform: none; }
}
@keyframes invite-glow {
  0%   { box-shadow: 0 0 0 0 rgba(241, 239, 255, 0); }
  35%  { box-shadow: 0 0 0 6px rgba(241, 239, 255, 0.18), 0 0 70px rgba(143, 134, 255, 0.35); }
  100% { box-shadow: 0 0 0 16px rgba(241, 239, 255, 0), 0 0 30px rgba(143, 134, 255, 0); }
}

/* ---------- Açılış vitrini ---------- */
.showcase {
  position: fixed; left: 0; right: 0; top: max(48px, 8vh); z-index: 4;
  padding: 0 16px; text-align: center; pointer-events: none;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.showcase.show { opacity: 1; transform: none; }
.showcase-title {
  margin: 0;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.9rem, 5.2vw, 3.4rem); line-height: 1.1;
  text-shadow: 0 0 34px rgba(241, 239, 255, 0.3);
}
.showcase-sub { margin: 8px 0 0; color: var(--haze); font-size: clamp(0.95rem, 2.6vw, 1.1rem); }
.showcase-labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.star-label.mini { max-width: min(260px, calc(100vw - 32px)); opacity: 0; }
.star-label.mini.in { animation: label-in 0.6s cubic-bezier(.2, .7, .2, 1) both; }
.star-label.mini.out { animation: label-out 0.35s ease forwards; }
@keyframes label-out { from { opacity: 1; } to { opacity: 0; filter: blur(4px); } }
@keyframes kindle {
  from { opacity: 0; filter: blur(10px); transform: scale(1.03); }
  to   { opacity: 1; filter: none; transform: none; }
}

.compose { position: relative; width: 100%; max-width: 560px; }
.wish-form {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}
.wish-form.released { opacity: 0; transform: scale(0.97); filter: blur(5px); pointer-events: none; }

.wish-form textarea, .wish-form input[type="text"] {
  width: 100%;
  font: inherit; color: var(--starlight);
  background: rgba(241, 239, 255, 0.035);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wish-form textarea {
  font-family: var(--display); font-size: 1.4rem; line-height: 1.35;
  min-height: 124px; resize: vertical;
}
.wish-form textarea::placeholder, .wish-form input::placeholder { color: rgba(163, 161, 201, 0.75); }
.wish-form textarea:focus, .wish-form input:focus {
  outline: none;
  border-color: rgba(241, 239, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(241, 239, 255, 0.06), 0 0 26px rgba(241, 239, 255, 0.08);
}

/* "Dileğimi gökyüzüne bırak": üstüne gelince kenarlarında yıldızlar belirir, içinden ışık geçer. */
.release-wrap { position: relative; }
.release-wrap .btn { width: 100%; }
.btn.release { position: relative; overflow: hidden; }
.btn.release::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(143, 134, 255, 0.34) 50%, transparent 70%);
  transform: translateX(-110%);
}
.btn.release:hover:not(:disabled) { transform: translateY(-1px); }
.btn.release:hover:not(:disabled)::after { transform: translateX(110%); transition: transform 1s ease; }

/* Kıvılcımlar (JS ile eklenir) */
.spark {
  position: absolute; z-index: 3; pointer-events: none;
  font-style: normal; line-height: 1; color: #fff;
  text-shadow: 0 0 4px #fff, 0 0 10px rgba(241, 239, 255, 0.95), 0 0 22px rgba(143, 134, 255, 0.85);
  animation: spark 900ms ease-out forwards;
}
.spark.rose { color: #ffd6e4; text-shadow: 0 0 6px rgba(255, 159, 191, 0.95), 0 0 16px rgba(255, 159, 191, 0.6); }
@keyframes spark {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0deg); }
  30%  { opacity: 1; transform: translate(calc(-50% + var(--dx) * 0.45), calc(-50% + var(--dy) * 0.45)) scale(1) rotate(40deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2) rotate(110deg); }
}

.form-row { display: flex; align-items: center; gap: 12px; }
.form-row input { flex: 1; min-width: 0; }
.counter { font-size: 0.85rem; color: var(--haze); font-variant-numeric: tabular-nums; white-space: nowrap; }
.counter.near { color: var(--ember); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; color: var(--danger); font-size: 0.95rem; }
.form-error:empty { display: none; }
.note { margin: 0; font-size: 0.85rem; color: var(--haze); }
.quota { font-weight: 500; color: var(--starlight); }
.wish-form.out .quota { display: block; color: var(--ember); font-size: 0.95rem; margin-bottom: 4px; }
.wish-form.out textarea, .wish-form.out input[type="text"] { opacity: 0.5; cursor: not-allowed; }

/* Gönderme anı: yazı kaybolur, yerinde beyaz bir ışık toplanır. */
.ritual {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 10px;
  opacity: 0; transition: opacity 0.8s ease;
}
.ritual.show { opacity: 1; }
.ritual-title { font-family: var(--display); font-weight: 300; font-size: clamp(1.8rem, 5.6vw, 2.5rem); margin: 0 0 6px; }
.ritual-sub { margin: 0; color: var(--haze); font-size: 1.05rem; }
.orb {
  position: absolute; left: 50%; top: 64%;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #fff 13%, rgba(225, 228, 255, 0.55) 30%, rgba(180, 170, 255, 0) 70%);
  transform: scale(0); opacity: 0;
  transition: transform 2s cubic-bezier(.2, .7, .2, 1), opacity 1s ease;
  pointer-events: none;
}
.orb.grow { transform: scale(1); opacity: 1; animation: breathe 1.4s ease-in-out 0.9s infinite; }
@keyframes breathe { 50% { filter: brightness(1.4); } }

#see-wishes { margin-top: 18px; }

/* Tek ekrana sığdırma: giriş ekranı ekran yüksekliğine göre ölçeklenir, aşağı kaydırma gerekmez. */
.intro { padding-top: clamp(14px, 4vh, 56px); padding-bottom: clamp(14px, 4vh, 72px); }
.intro-title { font-size: clamp(1.8rem, min(7.6vw, 8.2vh), 4.5rem); margin-bottom: clamp(6px, 2vh, 22px); }
.invite { margin-bottom: clamp(10px, 2.6vh, 30px); }
.wish-form { padding: clamp(10px, 1.9vh, 18px); gap: clamp(7px, 1.4vh, 12px); }
.wish-form textarea { height: clamp(62px, 13vh, 124px); min-height: 0; font-size: clamp(1.1rem, 2.6vh, 1.4rem); }
.wish-form input[type="text"] { padding-top: clamp(8px, 1.4vh, 12px); padding-bottom: clamp(8px, 1.4vh, 12px); }
.release-wrap .btn { padding-top: clamp(10px, 1.8vh, 14px); padding-bottom: clamp(10px, 1.8vh, 14px); }
.note { font-size: clamp(0.78rem, 1.6vh, 0.85rem); }
/* Galaksinin parlak çekirdeği üstünde de okunsun diye koyu zeminli, belirgin bir buton */
#see-wishes {
  margin-top: clamp(8px, 1.8vh, 18px);
  padding: clamp(9px, 1.5vh, 13px) 26px;
  font-size: clamp(0.98rem, 2vh, 1.08rem);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(241, 239, 255, 0.28), 0 0 26px rgba(0, 0, 0, 0.8);
}
#see-wishes:hover { background: rgba(20, 18, 50, 0.75); }

/* ---------- Dilek galaksisi ---------- */
body[data-screen="wall"] main { pointer-events: none; }
body[data-screen="wall"] main :is(button, .list-view) { pointer-events: auto; }

.wall-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: max(20px, env(safe-area-inset-top)) 24px 28px;
  background: linear-gradient(#000 0%, rgba(0, 0, 0, 0.65) 55%, rgba(0, 0, 0, 0));
}
.wall-head h2 { font-family: var(--display); font-weight: 300; font-size: clamp(2.5rem, 6.4vw, 4.4rem); margin: 0; line-height: 1.02; }
.total { margin: 6px 0 0; color: var(--haze); font-size: 0.98rem; }
.total::before { content: "✦"; display: inline-block; margin-right: 8px; color: var(--starlight); animation: twinkle-dot 2.6s ease-in-out infinite; }
@keyframes twinkle-dot { 50% { opacity: 0.25; transform: scale(0.7) rotate(45deg); } }
.wall-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; padding: 6px; }
.wall-actions .btn { padding: 15px 28px; font-size: 1.06rem; }

/* "Dilek Galaksisi" başlığı: harflerin üstünden yıldız ışığı süzülür, etrafında yıldızlar göz kırpar. */
.galaxy-title { position: relative; display: inline-block; }
.wall:not([hidden]) .galaxy-title { animation: kindle 1.4s cubic-bezier(.2, .6, .2, 1) both; }
.gt-text {
  background: linear-gradient(100deg,
    #e6e3ff 0%, #f1efff 36%, #ffffff 45%, #b8b0ff 50%, #ffffff 55%, #f1efff 64%, #e6e3ff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(241, 239, 255, 0.28));
  animation: sheen 6.5s ease-in-out infinite;
}
@keyframes sheen {
  0% { background-position: 100% 0; }
  55%, 100% { background-position: -60% 0; }
}
.gt-sparks { position: absolute; inset: -16px -26px; pointer-events: none; }
.gt-sparks i {
  position: absolute; font-style: normal; line-height: 1;
  color: #fff; text-shadow: 0 0 8px rgba(241, 239, 255, 0.95), 0 0 18px rgba(143, 134, 255, 0.7);
  opacity: 0; animation: spark-twinkle 3.4s ease-in-out infinite;
}
.gt-sparks i:nth-child(1) { left: 3%; top: 4%; font-size: 13px; }
.gt-sparks i:nth-child(2) { left: 41%; top: -6%; font-size: 9px; animation-delay: 0.7s; }
.gt-sparks i:nth-child(3) { right: 1%; top: 12%; font-size: 17px; animation-delay: 1.4s; }
.gt-sparks i:nth-child(4) { left: 66%; bottom: 0; font-size: 10px; animation-delay: 2.1s; }
.gt-sparks i:nth-child(5) { left: 18%; bottom: -4%; font-size: 8px; animation-delay: 2.7s; }
@keyframes spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  35% { opacity: 1; transform: scale(1) rotate(45deg); }
  65% { opacity: 0; transform: scale(0.3) rotate(90deg); }
}

.hint {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  margin: 0; text-align: center;
  color: var(--haze); font-size: 0.92rem;
  transition: opacity 0.4s ease;
}
body.panel-open .hint { opacity: 0; }

.empty {
  position: fixed; left: 0; right: 0; top: 46%;
  margin: 0; padding: 0 24px; text-align: center;
  font-family: var(--display); font-size: 1.6rem; font-weight: 300;
}

.list-view { max-width: 1120px; margin: 0 auto; padding: 170px 16px 72px; }
.wishes {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  align-items: start;
}
.wishes .wish {
  background: rgba(4, 5, 12, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 10px;
}
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Dilek kartı (liste ve panel) ---------- */
.badge { margin: 0 0 6px; font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--ember); }
.wish-text {
  font-family: var(--display); font-size: 1.32rem; line-height: 1.38;
  margin: 0 0 10px; white-space: pre-line; overflow-wrap: anywhere;
}
.wish-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; font-size: 0.85rem; color: var(--haze); }
.wish-name { color: var(--starlight); }

.wish-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: -10px; }
.act {
  position: relative;
  font: inherit; font-size: 0.88rem; color: var(--haze);
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px;
}
.act:hover { color: var(--starlight); background: rgba(241, 239, 255, 0.06); }
.heart-icon { font-size: 1.1rem; line-height: 1; }
.heart[aria-pressed="true"] { color: var(--rose); }
.heart[aria-pressed="true"] .heart-icon { animation: pop 0.4s ease; }
.heart-count { font-weight: 500; font-variant-numeric: tabular-nums; }
.report { margin-left: auto; font-size: 0.8rem; opacity: 0.7; }
.wish.mine .report { display: none; }
@keyframes pop { 50% { transform: scale(1.5); } }

/* ---------- Yıldız etiketi ve dilek paneli ---------- */
.star-label {
  position: fixed; left: 0; top: 0; z-index: 6;
  max-width: min(320px, calc(100vw - 24px));
  padding: 12px 14px;
  background: var(--glass);
  border: 1px solid rgba(241, 239, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 0 34px rgba(241, 239, 255, 0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.star-label.in { animation: label-in 0.35s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes label-in {
  from { opacity: 0; filter: blur(6px); }
  to   { opacity: 1; filter: none; }
}
/* Etiketi yıldıza bağlayan ince ışık çizgisi */
.star-label::after {
  content: ""; position: absolute;
  left: var(--tx, 50%); top: 100%;
  width: 1px; height: 24px;
  background: linear-gradient(rgba(241, 239, 255, 0.6), rgba(241, 239, 255, 0));
}
.star-label.below::after {
  top: auto; bottom: 100%;
  background: linear-gradient(rgba(241, 239, 255, 0), rgba(241, 239, 255, 0.6));
}
.sl-text { margin: 0; font-family: var(--display); font-size: 1.18rem; line-height: 1.3; }
.sl-meta { margin: 4px 0 0; font-size: 0.8rem; color: var(--haze); }

.panel {
  position: fixed; z-index: 10;
  left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  width: min(440px, calc(100% - 32px));
  max-height: calc(100svh - 140px); overflow-y: auto;
  padding: 22px 22px 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 0 70px rgba(143, 134, 255, 0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translate(-50%, 16px); opacity: 0;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), opacity 0.3s ease;
}
.panel.show { transform: translate(-50%, 0); opacity: 1; }
.panel .wish { padding-right: 26px; }
.panel .wish-text { font-size: 1.62rem; }
.panel .wish.mine .share { display: none; } /* altında büyük paylaş butonu var */
.panel-close {
  position: absolute; top: 8px; right: 8px;
  width: 38px; height: 38px; border-radius: 50%;
  background: none; border: 0; cursor: pointer;
  color: var(--haze); font-size: 1.6rem; line-height: 1;
}
.panel-close:hover { color: var(--starlight); background: rgba(241, 239, 255, 0.06); }
.share-own { margin-top: 10px; width: 100%; }

/* ---------- Bildirim ---------- */
.toast {
  position: fixed; left: 50%; z-index: 20;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  background: var(--glass); color: var(--starlight);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-size: 0.95rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .planet-ringed { width: 230px; top: -96px; right: -104px; }
  .planet-moon { width: 11px; top: 22px; right: 150px; }
  .planet-rose { width: 46px; top: 26px; bottom: auto; left: -14px; }
  .wall-head { padding-left: 16px; padding-right: 16px; flex-direction: column; gap: 10px; }
  .wall-actions { justify-content: flex-start; gap: 12px; padding: 6px 4px; }
  .wall-actions .btn { padding: 14px 22px; font-size: 1rem; }
  .gt-sparks { inset: -10px -6px; }
  .list-view { padding-top: 220px; }
}

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