/* Świecące kółka w bocznym menu. */
.button-stack,
.button-stack * { box-sizing: border-box; }
.orb-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  color: #fff;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.1) 0%, rgba(var(--glow-color), .08) 50%, rgba(var(--glow-color), .35) 100%);
  box-shadow:
    inset 0 0 16px 1px rgba(var(--glow-color), .35),
    inset 0 0 6px 1px rgba(var(--glow-color), .55),
    0 0 16px 1px rgba(var(--glow-color), .25);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s cubic-bezier(.2,.8,.2,1);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  padding: 0;
}
.orb-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.25) 0%, transparent 40%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
  z-index: 0;
}
.orb-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-25deg);
  z-index: 1;
  pointer-events: none;
}
.btn-wrapper:hover .orb-btn,
.btn-wrapper:focus-within .orb-btn {
  transform: scale(1.06);
  box-shadow:
    inset 0 0 18px 2px rgba(var(--glow-color), .5),
    0 0 22px 4px rgba(var(--glow-color), .35);
}
.orb-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  z-index: 2;
  position: relative;
}
.btn-teal { --glow-color: 52, 142, 150; }
.btn-silver { --glow-color: 180, 195, 210; }
.btn-mauve { --glow-color: 188, 108, 148; }
.btn-wrapper.is-go .orb-btn { animation: orbPress .62s cubic-bezier(.2,.8,.2,1) forwards; }
.btn-wrapper.is-go .orb-btn::after { animation: orbShimmer .62s ease-out forwards; }
.btn-wrapper.is-go .orb-btn svg { animation: orbIconGo .62s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes orbPress {
  0% { transform: scale(1); }
  32% { transform: scale(.86); }
  68% { transform: scale(1.1); }
  100% { transform: scale(1.02); }
}
@keyframes orbShimmer {
  0% { left: -150%; }
  100% { left: 200%; }
}
@keyframes orbIconGo {
  0% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(.8) rotate(-16deg); }
  100% { transform: scale(1.15) rotate(16deg); }
}
.orb-btn:focus-visible { outline: 2px solid #e8d7b0; outline-offset: 3px; }

html body .nm-sidebar nav.button-stack--side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  margin: 0;
  padding: 2px 0;
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  scrollbar-width: thin;
}
html body .nm-sidebar nav.button-stack--side .btn-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  opacity: 1;
}
html body .nm-sidebar nav.button-stack--side a.orb-btn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border-radius: 50%;
}
html body .nm-sidebar nav.button-stack--side .btn-label {
  position: static;
  margin: 0;
  opacity: 1;
  transform: none;
  filter: none;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  color: #d5dfcc;
  text-align: left;
  white-space: nowrap;
  text-shadow: none;
  pointer-events: none;
}
html body .nm-sidebar nav.button-stack--side .btn-wrapper.is-current .btn-label { color: #fff; }
html body .nm-sidebar nav.button-stack--side a.orb-btn.is-current {
  box-shadow:
    inset 0 0 16px 2px rgba(var(--glow-color), .55),
    0 0 18px 2px rgba(var(--glow-color), .45);
}
@media (max-width: 620px) {
  html body .nm-sidebar nav.button-stack--side {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    gap: 12px;
    width: auto;
    margin: 12px -8px 0;
    padding: 4px 12px 10px;
    scrollbar-width: none;
  }
  html body .nm-sidebar nav.button-stack--side .btn-wrapper {
    flex-direction: column;
    width: auto;
    min-width: 4.5rem;
    gap: 6px;
  }
  html body .nm-sidebar nav.button-stack--side .btn-label {
    font-size: 10px;
    text-align: center;
    white-space: normal;
    max-width: 4.8rem;
    line-height: 1.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-wrapper.is-go .orb-btn,
  .btn-wrapper.is-go .orb-btn::after,
  .btn-wrapper.is-go .orb-btn svg { animation: none !important; }
}

/* Nastrój — te same świecące kółka. */
html body .nm-moods {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 14px 10px !important;
}
html body .nm-moods button {
  position: relative;
  background: transparent !important;
  border: 0 !important;
  min-width: 58px;
  flex: 1 1 58px;
  max-width: 84px;
}
html body .nm-moods button:nth-child(3n+1) { --glow-color: 52, 142, 150; }
html body .nm-moods button:nth-child(3n+2) { --glow-color: 180, 195, 210; }
html body .nm-moods button:nth-child(3n) { --glow-color: 188, 108, 148; }
html body .nm-moods button .nm-icon {
  width: 46px !important;
  height: 46px !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.16) 0%, rgba(var(--glow-color), .14) 46%, rgba(var(--glow-color), .46) 100%) !important;
  box-shadow:
    inset 0 0 12px 1px rgba(var(--glow-color), .5),
    0 0 14px 1px rgba(var(--glow-color), .3) !important;
}
html body .nm-moods button:hover .nm-icon,
html body .nm-moods button:focus-visible .nm-icon {
  transform: scale(1.06);
}
html body .nm-moods button[aria-pressed=true] .nm-icon {
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.08) 0%, rgba(var(--glow-color), .28) 42%, rgba(var(--glow-color), .62) 100%) !important;
  box-shadow:
    inset 0 0 16px 2px rgba(var(--glow-color), .7),
    0 0 20px 3px rgba(var(--glow-color), .48) !important;
  color: #fff !important;
}
html body .nm-moods button.is-go .nm-icon {
  animation: orbPress .62s cubic-bezier(.2,.8,.2,1);
}
html body .nm-moods button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  border-radius: 50%;
  pointer-events: none;
}
html body .nm-moods button.is-go::after {
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: moodSweep .62s ease-out;
}
@keyframes moodSweep {
  from { background-position: 130% 0; }
  to { background-position: -30% 0; }
}
html body #nmMoodReply.is-fresh {
  animation: moodReply .45s ease;
}
@keyframes moodReply {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 620px) {
  html body .nm-moods button { flex-basis: 30%; max-width: none; }
  html body .nm-moods button .nm-icon { width: 42px !important; height: 42px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body .nm-moods button.is-go .nm-icon,
  html body .nm-moods button.is-go::after,
  html body #nmMoodReply.is-fresh { animation: none !important; }
}

/* Kafelki — ten sam kolor światła, bez zmiany kształtu. */
html body .nm-corner-letter { --glow-color: 52, 142, 150; }
html body .nm-corner-film { --glow-color: 180, 195, 210; }
html body .nm-corner-panda { --glow-color: 188, 108, 148; }
html body .nm-corner-sky { --glow-color: 214, 186, 122; }
html body .nm-corner-draw { --glow-color: 180, 195, 210; }
html body .nm-corner-clip { --glow-color: 214, 186, 122; }
html body .nm-corner-thought { --glow-color: 52, 142, 150; }
html body .nm-corner-quiet { --glow-color: 188, 108, 148; }
html body .nm-corner-eve { --glow-color: 214, 186, 122; }
html body .nm-corner-jar { --glow-color: 188, 108, 148; }
html body .nm-corners .nm-corner {
  border-color: rgba(var(--glow-color), .42) !important;
  box-shadow:
    inset 0 0 28px rgba(var(--glow-color), .1),
    0 0 18px rgba(var(--glow-color), .16) !important;
}
html body .nm-corners .nm-corner:hover {
  border-color: rgba(var(--glow-color), .7) !important;
  box-shadow:
    inset 0 0 34px rgba(var(--glow-color), .16),
    0 0 26px 2px rgba(var(--glow-color), .28) !important;
}
html body .nm-corner-letter .nm-envelope,
html body .nm-corner-film .nm-ticket {
  box-shadow: 0 0 16px rgba(var(--glow-color), .28);
}
html body .nm-panda-art svg {
  width: 118px;
  height: 88px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(188, 108, 148, .35));
}
html body .nm-corner-sky .nm-mini-art svg {
  filter: drop-shadow(0 0 8px rgba(214, 186, 122, .35));
}

/* Utwór, wiadomość i nastrój — ta sama poświata, bez zmiany kształtu. */
html body .nm-song-card { --glow-color: 214, 186, 122; }
html body .nm-daily { --glow-color: 52, 142, 150; }
html body .nm-mood { --glow-color: 188, 108, 148; }
html body .nm-song-card,
html body .nm-daily,
html body .nm-mood {
  border-color: rgba(var(--glow-color), .45) !important;
  box-shadow:
    inset 0 0 28px rgba(var(--glow-color), .1),
    0 0 18px rgba(var(--glow-color), .16) !important;
}
html body .nm-song-card:hover,
html body .nm-daily:hover,
html body .nm-mood:hover {
  border-color: rgba(var(--glow-color), .7) !important;
  box-shadow:
    inset 0 0 34px rgba(var(--glow-color), .16),
    0 0 26px 2px rgba(var(--glow-color), .28) !important;
}

/* Cała strona: ramki świecą, przyciski błyskają. Kształt bez zmian. */
html body :is(
  .box, .card, .panel, .pet-card, .pet-name-gate, .message-composer, .messages-shell,
  .nm-memory-strip, .nm-weekend, .daily-card, .memory-card, .update-card, .feel-card,
  .quiet-msg-card, .finds-reward-card, .hearts-reward-card, .reply-box, .return-card,
  .wait-card, .safe-box, .letter-paper, .listy-article, .gallery-shell, .new-note,
  .date-letter, .frame, .cinema .frame
) {
  --glow-color: 180, 195, 210;
  border-color: rgba(var(--glow-color), .42) !important;
  box-shadow:
    inset 0 0 26px rgba(var(--glow-color), .09),
    0 0 16px rgba(var(--glow-color), .14) !important;
}
html body :is(
  .box, .card, .panel, .pet-card, .message-composer, .messages-shell,
  .nm-memory-strip, .daily-card, .memory-card, .update-card, .feel-card,
  .letter-paper, .listy-article, .date-letter, .frame
):hover {
  border-color: rgba(180, 195, 210, .68) !important;
  box-shadow:
    inset 0 0 32px rgba(180, 195, 210, .14),
    0 0 22px 1px rgba(180, 195, 210, .24) !important;
}
html body button:not(.orb-btn):not([data-home-mood]):not(.curtain),
html body a.back,
html body a.nowe-btn,
html body a.game-btn,
html body a.primary-btn,
html body a.memory-btn,
html body a.world-btn,
html body a.pet-btn,
html body a.letter-close,
html body a.date-ready-btn,
html body .composer-send,
html body .lock-btn {
  position: relative;
}
html body button:not(.orb-btn):not([data-home-mood]).life-go::after,
html body a.back.life-go::after,
html body a.nowe-btn.life-go::after,
html body a.game-btn.life-go::after,
html body a.primary-btn.life-go::after,
html body a.memory-btn.life-go::after,
html body a.world-btn.life-go::after,
html body a.pet-btn.life-go::after,
html body a.letter-close.life-go::after,
html body a.date-ready-btn.life-go::after,
html body .composer-send.life-go::after,
html body .lock-btn.life-go::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: moodSweep .42s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  html body .life-go::after { animation: none !important; }
}

/* Co nowego — pierwsze i podświetlone. */
html body .nm-news {
  margin: 18px 0 6px;
  padding: 22px 26px 16px;
  border: 1px solid rgba(214, 186, 122, .5);
  border-radius: 12px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(214, 186, 122, .16), transparent 46%),
    #1c2b23;
  box-shadow:
    inset 0 0 28px rgba(214, 186, 122, .12),
    0 0 24px rgba(214, 186, 122, .18);
}
html body .nm-news-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: .22em;
  color: #e4d2a4;
}
html body .nm-news h2 {
  margin: 6px 0 14px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -.04em;
}
html body .nm-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
html body .nm-news li {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
}
html body .nm-news a {
  color: #e7ecdf;
  text-decoration: none;
}
html body .nm-news a:hover { color: #fff; }
html body .nm-news b {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(188, 108, 148, .28);
  color: #f3d5e4;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  vertical-align: 1px;
}
@media (max-width: 620px) {
  html body .nm-news { padding: 18px 16px 12px; margin-top: 14px; }
  html body .nm-news h2 { font-size: 26px; }
  html body .nm-news li { font-size: 14px; }
}

/* Duże przyciski — prostokąty, ten sam błysk. */
html body a.nm-button,
html body #homeFullPage {
  position: relative;
  overflow: hidden;
}
html body a.nm-button.is-go::after,
html body #homeFullPage.is-go::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.42) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: moodSweep .42s ease-out;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  html body a.nm-button.is-go::after,
  html body #homeFullPage.is-go::after { animation: none !important; }
}

html body .nm-return {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 14px;
  margin: 6px 0 22px;
}
html body .nm-return a {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  padding: 20px 22px 18px;
  background: #1c2b23;
  border: 1px solid rgba(var(--glow-color), .45);
  box-shadow:
    inset 0 0 24px rgba(var(--glow-color), .12),
    0 0 22px rgba(var(--glow-color), .16);
}
html body .nm-return-eve { --glow-color: 214, 186, 122; }
html body .nm-return-jar { --glow-color: 188, 108, 148; }
html body .nm-return h3 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 3vw, 34px);
}
html body .nm-return p { margin: 0; line-height: 1.45; }
@media (max-width: 700px) {
  html body .nm-return { grid-template-columns: 1fr; }
}

html body .nm-room-entry {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 14px;
  margin: 0 0 26px;
}
html body .nm-room-entry-copy,
html body .nm-lights {
  border-radius: 14px;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(214, 186, 122, .16), transparent 55%),
    #1c2b23;
  border: 1px solid rgba(214, 186, 122, .45);
  box-shadow: inset 0 0 28px rgba(214, 186, 122, .1), 0 0 22px rgba(214, 186, 122, .14);
}
html body .nm-room-entry-copy {
  display: block;
  padding: 26px 26px 22px;
  text-decoration: none;
  color: inherit;
}
html body .nm-room-entry h2 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 4vw, 52px);
}
html body .nm-room-entry-copy p { margin: 0 0 16px; max-width: 36rem; }
html body .nm-room-go {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(214, 186, 122, .6);
  letter-spacing: .04em;
}
html body .nm-lights { padding: 18px 18px 14px; }
html body .nm-lights-kicker {
  margin: 0 0 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
  color: #e4d2a4;
}
html body .nm-lights-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
html body .nm-lights-grid span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
html body .nm-lights-grid span.is-pad { background: transparent; }
html body .nm-lights-grid span.is-on { background: #e4d2a4; box-shadow: 0 0 8px rgba(228, 210, 164, .7); }
html body .nm-lights-grid span.is-today { outline: 1px solid #e4d2a4; outline-offset: 2px; }
html body .nm-lights-note { margin: 10px 0 0; font-size: 12px; color: #b7c4b4; }
@media (max-width: 800px) {
  html body .nm-room-entry { grid-template-columns: 1fr; }
}
