@font-face{font-family:"Boyaka";src:url("/generateur/font/jap/Boyaka.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Geisha";src:url("/generateur/font/jap/Geisha.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Genjiro";src:url("/generateur/font/jap/Genjiro.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Ginmaru";src:url("/generateur/font/jap/Ginmaru.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Jasuke";src:url("/generateur/font/jap/Jasuke.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Kattana";src:url("/generateur/font/jap/Kattana.woff2") format("woff2");font-display:swap}
@font-face{font-family:"KenjakuExtrude";src:url("/generateur/font/jap/Kenjaku-Extrude.woff2") format("woff2");font-display:swap}
@font-face{font-family:"KenjakuOutline";src:url("/generateur/font/jap/Kenjaku-Outline.woff2") format("woff2");font-display:swap}
@font-face{font-family:"KenjakuRegular";src:url("/generateur/font/jap/Kenjaku-Regular.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Matsuki";src:url("/generateur/font/jap/matsuki.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Okashi";src:url("/generateur/font/jap/Okashi.woff2") format("woff2");font-display:swap}
@font-face{font-family:"OrientalBold";src:url("/generateur/font/jap/Oriental-Bold.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Osaka";src:url("/generateur/font/jap/Osaka.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Osake";src:url("/generateur/font/jap/Osake.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Ryukosei";src:url("/generateur/font/jap/Ryukosei.woff2") format("woff2");font-display:swap}
@font-face{font-family:"SakuraTown";src:url("/generateur/font/jap/Sakura%20Town.woff2") format("woff2");font-display:swap}
@font-face{font-family:"SamuraiBlast";src:url("/generateur/font/jap/SamuraiBlast.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Santori";src:url("/generateur/font/jap/Santori.woff2") format("woff2");font-display:swap}
@font-face{font-family:"ShibuyaZone";src:url("/generateur/font/jap/Shibuya%20Zone.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Shikamaru";src:url("/generateur/font/jap/Shikamaru.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Shokuge";src:url("/generateur/font/jap/Shokuge.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Tenkai";src:url("/generateur/font/jap/Tenkai.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Zashira";src:url("/generateur/font/jap/Zashira.woff2") format("woff2");font-display:swap}
@font-face{font-family:"Zenjirou";src:url("/generateur/font/jap/Zenjirou.woff2") format("woff2");font-display:swap}

.japanese-calligraphy-page {
  --ac-radius: 18px;
  --ac-preview-max: 760px;
  padding: 2rem 0 4rem;
  color: #0f172a;
}

.japanese-calligraphy-page .tool-hero {
  max-width: 900px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.japanese-calligraphy-page .tool-hero h1 {
  font-weight: 900;
  letter-spacing: -.035em;
}

.japanese-calligraphy-page .tool-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
}

.japanese-calligraphy-page .panel-card,
.japanese-calligraphy-page .gallery-shell,
.japanese-calligraphy-page .seo-shell {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--ac-radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.japanese-calligraphy-page .preview-wrap {
  display: grid;
  place-items: center;
}

.japanese-calligraphy-page .preview-stage {
  width: min(100%, var(--ac-preview-max));
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 20px;
  background: linear-gradient(135deg, #f6e6c7, #8d6a2f);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .15);
  perspective: 1000px;
  user-select: none;
  touch-action: none;
}

.japanese-calligraphy-page .stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.japanese-calligraphy-page .stage-text {
  position: absolute;
  left: 50%;
  top: 55%;
  max-width: none;
  padding: 0;
  transform:
    translate(-50%, -50%)
    rotate(var(--rotate, 0deg))
    skewX(var(--skew, 0deg))
    rotateX(var(--tiltX, 0deg))
    rotateY(var(--tiltY, 0deg));
  transform-style: preserve-3d;
  cursor: grab;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  unicode-bidi: isolate;
  text-align: center;
  will-change: transform;
}

.japanese-calligraphy-page .stage-text:active {
  cursor: grabbing;
}

.japanese-calligraphy-page .stage-text[dir="rtl"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
}

.japanese-calligraphy-page .text-fill {
  display: inline-block;
  font-family: var(--ff, "Osake"), system-ui, sans-serif;
  font-size: var(--fs, 96px);
  line-height: var(--lh, 1.12);
  letter-spacing: var(--ls, 0);
  color: var(--color, #111827);
  opacity: var(--op, 1);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.japanese-calligraphy-page .text-fill.gradient {
  padding: .18em .16em .24em;
  margin: -.18em -.16em -.24em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, var(--g1, #111827), var(--g2, #d1b96a));
  background-clip: text;
  -webkit-background-clip: text;
}

.japanese-calligraphy-page .text-fill.stroke {
  text-shadow: var(--strokeShadow, none);
}

.japanese-calligraphy-page .text-shadow {
  text-shadow: var(--shadow, none);
}

.japanese-calligraphy-page .is-japanese-input {
  font-family: var(--japanese-input-font, "Noto Sans JP"), serif !important;
  direction: ltr;
  unicode-bidi: plaintext;
  letter-spacing: 0 !important;
  text-align: center;
}

.japanese-calligraphy-page #jpTranscription {
  font-family: "Noto Sans JP", "Scheherazade New", serif;
  direction: ltr;
  unicode-bidi: plaintext;
  letter-spacing: 0 !important;
  text-align: center;
}

.japanese-calligraphy-page .font-preview-select {
  min-height: 48px;
  font-size: 1rem;
}

.japanese-calligraphy-page #fontModeBadge {
  white-space: normal;
  text-align: left;
}

.japanese-calligraphy-page .btn-soft {
  color: #0f172a;
  background: rgba(15, 23, 42, .04);
  border: 1px solid rgba(15, 23, 42, .1);
}

.japanese-calligraphy-page .btn-soft:hover {
  background: rgba(15, 23, 42, .08);
}

.japanese-calligraphy-page .opt-section {
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 16px;
}

.japanese-calligraphy-page .opt-toggle {
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(15, 23, 42, .92);
  font-weight: 700;
  background: rgba(15, 23, 42, .02);
  border: 0;
}

.japanese-calligraphy-page .opt-toggle:hover {
  background: rgba(15, 23, 42, .05);
}

.japanese-calligraphy-page .opt-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.japanese-calligraphy-page .opt-body {
  padding: 12px 14px 14px;
}

.japanese-calligraphy-page .chev {
  transition: transform .2s ease;
}

.japanese-calligraphy-page .opt-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.japanese-calligraphy-page .bg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.japanese-calligraphy-page .bg-thumb {
  height: 68px;
  overflow: hidden;
  cursor: pointer;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 12px;
}

.japanese-calligraphy-page .bg-thumb.active {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.japanese-calligraphy-page .premium-access-box {
  padding: 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(108, 92, 231, .08), rgba(240, 180, 41, .08));
  border: 1px solid rgba(108, 92, 231, .16);
  border-radius: 14px;
}

.japanese-calligraphy-page .opt-toggle-label {
  min-width: 0;
}

.japanese-calligraphy-page .premium-title-lock {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
}

.japanese-calligraphy-page .premium-title-lock i {
  font-size: 1rem;
  line-height: 1;
}


.japanese-calligraphy-page .premium-global-access {
  padding: 16px;
  margin-bottom: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, .055), rgba(108, 92, 231, .06));
  border: 1px solid rgba(220, 38, 38, .18);
}

.japanese-calligraphy-page .premium-global-icon {
  margin-top: 2px;
  color: #dc2626;
  font-size: 1.45rem;
  line-height: 1;
}

.japanese-calligraphy-page .premium-global-icon.is-unlocked {
  color: #15803d;
}

.japanese-calligraphy-page #premiumStatus .bi-lock-fill,
.japanese-calligraphy-page #premiumStatus .bi-person-lock {
  color: #dc2626;
}

.japanese-calligraphy-page #premiumStatus .bi-unlock-fill,
.japanese-calligraphy-page #premiumStatus .bi-stars {
  color: #15803d;
}

.japanese-calligraphy-page .premium-global-access [data-premium-unlock] {
  min-height: 46px;
}

.japanese-calligraphy-page .premium-option-body {
  position: relative;
}

.japanese-calligraphy-page .premium-option-content {
  transition: opacity .18s ease, filter .18s ease;
}

.japanese-calligraphy-page .premium-option-body.is-locked .premium-option-content {
  opacity: .42;
  filter: grayscale(.18);
}

.japanese-calligraphy-page .premium-option-body.is-locked .premium-option-content :disabled {
  cursor: not-allowed;
}


.japanese-calligraphy-page [data-premium-lock-icon].d-none,
.japanese-calligraphy-page [data-premium-unlock].d-none {
  display: none !important;
}

.japanese-calligraphy-page .gallery-thumb {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  transition: transform .12s ease, box-shadow .12s ease;
}

.japanese-calligraphy-page .gallery-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
}

.japanese-calligraphy-page .gallery-thumb:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .85);
  outline-offset: 3px;
}

.japanese-calligraphy-page .gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  transition: transform .2s ease;
}

.japanese-calligraphy-page .gallery-thumb:hover img {
  transform: scale(1.03);
}

.japanese-calligraphy-page .gallery-carousel .carousel-control-prev,
.japanese-calligraphy-page .gallery-carousel .carousel-control-next {
  width: 56px;
  opacity: 1;
}

.japanese-calligraphy-page .gallery-carousel .carousel-control-prev-icon,
.japanese-calligraphy-page .gallery-carousel .carousel-control-next-icon {
  display: none;
}

.japanese-calligraphy-page .ctrl-pill {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .48);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .28);
  backdrop-filter: blur(6px);
}

.japanese-calligraphy-page .lightbox-frame {
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, .28);
}

.japanese-calligraphy-page .lightbox-img {
  width: 100%;
  height: auto;
  display: block;
}

.japanese-calligraphy-page .seo-card {
  height: 100%;
  padding: 1rem;
  background: rgba(15, 23, 42, .025);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 15px;
}

.download-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .38);
}

.download-overlay.show {
  display: flex;
}

.download-overlay .box {
  max-width: min(92vw, 380px);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .22);
}

.japanese-token-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, .24);
}

.japanese-token-modal .token-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--primary-color);
  background: rgba(108, 92, 231, .1);
  border-radius: 16px;
  font-size: 1.4rem;
}

@media (max-width: 767.98px) {
  .japanese-calligraphy-page {
    padding-top: 1.25rem;
  }

  .japanese-calligraphy-page .panel-card {
    border-radius: 15px;
  }

  .japanese-calligraphy-page .preview-stage {
    border-radius: 15px;
  }

  .japanese-calligraphy-page .bg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
