/* ─── Theme tokens ─── */
:root {
  --bg-1: #FFF8F5;
  --bg-2: #FFECE3;
  --bg-3: #FFE0D5;
  --dot-rgba: rgba(238,77,45,0.09);
  --hdr-1: #FF3B1F;
  --hdr-2: #EE4D2D;
  --hdr-3: #FF7337;
  --hdr-4: #FF8C42;
  --hdr-shadow: rgba(238,77,45,0.45);
  --hdr-glow:   rgba(238,77,45,0.08);
  --accent:        #EE4D2D;
  --accent-alt:    #FF7337;
  --accent-shadow: rgba(238,77,45,0.4);
  --accent-sm:     rgba(238,77,45,0.14);
  --accent-border: rgba(238,77,45,0.18);
  --accent-dot:    rgba(238,77,45,0.55);
  --mascot-shadow: rgba(238,77,45,0.35);
  --footer-color:  #EE4D2D;
  --mascot-size:   135px; /* one size for every mascot — keeps them identical */
}
body.beach-theme {
  --bg-1: #E8F9F8;
  --bg-2: #D0F0EE;
  --bg-3: #F2EDD7;
  --dot-rgba: rgba(0,172,193,0.07);
  --hdr-1: #006D77;
  --hdr-2: #00ACC1;
  --hdr-3: #26C6DA;
  --hdr-4: #4DD0E1;
  --hdr-shadow: rgba(0,172,193,0.45);
  --hdr-glow:   rgba(0,172,193,0.08);
  --accent:        #26C6DA;
  --accent-alt:    #00ACC1;
  --accent-shadow: rgba(0,172,193,0.4);
  --accent-sm:     rgba(0,172,193,0.14);
  --accent-border: rgba(0,172,193,0.18);
  --accent-dot:    rgba(0,172,193,0.55);
  --mascot-shadow: rgba(0,172,193,0.35);
  --footer-color:  #00838F;
  --mascot-size:   120px; /* beach mascots stay at their original size */
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  font-family: 'Nunito', 'Patrick Hand', cursive;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, var(--dot-rgba) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none; z-index: 0;
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
@keyframes mascot-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes mascot-pop-in {
  from { transform: translateX(-50%) scale(0) rotate(-12deg); opacity: 0; }
  to   { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 1; }
}
@keyframes mascot-fade-out {
  from { opacity: 1; transform: translateX(-50%) scale(1); }
  to   { opacity: 0; transform: translateX(-50%) scale(0.8) translateY(-20px); }
}
@keyframes sway {
  0%, 100% { transform: translateY(0)    rotate(-3deg); }
  50%       { transform: translateY(-14px) rotate(3deg); }
}
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 2px 10px var(--accent-shadow); }
  50%       { box-shadow: 0 2px 26px var(--accent-shadow), 0 0 0 5px rgba(238,77,45,0.1); }
}

/* Sync Status */
.sync-status {
  position: fixed; top: 12px; right: 16px; z-index: 100;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; color: #666;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-family: 'Nunito', sans-serif; font-weight: 600;
}
.sync-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #66BB6A;
}
.sync-dot.saving { background: #FFA726; animation: pulse 0.8s infinite; }
.sync-dot.error { background: #E53935; }

/* Header */
.header {
  position: relative; z-index: 10; padding: 36px 24px 28px; text-align: center;
  background: linear-gradient(135deg, var(--hdr-1) 0%, var(--hdr-2) 45%, var(--hdr-3) 80%, var(--hdr-4) 100%);
  box-shadow: 0 4px 28px var(--hdr-shadow), 0 0 60px var(--hdr-glow);
  overflow: visible;
}
.header h1 {
  font-family: 'Caveat', cursive; font-size: clamp(36px, 6vw, 56px);
  color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.2); letter-spacing: 1px;
}
.header .subtitle {
  font-family: 'Shadows Into Light', cursive; color: rgba(255,255,255,0.85);
  font-size: clamp(15px, 2.5vw, 20px); margin-top: 6px; letter-spacing: 2px;
}
.note-count { margin-top: 10px; color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 600; }

/* Header mascots */
.header-mascot {
  position: absolute; bottom: -42px;
  width: var(--mascot-size); z-index: 20;
  animation: mascot-float 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px var(--mascot-shadow));
  pointer-events: none; user-select: none;
}
.header-mascot-left  { left: max(40px, 4vw); animation-delay: 0.4s; }
.header-mascot-right { right: max(40px, 4vw); }

/* Compose buddy mascot — perches on top-right corner of the compose card */
.compose-mascot {
  position: absolute;
  top: -62px; right: -24px;
  width: var(--mascot-size); z-index: 25;
  animation: sway 3.2s ease-in-out infinite;
  animation-delay: 1.8s;
  filter: drop-shadow(0 5px 14px var(--mascot-shadow));
  pointer-events: none; user-select: none;
}

/* Left side peek mascot — fixed to the left viewport edge, slides in on hover */
.mascot-fixed-left {
  position: fixed;
  left: -28px; top: 72%;
  width: var(--mascot-size); z-index: 60;
  animation: sway 4.6s ease-in-out infinite;
  animation-delay: 0.6s;
  filter: drop-shadow(4px 6px 16px var(--mascot-shadow));
  transition: left 0.4s cubic-bezier(0.34,1.56,0.64,1), filter 0.25s ease;
  pointer-events: auto; user-select: none; cursor: default;
}
.mascot-fixed-left:hover {
  left: 6px;
  filter: drop-shadow(4px 8px 22px var(--accent-shadow));
}

/* Right side hover mascot — floats in the lower-right corner */
.mascot-fixed-right {
  position: fixed;
  right: 12px; bottom: 155px;
  width: var(--mascot-size); z-index: 60;
  animation: mascot-float 3.9s ease-in-out infinite;
  animation-delay: 1.1s;
  filter: drop-shadow(-3px 6px 16px var(--mascot-shadow));
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), filter 0.25s ease;
  pointer-events: auto; user-select: none; cursor: default;
}
.mascot-fixed-right:hover {
  transform: scale(1.13) rotate(-6deg);
  filter: drop-shadow(-3px 8px 24px var(--accent-shadow));
}

/* Layout */
.main {
  position: relative; z-index: 5; max-width: 1600px; margin: 0 auto;
  padding: 60px 24px 40px; display: flex; gap: 32px; flex-wrap: wrap;
  justify-content: center; align-items: flex-start;
}

/* Compose */
.compose { position: sticky; top: 20px; z-index: 20; animation: float-in 0.6s ease-out; }
.compose-inner {
  background: rgba(255,255,255,0.98); border-radius: 16px; padding: 24px;
  box-shadow: 0 6px 28px var(--accent-sm); backdrop-filter: blur(10px);
  border: 2px solid var(--accent-border); max-width: 440px; width: 100%;
}
.compose-inner h3 { font-family: 'Caveat', cursive; font-size: 26px; color: #444; margin-bottom: 16px; }
.compose-inner input[type="text"], .compose-inner textarea {
  width: 100%; padding: 10px 14px; border: 2px solid #e0e0e0; border-radius: 8px;
  font-family: 'Patrick Hand', cursive; font-size: 16px; outline: none;
  transition: border-color 0.2s; background: white;
}
.compose-inner input[type="text"] { margin-bottom: 10px; }
.compose-inner textarea { resize: vertical; }
.compose-inner input:focus, .compose-inner textarea:focus { border-color: var(--accent); }

.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.action-btn {
  padding: 8px 14px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 8px;
  cursor: pointer; font-family: 'Patrick Hand', cursive; font-size: 14px; transition: all 0.2s;
}
.action-btn:hover { background: #eee; }
.action-btn.emoji-active { background: #FFF9C4; border: 2px solid #F9E547; }

.pin-btn {
  margin-left: auto; padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: white; border: none; border-radius: 10px;
  font-family: 'Nunito', 'Caveat', cursive; font-size: 18px; font-weight: 800;
  cursor: pointer; box-shadow: 0 2px 10px var(--accent-shadow); transition: all 0.2s;
}
.pin-btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }
.pin-btn:not(:disabled) { animation: btn-glow 2.2s ease-in-out infinite; }
.pin-btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-shadow), 0 0 0 4px var(--accent-sm); animation: none; }

.emoji-picker {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; padding: 10px;
  background: #FFFDE7; border-radius: 10px; border: 1px solid #F9E547;
}
.emoji-btn { width: 36px; height: 36px; background: none; border: none; font-size: 22px; cursor: pointer; border-radius: 6px; }
.emoji-btn:hover { background: rgba(0,0,0,0.05); }

/* Sticky Note */
.sticky-note {
  border-radius: 4px; padding: 28px 18px 18px; width: 240px; min-height: 140px;
  position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: default;
}
.sticky-note:hover { transform: rotate(0deg) scale(1.06) translateY(-6px) !important; z-index: 50 !important; box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 0 0 2px rgba(238,77,45,0.12) !important; }
.sticky-note .message { font-size: 16px; line-height: 1.55; color: #333; word-break: break-word; white-space: pre-wrap; }
.sticky-note .author { margin-top: 12px; font-family: 'Nunito', sans-serif; font-size: 14px; color: #888; text-align: right; font-style: italic; }
.pin { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 3; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }

.board-area { position: relative; flex: 1 1 500px; min-height: 600px; }
.board-area .note-wrapper { position: absolute; }

/* Note glow — highlights the note just pinned */
@keyframes note-glow { 0%,100%{outline:0px solid transparent} 40%{outline:3px solid var(--accent-dot);outline-offset:3px} }
.note-highlight { animation: note-glow 1.2s ease-out; }

/* Author initials badge */
.author-badge { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; font-size:9px; font-weight:800; color:white; margin-right:5px; vertical-align:middle; flex-shrink:0; }

/* Toast notification */
@keyframes toast-in  { from{opacity:0;transform:translateX(-50%) translateY(10px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
@keyframes toast-out { from{opacity:1} to{opacity:0} }
.toast { position:fixed; bottom:32px; left:50%; transform:translateX(-50%); background:rgba(25,25,25,0.88); color:white; border-radius:24px; padding:11px 22px; font-family:'Nunito',sans-serif; font-size:15px; font-weight:600; z-index:2000; pointer-events:none; white-space:nowrap; animation:toast-in 0.28s ease-out, toast-out 0.28s ease-in 2.7s forwards; }

/* Note edit/delete action buttons */
/* Anchored to the top-right corner in both themes so the floating edit/delete
   controls never overlap the comment button that lives at the bottom of the
   reactions row (which would otherwise paint on top and steal the clicks). */
.note-actions {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.sticky-note:hover .note-actions { opacity: 1; pointer-events: auto; }
.note-action-btn {
  width: 26px; height: 26px; border-radius: 50%; border: none; padding: 0;
  cursor: pointer; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.12); transition: background 0.2s;
}
.note-action-btn:hover { background: rgba(0,0,0,0.26); }
.note-action-btn.delete-btn:hover { background: rgba(229,57,53,0.85); }

/* Edit modal */
.edit-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.edit-panel {
  background: white; border-radius: 14px; padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2); max-width: 420px; width: 100%;
  border-top: 4px solid var(--accent);
}
.edit-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.edit-header span { font-family: 'Caveat', cursive; font-size: 22px; font-weight: 700; color: var(--accent); }
.edit-header button { background: none; border: none; font-size: 20px; cursor: pointer; color: #888; }
.edit-header button:hover { color: #333; }
.edit-panel textarea {
  width: 100%; padding: 10px 14px; border: 2px solid #e0e0e0; border-radius: 8px;
  font-family: 'Patrick Hand', cursive; font-size: 16px; outline: none; resize: vertical;
  transition: border-color 0.2s; min-height: 120px;
}
.edit-panel textarea:focus { border-color: var(--accent); }
.edit-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.cancel-edit-btn {
  padding: 8px 18px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 8px;
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.cancel-edit-btn:hover { background: #eee; }
.save-edit-btn {
  padding: 9px 20px; background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: white; border: none; border-radius: 8px;
  font-family: 'Nunito', cursive; font-size: 17px; font-weight: 800; cursor: pointer;
  transition: opacity 0.2s;
}
.save-edit-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.save-edit-btn:not(:disabled):hover { opacity: 0.88; }

/* Confetti */
.confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.confetti-piece { position: absolute; top: -20px; }

/* Footer */
.footer { text-align: center; padding: 16px 0 32px; position: relative; z-index: 5; }
.footer-mascot {
  display: block; margin: 0 auto 10px;
  width: var(--mascot-size);
  animation: sway 4s ease-in-out infinite;
  animation-delay: 0.3s;
  filter: drop-shadow(0 5px 14px var(--mascot-shadow));
}
.footer p { font-family: 'Shadows Into Light', cursive; color: var(--footer-color); opacity: 0.65; font-size: 15px; }
/* Subtle credit / call-to-action linking back to the source repo. Kept quiet:
   small, low-opacity, no underline until hover. */
.footer-credit { margin-top: 6px; font-size: 12px; opacity: 0.4; }
.footer-credit a {
  font-family: 'Nunito', sans-serif; color: inherit;
  text-decoration: none; border-bottom: 1px dotted currentColor;
  transition: opacity 0.2s;
}
.footer-credit:hover { opacity: 0.7; }

/* Mascot celebration pop-up */
.mascot-celebrate {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: 9998; width: var(--mascot-size);
  animation: mascot-pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  filter: drop-shadow(0 8px 28px var(--accent-shadow));
  pointer-events: none;
}
.mascot-celebrate img { width: 100%; display: block; }
.mascot-celebrate.fade-out {
  animation: mascot-fade-out 0.5s ease-in forwards;
}

/* Reactions row */
.reactions-row {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px;
  align-items: center; position: relative;
}
.reaction-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(0,0,0,0.07); border: none; border-radius: 12px;
  padding: 2px 8px; font-size: 14px; cursor: pointer; transition: background 0.15s;
}
.reaction-chip:hover { background: rgba(0,0,0,0.15); }
.reaction-chip .count {
  font-size: 11px; font-family: 'Nunito', sans-serif;
  font-weight: 700; color: #555;
}
.react-add-btn {
  font-size: 14px; font-weight: 700; background: none;
  border: 1.5px dashed #ccc; border-radius: 12px;
  padding: 1px 8px; cursor: pointer; color: #aaa; line-height: 1.6;
  transition: border-color 0.15s, color 0.15s;
}
.react-add-btn:hover { border-color: #999; color: #666; }
.reply-btn {
  font-size: 12px; background: none; border: none;
  cursor: pointer; color: #aaa; margin-left: auto;
  font-family: 'Nunito', sans-serif; font-weight: 600;
  padding: 2px 4px; border-radius: 8px; transition: color 0.15s, background 0.15s;
}
.reply-btn:hover { color: #555; background: rgba(0,0,0,0.07); }

/* Reaction picker popover */
.reaction-picker-popover {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 200;
  background: white; border-radius: 12px; padding: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18); display: flex; flex-wrap: wrap;
  gap: 2px; width: 214px;
}
.reaction-picker-popover .emoji-btn { width: 30px; height: 30px; font-size: 17px; }

/* Reply overlay */
.reply-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.reply-panel {
  background: white; border-radius: 14px; padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2); max-width: 440px; width: 100%;
  border-top: 4px solid var(--accent); max-height: 85vh;
  display: flex; flex-direction: column; gap: 12px;
}
.reply-header {
  display: flex; justify-content: space-between; align-items: center;
}
.reply-header span {
  font-family: 'Caveat', cursive; font-size: 20px; font-weight: 700; color: var(--accent);
}
.reply-header em { font-style: normal; }
.reply-header button { background: none; border: none; font-size: 20px; cursor: pointer; color: #888; }
.reply-header button:hover { color: #333; }

.reply-list {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  max-height: 280px; min-height: 48px;
}
.no-replies {
  color: #aaa; font-family: 'Nunito', sans-serif; font-size: 14px;
  text-align: center; padding: 16px 0;
}
.reply-item {
  background: #f9f9f9; border-radius: 8px; padding: 8px 10px;
  position: relative;
}
.reply-author {
  font-size: 12px; font-weight: 700; color: var(--accent);
  font-family: 'Nunito', sans-serif; margin-bottom: 3px;
}
.reply-text {
  font-size: 14px; color: #333; font-family: 'Patrick Hand', cursive;
  word-break: break-word; white-space: pre-wrap;
}
.delete-reply-btn {
  position: absolute; top: 6px; right: 6px;
}

.reply-form { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #f0f0f0; padding-top: 10px; }
.reply-form input[type="text"],
.reply-form textarea {
  width: 100%; padding: 9px 12px; border: 2px solid #e0e0e0; border-radius: 8px;
  font-family: 'Patrick Hand', cursive; font-size: 15px; outline: none;
  transition: border-color 0.2s; resize: vertical;
}
.reply-form input:focus, .reply-form textarea:focus { border-color: var(--accent); }
.reply-form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.save-reply-btn {
  padding: 9px 20px; background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: white; border: none; border-radius: 8px;
  font-family: 'Nunito', cursive; font-size: 16px; font-weight: 800; cursor: pointer;
  transition: opacity 0.2s;
}
.save-reply-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.save-reply-btn:not(:disabled):hover { opacity: 0.88; }

.hidden { display: none !important; }

/* Loading */
.loading-overlay {
  position: fixed; inset: 0; background: linear-gradient(145deg, var(--accent), var(--accent-alt));
  display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10000;
  transition: opacity 0.5s; gap: 12px;
}
.loading-overlay.fade-out { opacity: 0; pointer-events: none; }
.loading-mascot { width: var(--mascot-size); animation: mascot-float 1.8s ease-in-out infinite; }
.spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
.loading-text { font-family: 'Nunito', sans-serif; font-weight: 700; color: white; font-size: 20px; opacity: 0.9; }

/* ─── Header wave (beach theme only) ─── */
.header-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  overflow: hidden; line-height: 0; pointer-events: none;
  display: none;
}
body.beach-theme .header-wave { display: block; }
body.beach-theme .header { padding-bottom: 52px; }

/* ─── Beach postcard notes ─── */
.postcard {
  background: white; border-radius: 10px;
  box-shadow: 3px 4px 14px rgba(0,0,0,0.11), 0 1px 3px rgba(0,0,0,0.07);
  position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: default;
}
.postcard:hover {
  transform: rotate(0deg) scale(1.06) translateY(-6px) !important;
  z-index: 50 !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 0 0 2px var(--accent-border) !important;
}
.pc-header {
  height: 40px; display: flex; align-items: center; justify-content: center;
  /* Round the top corners here since .postcard no longer clips with overflow:hidden
     (the reactions row's emoji picker pops above the row and must not be clipped). */
  border-radius: 10px 10px 0 0;
}
.pc-emoji { font-size: 22px; line-height: 1; }
.pc-body { padding: 12px 14px 10px; }
.pc-msg { font-size: 16px; line-height: 1.55; color: #333; word-break: break-word; white-space: pre-wrap; }
.pc-divider { border: none; border-top: 1.5px dashed #ccc; margin: 8px 0 6px; }
.pc-author {
  font-family: 'Nunito', sans-serif; font-size: 14px; color: #888;
  text-align: right; font-style: italic;
  display: flex; align-items: center; justify-content: flex-end; gap: 5px;
}

/* ─── No fixed-left mascot in beach mode — avoids repeating a prawn pose ─── */
body.beach-theme .mascot-fixed-left { display: none; }

/* Postcard edit/delete hover — mirrors sticky-note rule. Positioning is shared
   via the base .note-actions rule (top-right corner). */
.postcard:hover .note-actions { opacity: 1; pointer-events: auto; }

/* ─── Theme toggle icons in sync pill ─── */
.theme-icon {
  font-size: 16px; cursor: pointer; border-radius: 50%;
  padding: 2px 4px; line-height: 1; user-select: none;
  transition: outline 0.15s, background 0.15s, opacity 0.15s;
}
.theme-icon.active-orange { background: #FFF3E0; outline: 2px solid #EE4D2D; outline-offset: 1px; }
.theme-icon.active-beach  { background: #E0F7FA; outline: 2px solid #26C6DA; outline-offset: 1px; }
.theme-icon.inactive      { opacity: 0.42; }
.theme-divider { width: 1px; height: 14px; background: #ddd; margin: 0 2px; }

@media (max-width: 768px) {
  .main { flex-direction: column; align-items: center; padding-top: 50px; }
  .compose { position: static; width: 100%; }
  .compose-inner { max-width: 100%; }
  .board-area { width: 100%; }
  .sticky-note { width: 180px !important; min-height: 120px; }
  /* One smaller mascot size on mobile — keeps them all identical */
  :root { --mascot-size: 94px; }
  body.beach-theme { --mascot-size: 84px; }
  .header-mascot       { bottom: -28px; }
  .header-mascot-right { right: 4px; }
  /* Hide side mascots on mobile — they'd overlap content */
  .mascot-fixed-left, .mascot-fixed-right { display: none; }
  /* Nudge compose buddy so it doesn't clip off narrow screens */
  .compose-mascot { top: -46px; right: -12px; }
}
