@font-face {
  font-family: 'IRANSansX';
  src: url('./fonts/IRANSansXFaNum-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap
}
@font-face {
  font-family: 'IRANSansX';
  src: url('./fonts/IRANSansXFaNum-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap
}
@font-face {
  font-family: 'IRANSansX';
  src: url('./fonts/IRANSansXFaNum-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap
}
@font-face {
  font-family: 'IRANSansX';
  src: url('./fonts/IRANSansXFaNum-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap
}

@font-face {
  font-family: 'IRANSansX Latin';
  src: url('./fonts/IRANSansX-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap
}
@font-face {
  font-family: 'IRANSansX Latin';
  src: url('./fonts/IRANSansX-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap
}
:root {
  --jn-font: 'IRANSansX','IRANSansX Latin',system-ui,-apple-system,'Segoe UI',Tahoma,sans-serif;
  --jn-font-latin: 'IRANSansX Latin','IRANSansX',system-ui,sans-serif;
  --jn-green: #a0e747;
  --jn-ink: #10231f;
  --jn-safe-top: env(safe-area-inset-top, 0px);
  --jn-safe-bottom: env(safe-area-inset-bottom, 0px);
  --jn-safe-left: env(safe-area-inset-left, 0px);
  --jn-safe-right: env(safe-area-inset-right, 0px);
  --jn-tap: 48px
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility
}
body {
  line-height: 1.85;
  letter-spacing: normal;
  word-spacing: normal
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.6;
  letter-spacing: normal
}
button,
input,
select,
textarea,
label,
p,
span,
a,
li,
td,
th {
  letter-spacing: normal
}
strong,
b {
  font-weight: 700
}
html,
body {
  font-family: var(--jn-font);
  overscroll-behavior: none;
  touch-action: manipulation
}
body {
  -webkit-tap-highlight-color: transparent
}
.jn-noselect,
.jn-noselect * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none
}
.jn-rtl {
  direction: rtl;
  text-align: right
}
.jn-latin {
  font-family: var(--jn-font-latin);
  direction: ltr;
  unicode-bidi: isolate
}
.jn-controls {
  position: fixed;
  z-index: 9000;
  display: flex;
  gap: 10px;
  pointer-events: none;
  touch-action: none;
  direction: ltr
}
.jn-controls > * {
  pointer-events: auto
}
.jn-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--jn-tap);
  min-height: var(--jn-tap);
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(16, 35, 31, 0.55);
  color: #fff;
  font-family: var(--jn-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  transition: transform 0.08s ease,background 0.15s ease
}
.jn-btn:active,
.jn-btn.is-down {
  transform: scale(0.93);
  background: var(--jn-green);
  color: var(--jn-ink)
}
.jn-btn--round {
  border-radius: 50%;
  padding: 0;
  width: 62px;
  height: 62px;
  font-size: 24px
}
.jn-dpad {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(3, 56px);
  gap: 6px
}
.jn-dpad .jn-btn {
  width: 56px;
  height: 56px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 14px;
  font-size: 20px
}
.jn-dpad [data-dir='up'] {
  grid-area: 1/2
}
.jn-dpad [data-dir='left'] {
  grid-area: 2/1
}
.jn-dpad [data-dir='right'] {
  grid-area: 2/3
}
.jn-dpad [data-dir='down'] {
  grid-area: 3/2
}
.jn-brand {
  position: fixed;
  z-index: 9500;
  inset-inline-end: calc(10px + var(--jn-safe-right));
  top: calc(10px + var(--jn-safe-top));
  pointer-events: none
}
.jn-brand a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(16, 35, 31, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--jn-font);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1
}
.jn-brand svg {
  width: 17px;
  height: auto;
  display: block
}
.jn-rotate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: #10231f;
  color: #fff;
  font-family: var(--jn-font);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  direction: rtl
}
.jn-rotate svg {
  width: 74px;
  height: 74px;
  animation: jn-tilt 1.6s ease-in-out infinite
}
@keyframes jn-tilt {
  0%,
  100% {
    transform: rotate(0deg)
  }
  50% {
    transform: rotate(90deg)
  }
}
@media (orientation: portrait) and (max-width: 900px) {
  body.jn-needs-landscape .jn-rotate {
    display: flex
  }
}
.jn-stage {
  min-height: 100vh;
  min-height: 100dvh
}
@media (hover: hover) and (pointer: fine) {
  .jn-controls.jn-touch-only {
    display: none
  }
}
@media (prefers-reduced-motion: reduce) {
  .jn-rotate svg {
    animation: none
  }
}

.jn-kb-focus {
  outline: 3px solid var(--jn-green) !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(160, 231, 71, 0.22) !important;
  z-index: 60
}

:focus-visible {
  outline: 3px solid var(--jn-green);
  outline-offset: 2px
}
body.jn-reserve-controls {
  padding-bottom: calc(var(--juniora-h, 52px) + var(--jn-controls-h, 0px)) !important;
}
.jn-server-note {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #10231f;
  color: #fff;
  font-family: var(--jn-font);
  direction: rtl;
  text-align: center;
  line-height: 2;
}
.jn-server-note strong { font-size: 19px; color: var(--jn-green); display: block; margin-bottom: 10px; }
.jn-server-note p { margin: 6px 0; font-size: 14px; color: #cfe0d6; }
.jn-server-note code {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  font-family: ui-monospace, monospace;
  direction: ltr;
  font-size: 13px;
}
