* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(255, 90, 128, 0.22), transparent 19%),
    radial-gradient(circle at top right, rgba(50, 96, 255, 0.16), transparent 21%),
    radial-gradient(circle at 8% 86%, rgba(18, 190, 157, 0.18), transparent 24%),
    linear-gradient(180deg, #fffaf1 0%, #fff5fb 47%, #f4fffb 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto, auto;
  color: #111111;
  -webkit-user-select: none;
  user-select: none;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: 5.5rem 1.2rem 1.2rem;
  border: 2px dashed rgba(17, 17, 17, 0.09);
  border-radius: 28px;
}

body::after {
  width: 140px;
  height: 140px;
  right: -38px;
  bottom: 42px;
  background:
    radial-gradient(circle, rgba(255, 107, 107, 0.95) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(43, 190, 142, 0.95) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(57, 128, 255, 0.95) 0 4px, transparent 5px);
  background-size: 34px 34px;
  transform: rotate(-12deg);
  opacity: 0.55;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
  padding: 0.8rem 1.4rem;
  border-bottom: 2px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 252, 245, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.topbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-name {
  font-size: clamp(1.9rem, 1.7vw + 1.25rem, 2.45rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0;
  color: #111111;
  text-shadow: 3px 3px 0 rgba(255, 185, 76, 0.5);
  animation: bounceIn 0.7s ease both;
}

.brand-tag {
  font-size: 1.02rem;
  line-height: 1;
  color: rgba(17, 17, 17, 0.7);
  animation: fadeSlideUp 0.8s ease both;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-nav a {
  text-decoration: none;
  color: #111111;
  font-size: 1.1rem;
  padding: 0.15rem 0.55rem;
  border-radius: 14px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.topbar-nav a:hover {
  transform: translateY(-1px);
}

.topbar-nav a.active {
  background: linear-gradient(135deg, #ff5050, #ffc233 48%, #19b8a2);
  color: #ffffff;
  box-shadow: 0 6px 0 rgba(17, 17, 17, 0.14);
}

.logo-badge {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: grab;
  touch-action: none;
  will-change: transform;
  z-index: 11;
  filter: drop-shadow(0 8px 12px rgba(17, 17, 17, 0.14));
  transition: filter 180ms ease, scale 180ms ease;
}

.logo-badge:active {
  cursor: grabbing;
}

.logo-badge.is-floating {
  position: fixed;
  inset: auto;
  top: 0;
  left: 0;
  width: 190px;
  height: 62px;
  z-index: 30;
  filter: drop-shadow(0 14px 22px rgba(17, 17, 17, 0.2));
  transition: none;
}

.logo-badge-img {
  width: auto;
  max-width: 184px;
  height: 58px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  animation: wobble 3.6s ease-in-out infinite;
}

.letter-playground {
  cursor: default;
}

.text-letter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.08em;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  transition: scale 140ms ease, color 140ms ease, text-shadow 140ms ease;
}

.text-letter:hover {
  color: #ff5050;
  scale: 1.14;
  text-shadow: 3px 3px 0 rgba(25, 184, 162, 0.38);
}

.text-letter.is-dragging {
  color: #ff5050;
  scale: 1;
  text-shadow: 3px 3px 0 rgba(25, 184, 162, 0.38);
}

.text-letter.is-dragging,
.text-letter.is-free {
  position: fixed;
  margin: 0;
  z-index: 35;
}

.text-letter.is-dragging {
  z-index: 50;
  cursor: grabbing;
}

.letter-hole {
  visibility: hidden;
  pointer-events: none;
}

.logo-dock {
  position: relative;
  flex: 0 0 auto;
  width: 190px;
  height: 62px;
  border: 2px dashed transparent;
  border-radius: 8px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.logo-dock::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
  opacity: 0;
  transition: opacity 180ms ease;
}

.logo-dock.is-empty {
  border-color: rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.32);
}

.logo-dock.is-empty::before {
  opacity: 1;
}

.logo-dock.is-ready {
  border-color: #19b8a2;
  background: rgba(25, 184, 162, 0.12);
  box-shadow: 0 0 0 5px rgba(25, 184, 162, 0.1);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-doodle-canvas {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.whiteboard-unlock {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.9rem;
  border: 2px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.08), 0 18px 42px rgba(17, 17, 17, 0.16);
  animation: floatUp 220ms ease both;
}

.whiteboard-unlock div {
  display: grid;
  gap: 0.1rem;
}

.whiteboard-unlock strong {
  font-size: 1.45rem;
  line-height: 1;
}

.whiteboard-unlock span {
  color: rgba(17, 17, 17, 0.7);
}

.whiteboard-unlock a {
  flex: 0 0 auto;
  color: #111111;
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border: 2px solid rgba(17, 17, 17, 0.12);
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5050, #ffc233 52%, #19b8a2);
  box-shadow: 0 5px 0 rgba(17, 17, 17, 0.12);
}

.page-content {
  position: relative;
  padding: 7.5rem 1.3rem 3rem;
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  overflow: visible;
  z-index: 1;
}

.page-content::before,
.page-content::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: 38px;
  height: 145px;
  border-radius: 18px 18px 12px 12px;
  border: 2px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 14px 25px rgba(17, 17, 17, 0.1);
  opacity: 0.7;
}

.page-content::before {
  right: -10px;
  top: 10rem;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.26), transparent 24%, rgba(0,0,0,0.11)),
    linear-gradient(180deg, #3980ff 0 24%, #fff5bf 24% 52%, #3980ff 52% 100%);
  transform: rotate(63deg);
}

.page-content::after {
  left: -12px;
  bottom: 2rem;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.26), transparent 24%, rgba(0,0,0,0.11)),
    linear-gradient(180deg, #ff8a24 0 24%, #fff5bf 24% 52%, #ff8a24 52% 100%);
  transform: rotate(-42deg);
}

.hero-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,246,234,0.95)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(57, 128, 255, 0.08) 32px);
  border: 2px solid rgba(17, 17, 17, 0.11);
  border-radius: 18px;
  padding: clamp(1.45rem, 3vw, 2.7rem);
  box-shadow: 12px 12px 0 rgba(17, 17, 17, 0.08), 0 24px 70px rgba(122, 55, 116, 0.12);
  transform: rotate(-0.35deg);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 28px;
  background: rgba(255, 219, 96, 0.72);
  border: 1px solid rgba(143, 107, 0, 0.16);
  top: -15px;
  transform: rotate(-8deg);
}

.hero-card::before {
  left: 8%;
}

.hero-card::after {
  right: 10%;
  transform: rotate(9deg);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  color: rgba(17, 17, 17, 0.65);
}

.hero-card h1 {
  font-size: clamp(2.45rem, 4vw + 1rem, 5rem);
  margin: 0 0 0.75rem;
  line-height: 0.92;
  max-width: 13ch;
  text-shadow: 4px 4px 0 rgba(255, 107, 107, 0.18);
  animation: fadeSlideUp 0.9s ease both;
}

.hero-copy {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.78);
  max-width: 43rem;
  animation: fadeSlideUp 1s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button-primary,
.button-secondary {
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-size: 1.12rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #ff5050, #ffc233 52%, #19b8a2);
  color: #111111;
  border: 2px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 8px 0 rgba(17, 17, 17, 0.14);
}

.button-secondary {
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: #111111;
  background: rgba(255, 255, 255, 0.92);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.info-grid article {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,255,251,0.94));
  border: 2px solid rgba(17, 17, 17, 0.09);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 7px 7px 0 rgba(17, 17, 17, 0.06);
  animation: floatUp 0.8s ease both;
}

.hero-card .info-grid article {
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
}

.info-grid article:nth-child(2) {
  animation-delay: 0.1s;
}

.info-grid article:nth-child(3) {
  animation-delay: 0.2s;
}

.info-grid h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.info-grid p {
  margin: 0;
  color: rgba(17, 17, 17, 0.75);
  line-height: 1.5;
}

.sparkle,
.crayon,
.writing-note,
.scribble,
.paper-star,
.tape,
.dot-grid {
  position: absolute;
  pointer-events: none;
}

.interactive-prop {
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.interactive-prop.is-dragging,
.interactive-prop.is-free {
  position: fixed;
  z-index: 34;
}

.interactive-prop.is-dragging {
  z-index: 40;
  cursor: grabbing;
  animation-play-state: paused;
}

.sparkle {
  width: 18px;
  height: 18px;
  background: transparent;
  animation: sparkleFloat 4s ease-in-out infinite;
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ff5050;
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}

.sparkle::after {
  transform: scale(0.55) rotate(45deg);
  background: #ffc233;
}

.sparkle-one {
  top: 5rem;
  left: 3rem;
}

.sparkle-two {
  top: 9rem;
  right: 4rem;
  animation-delay: 1.2s;
}

.sparkle-three {
  bottom: 3rem;
  left: 40%;
  animation-delay: 2.2s;
}

.sparkle-four {
  top: 17rem;
  left: -0.3rem;
  animation-delay: 0.8s;
}

.sparkle-five {
  bottom: 10rem;
  right: 2rem;
  animation-delay: 1.7s;
}

.crayon {
  --wax: #ff5050;
  --wax-dark: #c9262c;
  --paper: #fff5bf;
  width: 38px;
  height: 150px;
  border-radius: 18px 18px 12px 12px;
  transform: rotate(-12deg);
  opacity: 0.95;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.28), transparent 22%, rgba(0,0,0,0.08) 78%, rgba(0,0,0,0.18)),
    linear-gradient(180deg, var(--wax) 0 24%, var(--paper) 24% 52%, var(--wax) 52% 100%);
  border: 2px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 14px 25px rgba(17, 17, 17, 0.14);
}

.crayon::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: -28px;
  height: 32px;
  background:
    linear-gradient(135deg, transparent 0 49%, var(--wax-dark) 50%),
    linear-gradient(225deg, transparent 0 49%, var(--wax) 50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.crayon::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 47px;
  height: 28px;
  border-top: 2px solid rgba(17, 17, 17, 0.16);
  border-bottom: 2px solid rgba(17, 17, 17, 0.16);
  background:
    radial-gradient(circle at 12px 50%, rgba(17, 17, 17, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 27px 50%, rgba(17, 17, 17, 0.1) 0 2px, transparent 3px);
}

.crayon span::before {
  content: "knife";
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  color: rgba(17, 17, 17, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.crayon-red {
  top: 1.5rem;
  right: 2rem;
  --wax: #ff5a5f;
  --wax-dark: #bd2230;
  animation: crayonFloat 5.6s ease-in-out infinite;
}

.crayon-blue {
  bottom: 5rem;
  left: 1.5rem;
  --wax: #3980ff;
  --wax-dark: #1d48ad;
  transform: rotate(14deg);
  animation: crayonFloat 6.2s ease-in-out infinite;
}

.crayon-yellow {
  top: 40%;
  right: 5%;
  --wax: #ffc233;
  --wax-dark: #d18400;
  transform: rotate(-8deg);
  animation: crayonFloat 5s ease-in-out infinite;
}

.crayon-green {
  top: 18rem;
  left: 4rem;
  --wax: #19b88f;
  --wax-dark: #0c8062;
  transform: rotate(27deg);
  animation: crayonFloat 6.8s ease-in-out infinite;
}

.crayon-purple {
  bottom: 1.2rem;
  right: 22%;
  --wax: #8557ff;
  --wax-dark: #4e31b1;
  transform: rotate(72deg);
  animation: crayonFloat 7.2s ease-in-out infinite;
}

.crayon-orange {
  top: 6.2rem;
  left: 52%;
  --wax: #ff8a24;
  --wax-dark: #b7500d;
  transform: rotate(-64deg);
  animation: crayonFloat 5.8s ease-in-out infinite;
}

.scribble {
  width: 178px;
  height: 64px;
  border: 7px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity: 0.34;
}

.scribble::before,
.scribble::after {
  content: "";
  position: absolute;
  inset: 10px -6px -4px 10px;
  border: 6px solid currentColor;
  border-right-color: transparent;
  border-top-color: transparent;
  border-radius: 50%;
}

.scribble::after {
  inset: 23px 10px 5px -12px;
  opacity: 0.65;
}

.scribble-red {
  top: 6.5rem;
  right: -2.5rem;
  color: #ff5050;
  transform: rotate(-14deg);
}

.scribble-blue {
  bottom: 10rem;
  left: -3rem;
  color: #3980ff;
  transform: rotate(17deg);
}

.scribble-green {
  top: 23rem;
  right: 10rem;
  color: #19b88f;
  transform: rotate(8deg) scale(0.78);
}

.scribble-purple {
  bottom: 0.4rem;
  right: -1.5rem;
  color: #8557ff;
  transform: rotate(-24deg) scale(0.7);
}

.paper-star {
  color: #111111;
  font-size: 2.35rem;
  line-height: 1;
  text-shadow: 3px 3px 0 #ffc233;
  animation: noteFloat 5.5s ease-in-out infinite;
}

.star-one {
  top: 12rem;
  left: 13%;
}

.star-two {
  top: 29rem;
  right: 7%;
  color: #ff5050;
  animation-delay: 1.4s;
}

.star-three {
  bottom: 7rem;
  left: 24%;
  color: #3980ff;
  animation-delay: 2s;
}

.tape {
  width: 105px;
  height: 30px;
  background: repeating-linear-gradient(45deg, rgba(255, 219, 96, 0.75) 0 9px, rgba(255, 238, 153, 0.75) 9px 18px);
  border: 1px solid rgba(17, 17, 17, 0.08);
  opacity: 0.86;
}

.tape-one {
  top: 13.7rem;
  right: 28%;
  transform: rotate(12deg);
}

.tape-two {
  bottom: 13rem;
  left: 31%;
  transform: rotate(-9deg);
}

.dot-grid {
  width: 150px;
  height: 105px;
  left: 68%;
  top: 18rem;
  background: radial-gradient(circle, rgba(17, 17, 17, 0.17) 0 2px, transparent 3px);
  background-size: 18px 18px;
  opacity: 0.5;
  transform: rotate(8deg);
}

.writing-note {
  font-size: 1.3rem;
  color: #111111;
  opacity: 0.92;
}

.writing-note-one {
  top: 3.2rem;
  left: 35%;
  transform: rotate(-8deg);
  animation: noteFloat 4.4s ease-in-out infinite;
}

.writing-note-two {
  top: 7rem;
  right: 24%;
  transform: rotate(8deg);
  animation: noteFloat 4.8s ease-in-out infinite;
}

.writing-note-three {
  bottom: 5rem;
  right: 12%;
  transform: rotate(-10deg);
  animation: noteFloat 5.2s ease-in-out infinite;
}

.whiteboard-page {
  overflow: hidden;
}

.whiteboard-locked {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
}

.locked-board {
  width: min(520px, calc(100% - 2rem));
  padding: 1.5rem;
  border: 2px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.94);
  box-shadow: 12px 12px 0 rgba(17, 17, 17, 0.08), 0 22px 60px rgba(17, 17, 17, 0.15);
  text-align: center;
}

.locked-logo {
  width: min(220px, 80%);
  height: auto;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 8px 10px rgba(17, 17, 17, 0.1));
}

.locked-board h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
}

.locked-board p {
  margin: 0 auto 1rem;
  max-width: 23rem;
  color: rgba(17, 17, 17, 0.72);
  font-size: 1.2rem;
  line-height: 1.35;
}

.locked-board a {
  display: inline-flex;
  color: #111111;
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  border: 2px solid rgba(17, 17, 17, 0.12);
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5050, #ffc233 52%, #19b8a2);
  box-shadow: 0 6px 0 rgba(17, 17, 17, 0.12);
}

.whiteboard-page::before {
  inset: 5.8rem 0.9rem 0.9rem;
}

.whiteboard-topbar {
  min-height: 82px;
}

.whiteboard-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1rem;
  height: calc(100vh - 82px);
  padding: 6.4rem 1rem 1rem;
}

.whiteboard-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  padding: 0.9rem;
  border: 2px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  background: rgba(255, 252, 245, 0.92);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.07);
  overflow: auto;
}

.tool-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.whiteboard-toolbar button,
.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.55rem;
  border: 2px solid rgba(17, 17, 17, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  color: #111111;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(17, 17, 17, 0.08);
}

.whiteboard-toolbar button:hover,
.file-button:hover,
.whiteboard-toolbar button.active {
  transform: translateY(-1px);
  background: #fff2bd;
}

.whiteboard-toolbar button.active {
  border-color: rgba(255, 80, 80, 0.45);
  box-shadow: 0 4px 0 rgba(255, 80, 80, 0.2);
}

.control-label {
  display: grid;
  gap: 0.35rem;
  font-size: 1.08rem;
}

.control-label input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 0.2rem;
  border: 2px solid rgba(17, 17, 17, 0.12);
  border-radius: 10px;
  background: #ffffff;
}

.control-label input[type="range"] {
  width: 100%;
  accent-color: #ff5050;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: #19b8a2;
}

.file-button input {
  display: none;
}

.whiteboard-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 2px solid rgba(17, 17, 17, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(57, 128, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(57, 128, 255, 0.08) 1px, transparent 1px),
    #fffdf7;
  background-size: 28px 28px;
  box-shadow: 12px 12px 0 rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.whiteboard-stage.hide-grid {
  background: #fffdf7;
}

#boardCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.whiteboard-stage.move-mode #boardCanvas {
  cursor: move;
}

.whiteboard-stage.pan-mode #boardCanvas {
  cursor: grab;
}

.whiteboard-stage.pan-mode:active #boardCanvas {
  cursor: grabbing;
}

.text-entry {
  position: absolute;
  display: none;
  z-index: 3;
  width: 220px;
  padding: 0.35rem 0.5rem;
  border: 2px solid rgba(17, 17, 17, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  font: inherit;
  font-size: 1.4rem;
  outline: none;
}

.layers-panel {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.35rem;
  border-top: 2px dashed rgba(17, 17, 17, 0.1);
}

.layers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
}

.layers-list {
  display: grid;
  gap: 0.4rem;
}

.layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.35rem;
  align-items: center;
  padding: 0.3rem;
  border: 2px solid rgba(17, 17, 17, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.52);
}

.layer-row.active {
  border-color: rgba(25, 184, 162, 0.44);
  background: rgba(25, 184, 162, 0.1);
}

.layer-row button {
  min-height: 28px;
  padding: 0.25rem 0.4rem;
  font-size: 0.95rem;
  box-shadow: none;
}

.layer-row button:first-child {
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  60% {
    transform: scale(1.03) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wobble {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-1.4deg);
  }
  50% {
    transform: rotate(1.4deg);
  }
  75% {
    transform: rotate(-0.8deg);
  }
}

@keyframes sparkleFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) scale(1.15);
    opacity: 1;
  }
}

@keyframes crayonFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes noteFloat {
  0%, 100% {
    transform: translateY(0px) rotate(-8deg);
  }
  50% {
    transform: translateY(-7px) rotate(4deg);
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-brand {
    width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding-top: 10rem;
  }

  .whiteboard-page .topbar {
    position: static;
  }

  .whiteboard-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 1rem);
    padding: 1rem;
  }

  .whiteboard-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .whiteboard-stage {
    min-height: 62vh;
  }

  .whiteboard-unlock {
    left: 1rem;
    right: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .logo-dock {
    width: 158px;
    height: 54px;
  }

  .logo-badge-img {
    max-width: 152px;
    height: 50px;
  }

  .logo-badge.is-floating {
    width: 158px;
    height: 54px;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .whiteboard-toolbar {
    grid-template-columns: 1fr;
  }

  .tool-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
