* {
  box-sizing: border-box;
}

:root {
  --totoro: #77736d;
  --totoro-light: #aaa69c;
  --totoro-pale: #dedbd6;
  --totoro-dark: #3f4844;
  --pink: #d9829a;
  --pink-light: #efb1c0;
  --pink-pale: #f9dce4;
  --pink-dark: #827575;
  --sage: #9cad68;
  --sage-light: #c3ce87;
  --sage-pale: #e4e9c9;
  --olive: #7f8e52;
  --forest: #425f4e;
  --forest-dark: #31483e;
  --cream: #f7efd8;
  --vanilla: #fffaf0;
  --yellow: #e5c56d;
  --aqua: #dbfbfb;
  --aqua-medium: #bce9e7;
  --aqua-dark: #78bebb;
  --ink: #35413c;
  --border-radius: 22px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial,
    Helvetica,
    sans-serif;
  color: var(--ink);
  background: #edf8f8;
}

.wrapper-div {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid #aaa69c;
  max-width: 1500px;
  display: flex;
  flex-direction: column;
  margin: 50px auto;
  width: 95%;
}





.wrapper-div {
background: rgba(255, 253, 248, .34);
    border: 1px solid var(--soft-border);
    border-radius: var(--border-radius);
    box-shadow: 0 24px 70px rgba(38, 53, 47, .06);
    background-image: url(images/background.png);
    background-size: 328px;
    background-repeat: no-repeat;
    background-position: top center;
}

header {
  height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #b5c3bb;
  box-shadow: 0 3px 0 rgba(49, 72, 62, .08);
}

.logo {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: -1px;
  color: var(--forest-dark);
}

.logo span {
  color: var(--pink-dark);
}

.playground-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--forest);
}

.app {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 330px
    1fr;
  padding: 22px;
}

.quietoode-intro {
  display: flex;
  justify-content: center;
  align-items: center;
}

.panel {
  position: relative;
  overflow: hidden;
}

.sidebar {
  padding: 22px 16px;
}

.sidebar h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 8px 24px;
  color: var(--forest-dark);
}

.sidebar h2 span {
  color: var(--pink-dark);
}

.exercise {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 13px 12px;
  margin-bottom: 7px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform .2s ease;
  gap: 20px;
  align-items: center;
  display: flex;
}

.exercise:hover {
  transform: translateX(5px);
  background: rgba(224, 222, 216, 0.24);
}

.exercise.active {
  transform: translateX(5px);
  border: 1px solid #2423202e;
  background: rgba(224, 222, 216, 0.24);
  display: flex;
  gap: 20px;
}

.exercise.active::after {
  content: "✿";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink-dark);
  font-size: 16px;
}

.exercise-number {
  color: #6e6e6e;
  font-size: 12px;
  letter-spacing: .4px;
}

.exercise-title {
  font-size: 16px;
  line-height: 1.25;
  text-transform: capitalize;
  display: block;
}

.exercise-category {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--olive);
  opacity: .8;
  background: rgb(169 163 163 / 20%);
  padding: 3px 15px;
  width: fit-content;
  border-radius: var(--border-radius);
}

.little-friend {
  margin-top: 30px;
  text-align: center;
  font-size: 28px;
  color: var(--totoro);
}

.little-friend-caption {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  color: var(--forest);
  opacity: .65;
}

.code-panel {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  padding: 20px;
  background: #fcfcfc;
  max-width: 900px;
  width: 100%;
}

.workspace {
  display: flex;
  justify-content: center;
}

.panel-header {
  min-height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #655e60;
}

.filename {
  font-family: "SFMono-Regular",
    Consolas,
    monospace;
  color: var(--forest-dark);
}

.code-wrapper {
  flex: 1;
  min-height: 100vh;
  padding: 30px;
  display: flex;
  overflow: auto;
}

pre {
  margin: 0;
}

code {
  color: #404a4d;
  font-size: 12px;
  line-height: 1.85;
  font-family: SFMono-Regular, "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

.code-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.code-wrapper::-webkit-scrollbar-track {
  background: var(--totoro-dark);
}

.code-wrapper::-webkit-scrollbar-thumb {
  background: var(--sage);
  border: 2px solid var(--totoro-dark);
 border-radius: var(--border-radius);
}

.code-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--pink);
}

.run-button {
  padding: 10px 15px;
  border: 0;
  background: #ff98b2;
  color: #fff;
  letter-spacing: 2px;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  font-size: 10px;
  text-transform: uppercase;
}

.run-button:hover {
  background: #f2b5c5;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(110, 109, 110, 0.24);
  color: #fcfbfb;
}

.run-button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0
    var(--forest-dark);
}

.output-panel {
  padding: 0;
  background: rgba(255, 250, 240, .97);
}

.output-content {
  padding: 25px;
}

.output-content small {
  display: block;
  margin-bottom: 14px;
  color: var(--totoro);
  opacity: .8;
}

#output {
  font-family: "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-output {
  font-size: 13px;
  color: var(--totoro);
  opacity: .5;
}

.error {
  color: var(--pink-dark);
  font-weight: bold;
}

::selection {
  background: var(--pink-light);
  color: var(--forest-dark);
}

button:focus-visible {
  outline: 3px solid var(--aqua-dark);
  outline-offset: 3px;
}

@media (max-width: 900px) {
.app {
  grid-template-columns: 180px
      1fr;
}

.output-panel {
  grid-column: 1 / -1;
}
}

@media (max-width: 650px) {
header {
  padding: 0 18px;
}

.wrapper-div {
  border-radius: var(--border-radius);
  margin: 10px auto;
  width: 95%;
}

.playground-label {
  font-size: 10px;
}

.app {
  grid-template-columns: 1fr;
  padding: 14px;
}

.output-panel {
  grid-column: auto;
}

.code-wrapper {
  min-height: 400px;
}
}

.flower-sticker {
  z-index: 10;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
}

.daisy-one {
  width: 300px;
  right: 35px;
  bottom: -25px;
  transform: rotate(-18deg);
}

@media (max-width: 650px) {
.flower-sticker {
  display: none;
}
}

.mobile-exercise-label,
.mobile-exercise-select {
  display: none;
}

.header-run-button {
  text-decoration: none;
}

@media (max-width: 650px) {
#exerciseList {
  display: none;
}

.mobile-exercise-label {
  display: block;
  margin: 0 8px 7px;
  font-size: 10px;
  color: var(--olive);
}

.mobile-exercise-select {
  display: block;
  width: 100%;
  padding: 12px 38px 12px 12px;
  border: 1px solid var(--sage);
  border-radius: var(--border-radius);
  color: var(--forest-dark);
  font: inherit;
  font-weight: bold;
}

.little-friend {
  display: none;
}

.sidebar {
  padding-bottom: 16px;
}

html {
  scroll-behavior: smooth;
}
}

.output-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.output-toggle {
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid rgba(49, 72, 62, .35);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, .55);
  color: var(--forest-dark);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.output-toggle:hover {
  background: rgba(255, 255, 255, .85);
}

.floating-output.minimized {
  min-height: 0;
}

.floating-output.minimized .output-content {
  display: none;
}

@media (max-width: 650px) {
.output-actions {
  margin-left: auto;
}
}

:root {
  --page: #f3f5f1;
  --card: #fffdf8;
  --editor: #faf8f5;
  --editor-accent: #f4d9de;
  --selected: #dde4c8;
  --primary-text: #252b29a5;
  --secondary-text: #6f786f;
  --soft-border: #c8cec4;
  --raspberry: #817878;
  --botanical: #72886a;
  --warm-gold: #d5a33d;
}

body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--primary-text);
  background: var(--page);
}



header {
  background: rgba(255, 253, 248, .9);
  border-bottom: 1px solid var(--soft-border);
  box-shadow: none;
}

.logo,
.sidebar h2,
.filename {
  color: #828282a5;
}

.playground-label {
  color: var(--secondary-text);
  font-weight: 650;
  letter-spacing: 2.4px;
}

.panel::before {
  background: #23d71d;
  width: 9px;
  height: 9px;
  position: absolute;
  top: 44px;
  left: 35px;
}

.sidebar {
  padding: 24px 16px;
}

.sidebar h2 {
  font-size: 19px;
  letter-spacing: -.35px;
}

.exercise {
  padding: 14px 13px;
  margin-bottom: 5px;
  border-radius: var(--border-radius);
}

.exercise.active::after {
  content: "›";
  color: var(--primary-text);
  font-size: 22px;
  font-weight: 400;
}

.exercise-category {
  color: var(--secondary-text);
  opacity: 1;
}

.filename {
  letter-spacing: -.2px;
}

.line-numbers {
  display: flex;
  flex-direction: column;
  font-family: SFMono-Regular, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  width: 10px;
  line-height: 1.85;
  align-items: center;
  justify-content: flex-start;
  padding-right: 40px;
  border-right: 1px solid rgb(233 233 233);
  color: rgb(210 210 210);
  margin-right: 20px;
  font-size: 12px;
}

.run-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(102, 96, 98, 0.18);
}

.output-toggle {
  border-color: rgba(38, 53, 47, .22);
  background: rgba(255, 253, 248, .72);
  color: var(--primary-text);
}

#output {
  color: var(--primary-text);
}

.error {
  color: var(--raspberry);
}

::selection {
  background: var(--editor-accent);
  color: var(--primary-text);
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(217, 86, 120, .35);
  outline-offset: 3px;
}

.mobile-exercise-select {
  border-color: var(--soft-border);
  color: var(--primary-text);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}



.quietoode-intro {
    min-height: 300px;
    display: grid;
    align-items: center;
    max-width: 660px;
    margin: 130px auto 0px;
}

.hero-copy {
  max-width: 700px;
}

.hero-copy h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: 80px;
  margin: 0px;
  line-height: 39px;
  color: #000000;
  font-weight: 400;
}

.hero-copy h1 span {
  color: #4c4c4c;
  white-space: nowrap;

}

.hero-copy p {
    color: #5c5c5c;
    text-align: center;
    font-size: 24px;
    font-weight: 200;
    margin-top: 24px;
}

.hero-copy p a {
  margin: 10px 0px;
  color: #000;
  font-size: clamp(24px, 1.45vw, 21px);
  line-height: 20px;
  text-decoration: none;
  border-bottom: 1px solid rgb(255 152 178);
  padding-bottom: 6px;
}

.hero-copy p span {
  color: var(--secondary-text);
}

@media (max-width: 900px) {
.workspace {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-direction: column;
}

.quietoode-intro {
  min-height: 390px;
  padding: 42px 36px;
  gap: 24px;
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 62px);
}
}

@media (max-width: 650px) {
.quietoode-intro {
  min-height: auto;
  padding: 42px 24px 30px;
  grid-template-columns: 1fr;
  text-align: center;
}

.hero-copy {
  max-width: 100%;
}

.hero-copy h1 {
  font-size: clamp(40px, 12vw, 54px);
  letter-spacing: -2px;
}

.hero-copy p {
  margin-top: 22px;
  font-size: 15px;
}
}

.site-footer {
  width: 95%;
  max-width: 1500px;
  margin: -12px auto 50px;
  color: var(--primary-text);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1.25fr .72fr;
  background: rgba(255, 253, 248, .72);
  border: 1px solid var(--soft-border);
  border-radius: var(--border-radius);
  box-shadow: 0 18px 50px rgba(38, 53, 47, .05);
  overflow: hidden;
}

.footer-inner > * {
  padding: 34px 36px;
}

.footer-inner > * + * {
  border-left: 1px solid rgba(200, 206, 196, .85);
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 5px;
}

.footer-logo span {
  color: var(--pink-dark);
}

.footer-tagline {
  color: var(--secondary-text);
  margin: 0 0 25px;
}

.footer-brand p:last-child {
  line-height: 1.5;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
}

.footer-links a {
  color: var(--primary-text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-decoration-color: #f4ba50;
  text-underline-offset: 5px;
}

.footer-privacy p {
  margin: 0 0 14px;
  line-height: 1.45;
}

.cookie-preferences {
  width: fit-content;
  padding: 6px 10px;
  color: #6a6d62;
  cursor: pointer;
  border-radius: var(--border-radius);
  border: 0px;
}

.footer-closing {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-closing p {
  line-height: 1.45;
  margin: 8px 0;
}

.footer-leaf {
  font-size: 22px;
}

.footer-rule {
  display: block;
  width: 34px;
  border-top: 2px solid #f4ba50;
  margin: 13px 0 7px;
}

.footer-copyright {
  color: var(--secondary-text);
}

@media (max-width: 900px) {
.footer-inner {
  grid-template-columns: 1fr 1fr;
}

.footer-inner > * {
  border-left: 0;
  border-top: 1px solid rgba(200, 206, 196, .85);
}

.footer-inner > :nth-child(-n/**/+2) {
  border-top: 0;
}

.footer-inner > :nth-child(even) {
  border-left: 1px solid rgba(200, 206, 196, .85);
}
}

@media (max-width: 650px) {
.site-footer {
  width: 95%;
  margin: 22px auto;
}

.footer-inner {
  grid-template-columns: 1fr;
}

.footer-inner > * {
  padding: 26px 24px;
  border-left: 0 !important;
  border-top: 1px solid rgba(200, 206, 196, .85) !important;
}

.footer-inner > :first-child {
  border-top: 0 !important;
}
}

.category-switcher {
  width: min(450px, calc(100% - 48px));
  margin: -12px auto 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 5px;
  background: rgba(225, 226, 222, .52);
  border: 1px solid rgba(200, 206, 196, .38);
  border-radius: var(--border-radius);
}

.category-tab {
  position: relative;
  min-height: 39px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  background: transparent;
  color: #62645f;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.category-tab:hover:not(.active) {
  color: var(--primary-text);
  background: rgba(255, 255, 255, .32);
}

.category-tab.active {
  background: #fff;
  color: #181a18;
  border-color: rgba(38, 53, 47, .12);
  box-shadow: 0 3px 10px rgba(38, 53, 47, .07), 0 1px 2px rgba(38, 53, 47, .04);
}

.category-tab:active {
  transform: scale(.98);
}

#sidebarCategoryTitle {
  color: var(--primary-text);
}

.sidebar h2 small {
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-text);
}

@media (max-width: 650px) {
.category-switcher {
  width: calc(100% - 28px);
  margin: 4px auto 18px;
  padding: 4px;
}

.category-tab {
  min-height: 44px;
  padding: 0 10px;
  font-size: 13px;
}
}

.token.keyword {
  color: #ed6688;
}

.token.function {
  color: #5368b5;
}

.token.string {
  color: #3177bd;
}

.token.comment {
  color: #aaa8ad;
  font-style: italic;
}

.token.number {
  color: #c48251;
}

.token.operator {
  color: #777;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #aaa8ad;
  font-style: italic;
}

.token.keyword {
  color: #d9829a;
}

.token.function {
  color: #5368b5;
}

.token.string,
.token.template-string {
  color: #3177bd;
}

.token.number,
.token.boolean {
  color: #b8794d;
}

.token.operator {
  color: #77736d;
}

.token.punctuation {
  color: #68716d;
}

.token.property {
  color: #72886a;
}

.token.class-name,
.token.constant {
  color: #8a6aa3;
}

.token.parameter {
  color: #59645f;
}

/* Floating output */
.floating-output {
  position: fixed;
  right: 35px;
  top: 183px;
  width: 340px;
  min-height: 150px;
  z-index: 1000;
  overflow: hidden;
  color: #fff;
  background: rgb(64 74 77);
  backdrop-filter: blur(16px)
        saturate(140%);
  -webkit-backdrop-filter: blur(16px)
        saturate(140%);
  border: 1px solid
        rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  box-shadow: 0 15px 40px
        rgba(63, 72, 68, 0.16),
        inset 0 1px 0
        rgba(255, 255, 255, 0.7);
}

.floating-output .output-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: grab;
  user-select: none;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  background: rgba(64, 74, 77);
}

.floating-output .output-title:active {
  cursor: grabbing;
}

.drag-hint {
  font-size: 9px;
  letter-spacing: 1px;
  opacity: 0.55;
  font-weight: normal;
}

.floating-output .output-content {
  padding: 18px 20px;
  background: #f8f8f3;
  min-height: 100px;
}

.floating-output .output-content small {
  display: block;
  margin-bottom: 10px;
  opacity: 0.55;
}

#output {
  white-space: pre-wrap;
  font-family: "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

.floating-output.dragging {
  opacity: 0.9;
  box-shadow: 0 22px 55px
        rgba(63, 72, 68, 0.25);
  transform: scale(1.015);
}

@media (max-width: 650px) {
.floating-output {
  position: static;
  width: 100%;
  min-height: 150px;
  margin-top: 14px;
  border-radius: var(--border-radius);
  transform: none !important;
}

.drag-hint {
  display: none;
}
}

/* Hero */
.hero-copy p {
  color: #5c5c5c;
}
