body{
  margin:0;
  font-family:sans-serif;
  background:#f0f0f0;
}

.header{
  display:flex;
  padding:10px;
  background:white;
  position:sticky;
  top:0;
}

input{
  flex:1;
  padding:10px;
  font-size:16px;
}

button{
  padding:10px 15px;
  font-size:20px;
}

#notes{
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  overflow-y: auto;
  background-color: #060b09; /* тёмная, но не полностью чёрная доска */
  background-image:
    linear-gradient(
      rgba(255,255,255,0.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,0.06) 1px,
      transparent 1px
    ),
    url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='320'%3E%3Cstyle%3Etext%7Bfill:rgb(220,220,220);font-family:monospace;font-size:22px;%7D%3C/style%3E%3Ctext x='20' y='60'%3EE%3Dmc%5E2%3C/text%3E%3Ctext x='210' y='140'%3Ea%5E2%2Bb%5E2%3Dc%5E2%3C/text%3E%3Ctext x='40' y='230'%3Eint%20f(x)dx%3C/text%3E%3Ctext x='240' y='80'%3Esin(x)%2Bcos(x)%3C/text%3E%3Ctext x='80' y='290'%3ES%3Dpi*r%5E2%3C/text%3E%3C/svg%3E\");
  background-size:
    40px 40px,
    40px 40px,
    420px 320px;
  background-blend-mode: soft-light, soft-light, normal;
  box-shadow: inset 0 0 35px rgba(0,0,0,0.7);
}

#notes::after{
  content: "в создании принимали участие: chatgtp и cursor ai)";
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
  white-space: nowrap;
}

#notes::before{
  content: "t.me/StickMessageBot";
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  pointer-events: none;
  white-space: nowrap;
}

/* Светлая деревянная рама вокруг доски */
body::before,
body::after{
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 22px;
  z-index: 20;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      #fdf4e3 0%,
      #f2d8a7 25%,
      #e6c18a 50%,
      #f7e1b5 75%,
      #dab376 100%
    );
  box-shadow:
    0 2px 6px rgba(0,0,0,0.45),
    inset 0 0 4px rgba(255,255,255,0.8);
}

body::before{
  top: 0;
}

body::after{
  bottom: 0;
}

/* Вертикальные стойки из светлого дерева */
html::before,
html::after{
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 22px;
  z-index: 21;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #fdf4e3 0%,
      #f2d8a7 25%,
      #e6c18a 50%,
      #f7e1b5 75%,
      #dab376 100%
    );
  box-shadow:
    2px 0 6px rgba(0,0,0,0.45),
    inset 0 0 4px rgba(255,255,255,0.8);
}

html::before{
  left: 0;
}

html::after{
  right: 0;
}

.note{
  position: absolute;
  background:#ffeb3b;
  min-width:100px;
  min-height:100px;
  padding:12px;
  font-size:16px;
  border-radius:6px;
  box-shadow:0 6px 10px rgba(0,0,0,0.2);
  word-wrap:break-word;
  cursor: grab;
  transition: transform 0.2s, top 0.2s;
}

.note-like{
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  pointer-events: none;
}

.note-author{
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 11px;
  color: rgba(0,0,0,0.35);
  pointer-events: none;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-text{
  margin-top: 14px;
}

.author-bg{
  position: absolute;
  z-index: 1;
  font-size: 14px;
  color: rgba(255,255,255,0.08);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.watermark{
  position: absolute;
  z-index: 0;
  font-size: 16px;
  color: rgba(255,255,255,0.16);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

#visitors-indicator{
  position: fixed;
  left: 12px;
  bottom: 8px;
  height: 40px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  z-index: 25;
}

.visitor-person{
  position: relative;
  width: 18px;
  height: 26px;
  background: #ffd54f;
  border-radius: 50% 50% 35% 35%;
  box-shadow: 0 2px 3px rgba(0,0,0,0.45);
}

.visitor-person::before{
  content: "";
  position: absolute;
  top: -8px;
  left: 3px;
  right: 3px;
  height: 10px;
  border-radius: 50% 50% 0 0;
  background: #ffb300;
}

.visitor-person::after{
  content: "";
  position: absolute;
  bottom: -5px;
  left: 1px;
  right: 1px;
  height: 6px;
  border-radius: 40% 40% 60% 60%;
  background: #90caf9;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.note::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:0;
  height:0;
  border-style:solid;
  border-width:0 30px 30px 0;
  border-color:transparent #f5d000 transparent transparent;
  box-shadow:-2px 2px 3px rgba(0,0,0,0.2);
}