:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f4f4;
  background: #111111;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #111111;
}

.idea-page {
  width: min(100% - 40px, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 40px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-header h1 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a8a8a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: color 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.idea-canvas {
  position: relative;
  min-height: calc(100vh - 118px);
  overflow: hidden;
  border: 1px solid #2d2d2d;
  border-radius: 28px;
  background-color: #151515;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.idea-canvas::after {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.055);
  border-radius: 18px;
  content: "";
  pointer-events: none;
}

.note {
  position: absolute;
  z-index: 1;
  margin: 0;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.34);
}

.note-openrouter {
  top: 15%;
  left: 8%;
  color: #f1eee5;
  font-size: clamp(48px, 8.2vw, 104px);
  transform: rotate(-6deg);
}

.note-token {
  top: 44%;
  right: 5%;
  color: #9dacff;
  font-size: clamp(39px, 7vw, 88px);
  text-decoration: underline wavy rgba(157, 172, 255, 0.58) 3px;
  text-underline-offset: 12px;
  transform: rotate(4deg);
}

.note-obsidian {
  bottom: 13%;
  left: 28%;
  color: #dba6ff;
  font-size: clamp(54px, 9.5vw, 116px);
  transform: rotate(-3deg);
}

@media (max-width: 700px) {
  .idea-page {
    width: min(100% - 28px, 1120px);
    padding-top: 24px;
  }

  .page-header { margin-bottom: 16px; }

  .idea-canvas {
    min-height: calc(100vh - 96px);
    border-radius: 22px;
    background-size: 24px 24px;
  }

  .note-openrouter {
    top: 14%;
    left: 5%;
    font-size: clamp(42px, 15vw, 72px);
  }

  .note-token {
    top: 43%;
    right: 3%;
    font-size: clamp(28px, 9vw, 46px);
    text-underline-offset: 8px;
  }

  .note-obsidian {
    bottom: 16%;
    left: 18%;
    font-size: clamp(48px, 17vw, 78px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-link { transition: none; }
}
