:root {
  --parch: #f8efdc;
  --parch-2: #f1e3c6;
  --parch-3: #e9d6b0;
  --line: #d2b585;
  --line-soft: #e4cfa6;
  --ink: #5a3e2e;
  --muted: #8f735c;
  --sage: #7d9868;
  --sage-dark: #5f7a4e;
  --terra: #c46d47;
  --terra-dark: #a65636;
  --wood: #8a5a3b;
  --red: #c92a2f;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  font-family: 'Gowun Batang', serif;
  color: var(--ink);
  background: #e6c497;
}

button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- 배경 ---------- */
.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 240, 210, 0) 45%, rgba(70, 38, 18, .38) 100%);
  pointer-events: none;
}

/* ---------- 양피지 카드 ---------- */
.card {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .5), transparent 60%),
    var(--parch);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 4px var(--parch),
    inset 0 0 0 5.5px var(--line-soft),
    0 10px 26px rgba(80, 45, 20, .28);
  padding: 16px;
}
.card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.card h2::before { content: '❦'; color: #b9925e; font-size: 14px; transform: scaleX(-1); }
.card h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.card h2 small { font-weight: 400; font-size: 12px; color: var(--muted); }
.card h3 { margin: 14px 0 8px; font-size: 14px; color: var(--muted); }
.card h3 small { font-weight: 400; font-size: 12px; }
.muted { color: var(--muted); font-size: 13px; margin: 8px 0 0; line-height: 1.55; }

/* ---------- 레이아웃 ---------- */
.app {
  display: grid;
  gap: 16px;
  padding: 16px 20px 20px;
  grid-template-columns: 270px minmax(0, 1fr) 280px;
  grid-template-areas:
    "brand brand chips"
    "lib   stage right";
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
}
.brand { grid-area: brand; justify-self: start; padding: 10px 22px 10px 16px; }
.chips { grid-area: chips; }
.library { grid-area: lib; }
.stage { grid-area: stage; }
.right-col { grid-area: right; display: flex; flex-direction: column; gap: 16px; }

/* ---------- 제목 명판 ---------- */
.brand h1 { margin: 0; font-size: 30px; }
.brand h1.knit-title { line-height: 0; margin: -6px 0 -4px -8px; }
.knit-word { display: block; height: auto; max-width: 100%; }
.brand p { margin: 0 0 0 4px; font-size: 14px; color: var(--muted); }

/* ---------- 상단 칩 ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--parch);
  box-shadow: inset 0 0 0 2px var(--parch), inset 0 0 0 3px var(--line-soft), 0 4px 10px rgba(80, 45, 20, .22);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
button.chip:hover { background: #fff7e6; }
button.chip:active { transform: translateY(1px); }
.chip.stat { font-weight: 400; }
.chip.icon { padding: 8px 12px; font-size: 16px; }
#btnRandom { background: #f6dc95; }

/* ---------- 왼쪽: 장식 고르기 ---------- */
.library {
  position: sticky; top: 16px;
  display: flex; flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 460px;
  padding: 14px;
}
.nav-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px;
  border: 1.5px solid var(--line-soft);
  border-radius: 999px;
  background: linear-gradient(#fcf6ea, var(--parch-2));
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(138, 90, 59, .12);
}
.tab:hover { border-color: var(--line); }
.tab.on {
  background: linear-gradient(#8fa97a, var(--sage-dark));
  border-color: var(--sage-dark);
  color: #fffaf0;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25), 0 2px 0 rgba(0, 0, 0, .15);
}

/* ---------- 가운데 무대 ---------- */
.stage { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.tool-fab {
  position: absolute; top: 4px; right: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.fab-main, .tool {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 58px; height: 58px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--parch);
  box-shadow: inset 0 0 0 3px var(--parch), inset 0 0 0 4px var(--line-soft), 0 6px 14px rgba(80, 45, 20, .28);
  font-size: 10px; font-weight: 700; line-height: 1.1;
  letter-spacing: -.3px;
}
.fab-main .ic, .tool .ic { font-size: 18px; line-height: 1.1; }
.fab-main {
  background: linear-gradient(#8fa97a, var(--sage-dark));
  border-color: var(--sage-dark);
  color: #fffaf0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 6px 14px rgba(80, 45, 20, .3);
}
.tool-fab.open .fab-main { transform: scale(.92); }
.fab-menu { display: flex; flex-direction: column; gap: 8px; }
.tool-fab:not(.open) .fab-menu { display: none; }
.tool { width: 52px; height: 52px; }
.tool:hover { background: #fffaf0; }
.tool.on { border-color: var(--sage-dark); color: var(--sage-dark); box-shadow: inset 0 0 0 3px var(--parch), inset 0 0 0 5px var(--sage), 0 6px 14px rgba(80, 45, 20, .28); }
.size-row { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--parch); box-shadow: 0 4px 10px rgba(80, 45, 20, .2); }
.size-row[hidden], .tool-fab.open .size-row { display: none; }
.size { width: 34px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: transparent; font-size: 11px; font-weight: 700; }
.size.on { background: var(--sage); color: #fffaf0; }
.stage { position: relative; }
.canvas-wrap { width: calc(100% + 32px); margin: 4px -16px 0; max-width: clamp(420px, calc((100vh - 170px) * 1.31), 1000px); }
#knit { display: block; width: 100%; height: auto; touch-action: none; }

/* ---------- 오른쪽 탭 패널 ---------- */
.side-tabs {
  display: flex; gap: 6px;
  margin: -4px -4px 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--line-soft);
}
.side-tab {
  flex: 1;
  padding: 8px 0;
  border: 1.5px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(#fcf6ea, var(--parch-2));
  font-size: 20px;
}
.side-tab.on { background: linear-gradient(#d98a64, var(--terra-dark)); border-color: var(--terra-dark); }
.pane[hidden] { display: none; }
.pane h2 + .swatches + h2 { margin-top: 18px; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.sw {
  width: 32px; height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(90, 62, 46, .25);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .25);
  font-size: 14px;
  color: var(--muted);
}
.sw:hover { transform: scale(1.06); }
.sw.on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--parch), 0 0 0 5px var(--terra); }
.sw.same { background: repeating-linear-gradient(45deg, #fff 0 4px, #eee 4px 8px) !important; }
.sw.chip { border-radius: 8px; width: 36px; }
.yarn-now { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 2px solid rgba(90, 62, 46, .3); }
.custom { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.custom input { width: 38px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; }

/* ---------- 버튼 ---------- */
.btn {
  border: 1.5px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(#fcf6ea, var(--parch-2));
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(138, 90, 59, .25);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(138, 90, 59, .25); }
.btn.primary { background: linear-gradient(#d98a64, var(--terra-dark)); border-color: var(--terra-dark); color: #fffaf0; }
.btn.danger { background: #f3d6cb; border-color: #dba996; color: #8e2f22; }
.btn.sm { padding: 8px 10px; font-size: 13px; border-radius: 10px; }
.btn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.btn-grid.two { margin-top: 12px; }
.sel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sel-head strong { font-size: 16px; }
.pill { font-size: 12px; background: var(--parch-3); padding: 3px 8px; border-radius: 999px; }

.text-row { display: flex; gap: 6px; }
.text-row input {
  flex: 1; min-width: 0;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: 700 15px 'Gowun Batang', serif;
  text-transform: uppercase;
  background: #fffaf0;
  color: var(--ink);
}

.lib-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; padding: 0; background: none;
  font: inherit; color: inherit;
  cursor: default;
}
.lib-toggle .caret { display: none; transition: transform .2s; }
.lib-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.card .side-head { display: none; }

/* ---------- 장식 목록 ---------- */
.motif-grid {
  flex: 1;
  min-height: 160px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  padding: 2px 4px 6px 2px;
}
.motif {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px;
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(#fffaf0, var(--parch-2));
  box-shadow: inset 0 0 0 3px #fffaf0, 0 2px 0 rgba(138, 90, 59, .15);
  transition: transform .1s;
}
.motif:hover { transform: translateY(-2px); border-color: var(--line); }
.motif .art { display: grid; place-items: center; width: 100%; height: 60px; border-radius: 8px; overflow: hidden; }
.motif canvas { max-width: 100%; max-height: 60px; border-radius: 6px; }
.motif span { font-size: 12px; line-height: 1.2; text-align: center; font-weight: 700; }
.lib-hint { margin-top: 10px; text-align: center; }

/* ---------- 저장 카드 ---------- */
.save { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; }
.save p { margin: 0; font-size: 14px; line-height: 1.55; }
.save .btn { width: 100%; }

.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--parch);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(80, 45, 20, .3);
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
  .app {
    grid-template-columns: 270px minmax(0, 1fr);
    grid-template-areas:
      "brand brand"
      "chips chips"
      "lib   stage"
      "right right";
  }
  .chips { justify-content: flex-start; }
  .right-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}

/* ---------- 니트 구경하기 ---------- */
.btn.gold { background: linear-gradient(#f7df9c, #e2b54e); border-color: #c9983a; color: #5a3e2e; }
.save .btn + .btn { margin-top: -4px; }
.contest-chip { background: linear-gradient(#f7df9c, #ecc66a); }
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(60, 32, 16, .45);
  backdrop-filter: blur(3px);
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(1100px, 100%);
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  padding: 18px 20px;
}
.modal-head { display: flex; align-items: center; gap: 12px; }
.modal-head h2 { flex: 1; margin: 0; font-size: 20px; }
.contest-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; min-height: 0; margin-top: 14px; }
.contest-body h3 { margin: 0 0 10px; font-size: 15px; color: var(--ink); }

.submit-box { display: flex; flex-direction: column; gap: 10px; padding-right: 20px; border-right: 1.5px solid var(--line-soft); overflow-y: auto; }
.submit-preview {
  display: grid; place-items: center;
  height: 150px;
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  background: radial-gradient(circle, #fffaf0, var(--parch-2));
}
.submit-preview img { max-width: 90%; max-height: 135px; }
.submit-box label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.submit-box input, .manage input {
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: 700 14px 'Gowun Batang', serif;
  background: #fffaf0;
  color: var(--ink);
}
.form-msg { margin: 0; min-height: 1em; font-size: 13px; color: #a3392a; }

.gallery-box { display: flex; flex-direction: column; min-height: 0; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; }
.gallery {
  list-style: none; margin: 0; padding: 4px 4px 8px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px;
  overflow-y: auto;
}
.entry {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px;
  border: 1.5px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(#fffaf0, var(--parch-2));
  box-shadow: inset 0 0 0 3px #fffaf0, 0 3px 0 rgba(138, 90, 59, .15);
}
.rank {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--parch-3);
  font-size: 12px; font-weight: 700;
}
.rank.top { background: var(--terra); color: #fffaf0; }
.entry-art {
  display: grid; place-items: center;
  height: 140px;
  border-radius: 10px;
  background: radial-gradient(circle, #fffdf6, #efe0c2);
}
.entry-art img { max-width: 92%; max-height: 128px; }
.entry-info { display: flex; flex-direction: column; gap: 2px; }
.entry-info strong { font-size: 15px; overflow-wrap: anywhere; }
.entry-info .muted { margin: 0; }
.entry-foot { display: flex; gap: 6px; }
.like, .manage-btn {
  border: 1.5px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fffaf0;
  font-size: 13px; font-weight: 700;
}
.like { color: #b2453a; }
.like.on { background: #f7d9d2; border-color: #e3a497; }
.manage-btn { margin-left: auto; color: var(--muted); }
.manage { display: flex; flex-direction: column; gap: 6px; }
.manage[hidden] { display: none; }
.manage-row { display: flex; flex-wrap: wrap; gap: 6px; }
.manage-row .btn { flex: 1 1 auto; }

@media (max-width: 760px) {
  .contest-body { grid-template-columns: 1fr; overflow-y: auto; }
  .submit-box { padding-right: 0; border-right: 0; padding-bottom: 16px; border-bottom: 1.5px solid var(--line-soft); overflow: visible; }
  .gallery { overflow: visible; }
}
.sel[hidden] { display: none; }
.btn.insta {
  border-color: #c13584;
  color: #fff;
  background: linear-gradient(45deg, #f9a43a, #e5435a 40%, #c13584 70%, #7a3fc0);
}

/* ---------- 그립톡 이벤트 ---------- */
.save .event { font-size: 13.5px; line-height: 1.65; text-align: left; word-break: keep-all; }
.save .event strong { color: var(--terra-dark); }
.nowrap { white-space: nowrap; }
.griptok { margin: 2px 0 0; width: 100%; }
.griptok img {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  border: 1.5px solid var(--line-soft);
}
.griptok figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); text-align: center; }

.sel-close {
  order: 3;
  border: 0; background: none;
  padding: 2px 6px;
  font-size: 15px; color: var(--muted);
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 760px) {
  .app {
    gap: 12px;
    padding: 10px 12px 24px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "chips" "stage" "lib" "right";
  }
  .card { padding: 12px; border-radius: 14px; }
  .brand { justify-self: stretch; padding: 8px 10px; }
  .brand h1.knit-title { display: flex; flex-direction: column; align-items: center; margin: -4px 0 0; }
  .brand h1.knit-title .knit-word + .knit-word { margin-top: -12px; }
  .brand p { text-align: center; font-size: 13px; margin: 2px 0 0; }
  .chips { justify-content: center; gap: 6px; }
  .chip { padding: 6px 11px; font-size: 13px; }
  .chip.icon { padding: 6px 10px; }

  .tool-fab { top: 0; right: -4px; gap: 6px; }
  .fab-main { width: 52px; height: 52px; }
  .tool { width: 46px; height: 46px; font-size: 9px; }
  .fab-main .ic, .tool .ic { font-size: 16px; }
  .canvas-wrap { width: calc(100% + 24px); max-width: none; margin: 2px -12px 0; }

  /* 장식 고르기: 종류는 한 줄, 장식은 두 줄로 옆으로 넘기기 */
  .library { position: static; height: auto; min-height: 0; }
  .library .lib-head { margin: 0; }
  .library .lib-head::before, .library .lib-head::after { display: none; }
  .lib-toggle {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(#fcf6ea, var(--parch-2));
    box-shadow: 0 2px 0 rgba(138, 90, 59, .18);
    font-size: 16px;
    cursor: pointer;
  }
  .lib-toggle .caret { display: inline-block; font-size: 13px; color: var(--muted); }
  .library.open .lib-toggle .caret { transform: rotate(180deg); }
  .library:not(.open) .lib-body { display: none; }
  .card.side .side-head { display: block; margin: 0; }
  .side .side-head::before, .side .side-head::after { display: none; }
  .side.open .lib-toggle .caret { transform: rotate(180deg); }
  .side:not(.open) .side-body { display: none; }
  .side.open .side-body { margin-top: 12px; }
  .library.open .lib-body { margin-top: 12px; }
  .nav-list { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 10px; padding: 2px 12px 6px; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .motif-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: 84px;
    overflow-x: auto; overflow-y: hidden;
    min-height: 0;
    margin: 0 -12px;
    padding: 2px 12px 8px;
    scroll-snap-type: x proximity;
  }
  .motif { scroll-snap-align: start; }
  .motif .art { height: 52px; }
  .motif canvas { max-height: 52px; }
  .motif span { font-size: 11px; }
  .lib-hint { display: none; }

  /* 선택한 장식은 아래에서 올라오는 시트 */
  .sel {
    position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 30;
    max-height: 48svh; overflow-y: auto;
    box-shadow: inset 0 0 0 4px var(--parch), inset 0 0 0 5.5px var(--line-soft), 0 -8px 30px rgba(60, 30, 10, .35);
  }
  .sel .btn-grid { grid-template-columns: repeat(3, 1fr); }
  .side-tab { padding: 6px 0; font-size: 18px; }
  .sw { width: 34px; height: 34px; }
  .text-row input, .submit-box input, .manage input { font-size: 16px; }

  .modal { padding: 8px; }
  .modal-card { max-height: calc(100svh - 16px); padding: 14px; }
  .modal-head h2 { font-size: 17px; }
  .contest-body { overflow-y: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .entry-art { height: 110px; }
  .entry-art img { max-height: 100px; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); text-align: center; }
}

.manage-btn { width: 34px; height: 30px; padding: 0; font-size: 18px; line-height: 1; letter-spacing: 1px; }
.manage-btn[aria-expanded="true"] { background: var(--parch-3); }

/* ---------- 장식 고르기 이모지 · 색상표 · 제목 장식 ---------- */
.library .lib-head::before { display: none; }
.lib-emo { font-size: 18px; }
.sel-palette {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 10px; padding: 10px;
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  background: #fffaf0;
}
.sel-palette[hidden] { display: none; }
.sel-palette .sw { width: 28px; height: 28px; }
#selColors .sw.on { box-shadow: 0 0 0 3px var(--parch), 0 0 0 5px var(--sage); }

.brand { position: relative; overflow: visible; }
.brand-deco {
  position: absolute; z-index: 2;
  font-size: 38px; line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(80, 45, 20, .3));
  pointer-events: none;
}
.brand-deco.d1 { left: -14px; top: -10px; transform: rotate(-14deg); }
.brand-deco.d2 { right: 22px; top: -12px; font-size: 30px; transform: rotate(12deg); }
.brand-deco.d3 { right: -16px; bottom: -16px; transform: rotate(10deg); }
.brand-deco.d4 { left: 46%; top: -12px; font-size: 26px; }
@media (max-width: 760px) {
  .brand-deco { font-size: 30px; }
  .brand-deco.d1 { left: -6px; top: -6px; }
  .brand-deco.d3 { right: -6px; bottom: -8px; }
  .brand-deco.d2 { right: 14px; top: -8px; font-size: 24px; }
  .brand-deco.d4 { font-size: 20px; top: -8px; }
}
