@font-face {
  font-family: CNG Lilita;
  src: url("../fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: CNG Chicle;
  src: url("../fonts/Chicle-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: CNG Bangers;
  src: url("../fonts/Bangers-Regular.ttf") format("truetype");
  font-display: swap;
}
.cng {
  --cng-ink: #293143;
  --cng-accent: #6953bc;
  box-sizing: border-box;
  color: var(--cng-ink);
  max-width: 1160px;
  margin: 28px auto 48px;
  font-family: inherit;
}
.cng * {
  box-sizing: border-box;
}
.cng button,
.cng input,
.cng select {
  font: inherit;
}
.cng-heading {
  text-align: center;
  margin: 0 auto 30px;
}
.cng-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--cng-accent);
}
.cng-heading h2,
.cng-heading h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.18;
  letter-spacing: -1px;
  margin: 12px 0;
}
.cng-heading p {
  font-size: 16px;
  color: #626777;
  margin: 0;
}
.cng-workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  border: 1px solid #e4e2ec;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 45px #29214308;
}
.cng-controls {
  padding: 32px 28px;
}
.cng-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 12px;
}
.cng-step {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: #efebfa;
  color: var(--cng-accent);
  border-radius: 50%;
  font-size: 12px;
}
.cng .cng-name {
  width: 100%;
  height: 56px;
  border: 1.5px solid #c8c3d7;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 22px;
  letter-spacing: 1px;
  background: #fff;
  color: #293143;
}
.cng-hint {
  font-size: 11px;
  color: #666b78;
  line-height: 1.6;
  margin: 8px 0 25px;
}
.cng-styles {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}
.cng-styles legend {
  padding: 0;
}
.cng-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.cng .cng-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 94px;
  padding: 10px 4px;
  background: white;
  border: 1.5px solid #e2dfea;
  border-radius: 12px;
  color: #3e4252;
  cursor: pointer;
  font-size: 12px;
}
.cng .cng-style[aria-pressed="true"] {
  border-color: var(--cng-accent);
  background: #f4f0fc;
  box-shadow: 0 0 0 1px var(--cng-accent);
}
.cng-style-sample {
  font: 34px/1 "CNG Lilita";
  color: white;
  -webkit-text-stroke: 1px #293143;
}
.cng-style--cartoon .cng-style-sample {
  font-family: "CNG Chicle";
  transform: rotate(-5deg);
}
.cng-style--anime .cng-style-sample {
  font-family: "CNG Bangers";
  transform: skew(-9deg);
}
.cng-style--cute .cng-style-sample:after {
  content: "♡";
  font-size: 16px;
  -webkit-text-stroke: 0;
  color: #293143;
}
.cng-style--graffiti .cng-style-sample {
  font-family: "CNG Bangers";
  text-shadow: 2px 3px #293143;
}
.cng-style--magic .cng-style-sample:after {
  content: "✧";
  font-size: 18px;
  -webkit-text-stroke: 0;
  color: #293143;
}
.cng-format-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #626777;
  gap: 10px;
  margin-bottom: 18px;
}
.cng .cng-format {
  min-height: 44px;
  border: 1px solid #dedbe7;
  border-radius: 8px;
  background: white;
  color: #293143;
  padding: 8px 10px;
}
.cng-downloads {
  display: grid;
  gap: 10px;
}
.cng .cng-downloads button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--cng-accent);
  border-radius: 10px;
  background: var(--cng-accent);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.cng .cng-downloads button:last-child {
  background: white;
  color: #564299;
}
.cng button:hover:not(:disabled) {
  filter: brightness(0.97);
}
.cng button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.cng :is(button, input, select):focus-visible {
  outline: 3px solid #ab92e8;
  outline-offset: 3px;
}
.cng-privacy {
  font-size: 11px;
  line-height: 1.7;
  color: #656978;
  margin: 16px 0 0;
}
.cng-status {
  font-size: 12px;
  min-height: 18px;
  line-height: 1.5;
  color: #564299;
  margin: 8px 0 0;
}
.cng-preview-wrap {
  padding: 24px 42px 20px;
  background: #f5f4f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.cng-preview-top {
  width: 100%;
  max-width: 395px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #737382;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 0 0 16px;
}
.cng-paper {
  width: 100%;
  max-width: 395px;
  aspect-ratio: 794/1123;
  background: white;
  box-shadow: 0 5px 18px #23233314;
  display: grid;
  place-items: center;
  position: relative;
}
.cng-paper svg {
  display: block;
  width: 100%;
  height: 100%;
}
.cng-loading {
  font-size: 14px;
  color: #767681;
}
.cng-preview-note {
  font-size: 11px;
  color: #737382;
  text-align: center;
  margin: 16px 0 0;
}
.cng-noscript {
  background: #f4f0fc;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
}
.cng-page {
  padding: 0 24px;
}
.cng-related {
  max-width: 1160px;
  margin: 0 auto 48px;
  text-align: center;
}
.cng-related h2 {
  font-size: 21px;
}
.cng-related p {
  font-size: 14px;
  color: #626777;
}
.cng-related a {
  display: inline-block;
  margin: 6px 12px;
  color: #6953bc;
}
.cng-how {
  max-width: 800px;
  margin: 24px auto;
  text-align: center;
  font-size: 14px;
  color: #626777;
}
@media (max-width: 900px) {
  .cng-workspace {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .cng-controls {
    padding: 26px 22px;
  }
  .cng-preview-wrap {
    padding: 24px;
  }
  .cng-preview-top {
    font-size: 8px;
  }
}
@media (max-width: 680px) {
  .cng {
    margin: 20px auto 32px;
  }
  .cng-page {
    padding: 0 16px;
  }
  .cng-workspace {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
  }
  .cng-controls {
    padding: 24px 20px;
  }
  .cng-preview-wrap {
    padding: 22px 30px;
  }
  .cng-paper {
    max-width: 350px;
  }
  .cng-preview-top {
    max-width: 350px;
  }
  .cng-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cng-downloads {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cng .cng-downloads button {
    padding: 12px 10px;
    font-size: 12px;
  }
  .cng-heading {
    margin-bottom: 22px;
  }
  .cng-eyebrow {
    font-size: 9px;
  }
  .cng-heading p {
    font-size: 14px;
  }
  .cng-hint {
    margin-bottom: 20px;
  }
  .cng-preview-note {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cng * {
    scroll-behavior: auto;
  }
}
