* {
  box-sizing: border-box;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333;
}
* {
  scrollbar-color: #262626 #000;
}
body {
  margin: 0;
  background: #000;
  color: #ededed;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#bgMusic,
#bgMusic2 {
  display: none;
}
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid #171717;
  padding: 10px 20px 8px;
}
.progress-fill {
  height: 2px;
  background: #262626;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.progress-fill:after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  width: var(--p, 0%);
  transition: width 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11px;
  color: #555;
}
.progress-steps span {
  transition: color 0.4s;
}
.progress-steps span.active {
  color: #fff;
}
.progress-steps span.done {
  color: #22c55e;
}
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 66px 24px 24px;
  position: relative;
}
.step {
  width: 100%;
  max-width: 640px;
  text-align: center;
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    filter 0.9s ease;
}
.step.leaving {
  opacity: 0;
  transform: translateY(-24px);
  filter: blur(12px);
  pointer-events: none;
}
.hidden {
  display: none !important;
}
.lang-intro {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(10px);
  transition: all 0.8s ease;
}
.lang-intro.show {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.lang-intro.hide {
  opacity: 0;
  transform: translateY(-14px);
  filter: blur(10px);
  pointer-events: none;
}
.lang-intro-title {
  font-size: 13px;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.lang-intro-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.lang-intro-btns button {
  background: #0a0a0a;
  border: 1px solid #262626;
  color: #a1a1aa;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lang-intro-btns button:hover {
  color: #fff;
  border-color: #555;
  transform: translateY(-2px);
}
.lang-intro-btns button.active {
  color: #000;
  background: #fff;
  border-color: #fff;
}
.greeting {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  transition:
    transform 1.1s ease,
    opacity 1.1s ease,
    filter 1.1s ease;
}
.greeting.up {
  transform: translateY(-14px);
  opacity: 0.35;
  filter: blur(6px);
}
.help {
  margin-top: 22px;
  font-size: clamp(20px, 3vw, 28px);
  color: #fff;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(10px);
  transition: all 0.9s ease;
}
.help.show {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.services {
  margin-top: 14px;
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(12px);
  transition: all 1.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.services.show {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
.warn {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 12px;
  color: #a1a1aa;
  border: 1px solid #262626;
  padding: 9px 12px;
  border-radius: 8px;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(12px);
  transition: all 1.2s cubic-bezier(0.2, 0.9, 0.3, 1) 0.15s;
}
.warn.show {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
.input-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #333;
  padding: 12px 2px;
  transition: border-color 0.3s ease;
}
.input-line:focus-within {
  border-bottom-color: #fff;
}
.input-line.swear {
  border-bottom-color: #f97316 !important;
  box-shadow: 0 1px 0 #f97316;
}
.input-line.link-bad {
  border-bottom-color: #f97316 !important;
  box-shadow: 0 1px 0 #f97316;
}
.input-line.repeat-bad {
  border-bottom-color: #ef4444 !important;
  box-shadow: 0 1px 0 #ef4444;
}
.cursor {
  width: 2px;
  height: 22px;
  background: #fff;
  animation: blink 1s infinite;
  flex-shrink: 0;
  margin-top: 4px;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.input-line textarea {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  font-family: Inter;
  font-size: 19px;
  line-height: 1.5;
  resize: none;
  overflow: hidden;
  min-height: 28px;
  max-height: 220px;
  height: 28px;
  transition: height 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
  padding: 0;
}
.input-line textarea::placeholder {
  color: #555;
}
.clear-btn {
  background: none;
  border: 0;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.clear-btn:hover {
  color: #fff;
}
.mic-btn {
  background: #0a0a0a;
  border: 1px solid #262626;
  color: #a1a1aa;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  margin-top: 0;
}
.mic-btn:hover {
  color: #fff;
  border-color: #555;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.08);
}
.mic-btn.recording {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  animation: micPulse 1s infinite;
}
@keyframes micPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
.char-count {
  font-size: 11px;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 6px;
}
.hint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    filter 0.6s ease,
    max-height 0.6s ease,
    margin 0.6s ease;
  max-height: 40px;
  overflow: hidden;
}
.hint {
  margin-top: 12px;
  font-size: 12px;
  color: #666;
  text-align: left;
}
.example-btn {
  background: none;
  border: 0;
  color: #666;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.example-btn:hover {
  color: #fff;
}
.examples-wrap {
  margin-top: 18px;
  text-align: left;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    filter 0.6s ease,
    max-height 0.6s ease,
    margin 0.6s ease;
  max-height: 300px;
  overflow: hidden;
}
.examples-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
  margin-bottom: 8px;
}
.examples-hint {
  color: #555;
}
.examples-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.examples-carousel::-webkit-scrollbar {
  height: 6px;
}
.example-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.example-card:hover {
  transform: translateY(-3px);
  border-color: #555;
}
.example-card b {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}
.example-card span {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  display: block;
}
.example-card small {
  font-size: 11px;
  color: #666;
}
.history-btn {
  margin-top: 14px;
  background: #0a0a0a;
  border: 1px solid #262626;
  color: #a1a1aa;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition:
    all 0.3s ease,
    opacity 0.6s ease,
    transform 0.6s ease,
    filter 0.6s ease,
    max-height 0.6s ease;
}
.history-btn:hover {
  color: #fff;
  border-color: #555;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.06);
}
.history-btn svg {
  opacity: 0.8;
}
.history-box {
  margin-top: 12px;
  text-align: left;
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
  animation: up 0.4s ease both;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    filter 0.6s ease;
}
.history-item {
  padding: 12px 14px;
  border-bottom: 1px solid #171717;
}
.history-item:last-child {
  border-bottom: 0;
}
.history-item b {
  font-size: 13px;
  display: block;
}
.history-item span {
  font-size: 12px;
  color: #888;
  display: block;
  margin-top: 4px;
  line-height: 1.5;
}
.history-item small {
  font-size: 11px;
  color: #666;
}
.history-item button {
  margin-top: 8px;
  background: none;
  border: 1px solid #333;
  color: #a1a1aa;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
}
.history-empty {
  padding: 14px;
  color: #888;
  font-size: 13px;
}
.lang-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #a1a1aa;
  text-align: left;
  cursor: pointer;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 8px 10px;
  animation: up 0.4s ease both;
  transition:
    opacity 0.6s ease,
    filter 0.6s ease;
}
.saved-hint {
  margin-top: 8px;
  font-size: 11px;
  color: #555;
  text-align: left;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.saved-hint.show {
  opacity: 1;
}
.clear-confirm {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  font-size: 12px;
  color: #a1a1aa;
  animation: up 0.3s ease both;
  transition:
    opacity 0.6s ease,
    filter 0.6s ease;
}
.clear-confirm button {
  background: none;
  border: 1px solid #333;
  color: #ededed;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}
.clear-confirm button:hover {
  border-color: #fff;
}
#step2.typing-hide .hint-row,
#step2.typing-hide .examples-wrap,
#step2.typing-hide #historyBtn,
#step2.typing-hide #historyBox,
#step2.typing-hide .saved-hint,
#step2.typing-hide .clear-confirm,
#step2.typing-hide #langHint {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(10px);
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
  overflow: hidden;
}
#step2.typing-hide #historyBox {
  border-color: transparent;
}
.faq-toggle {
  margin-top: 18px;
  background: none;
  border: 1px solid #262626;
  color: #a1a1aa;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}
.faq-toggle:hover {
  color: #fff;
  border-color: #555;
}
.faq-box {
  margin-top: 16px;
  text-align: left;
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
  animation: up 0.5s ease both;
}
.faq-item {
  border-bottom: 1px solid #171717;
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: #ededed;
  padding: 14px 16px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.faq-q span {
  color: #666;
  font-size: 12px;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-q span {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
}
.faq-a p {
  margin: 0;
  padding: 0 16px 14px;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.6;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 5;
}
#step3 {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.contact-wrap {
  position: relative;
  width: 440px;
  max-width: 100%;
  display: flex;
  justify-content: center;
}
.contact-box {
  width: 440px;
  max-width: 100%;
  flex-shrink: 0;
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 24px;
  text-align: left;
  animation: up 0.6s ease both;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
.contact-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  min-height: 26px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
}
.contact-sub {
  margin: 6px 0 20px;
  font-size: 13px;
  color: #888;
}
.egg-badge {
  margin: 10px 0 0;
  background: #fef08a;
  color: #000;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  animation: up 0.5s ease both;
}
.field {
  display: block;
  margin-top: 16px;
}
.field > span {
  font-size: 12px;
  color: #a1a1aa;
}
.field > span i {
  color: #666;
  font-style: normal;
}
.field-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 11px 12px;
  background: #000;
}
.field-input:focus-within {
  border-color: #555;
}
.field-input input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 14px;
}
.field-input b {
  color: #666;
  font-weight: 400;
}
.field small {
  font-size: 11px;
  color: #888;
}
.mini-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.send {
  margin-top: 22px;
  width: 100%;
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 999px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.send.sending {
  opacity: 0.6;
  pointer-events: none;
}
.send.sent {
  background: #111;
  color: #fff;
  border: 1px solid #333;
}
.send:disabled {
  opacity: 0.5;
  cursor: default;
}
.success {
  margin-top: 12px;
  font-size: 13px;
  color: #a1a1aa;
  text-align: center;
}
.after-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.after-btn {
  flex: 1;
  background: none;
  border: 1px solid #333;
  color: #a1a1aa;
  padding: 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}
.after-btn:hover {
  color: #fff;
  border-color: #555;
}
.phone-wrap {
  position: relative;
}
.code-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  border-right: 1px solid #262626;
  padding-right: 10px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.code-btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}
.code-btn .arrow {
  color: #666;
  font-size: 10px;
}
.code-list {
  position: absolute;
  left: -1px;
  right: -1px;
  top: calc(100% + 8px);
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 12px;
  z-index: 20;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  filter: blur(10px);
  pointer-events: none;
  transition:
    opacity 0.55s cubic-bezier(0.2, 0.9, 0.3, 1),
    transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1),
    filter 0.55s ease;
}
.code-list.open {
  opacity: 1;
  transform: none;
  filter: blur(0);
  pointer-events: auto;
}
.code-list.closing {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  filter: blur(10px);
  pointer-events: none;
}
.code-list input {
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid #262626;
  background: #000;
  color: #fff;
  outline: 0;
  font-size: 13px;
}
#codeItems {
  max-height: 240px;
  overflow-y: auto;
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    black 18px,
    black calc(100% - 18px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    black 18px,
    black calc(100% - 18px),
    transparent 100%
  );
}
.code-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  transition:
    opacity 0.3s ease,
    filter 0.3s ease,
    transform 0.3s ease;
}
.code-item:hover {
  background: #1a1a1a;
}
.code-item img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}
.code-item .c-code {
  margin-left: auto;
  color: #888;
}
.field.error .field-input {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444;
}
.field.error small {
  color: #f87171 !important;
}
.field .err-msg {
  display: none;
  font-size: 12px;
  color: #f87171;
  margin-top: 6px;
}
.field.error .err-msg {
  display: block;
}
.block-timer {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  z-index: 60;
  min-width: 110px;
}
.timer-num {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.timer-label {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}
.timer-bar {
  height: 3px;
  background: #262626;
  border-radius: 99px;
  margin-top: 12px;
  overflow: hidden;
}
.timer-bar div {
  height: 100%;
  background: #fff;
  width: 100%;
  transition: width 1s linear;
}
.toast {
  position: fixed;
  right: 20px;
  top: 110px;
  max-width: 280px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #ededed;
  z-index: 60;
  animation: up 0.5s ease both;
}
.toast.hidden {
  display: none !important;
}
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 12px;
  color: #666;
  font-size: 11px;
}
.divider:before,
.divider:after {
  content: '';
  flex: 1;
  height: 1px;
  background: #262626;
}
.no-data {
  width: 100%;
  background: none;
  border: 1px solid #333;
  color: #a1a1aa;
  padding: 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}
.no-data:hover {
  color: #fff;
  border-color: #555;
}
.tg-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.tg-backdrop.show {
  opacity: 1;
}
.tg-side {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(20px) scale(0.96);
  width: 400px;
  max-width: calc(100vw - 32px);
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 18px;
  padding: 30px 26px;
  text-align: center;
  z-index: 50;
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.tg-side.show {
  opacity: 1;
  transform: translate(-50%, -50%);
  filter: blur(0);
  pointer-events: auto;
}
.tg-side.leaving {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(16px) scale(0.97);
  filter: blur(12px);
  pointer-events: none;
}
.tg-stage {
  width: 100%;
  transition: all 0.5s ease;
}
.tg-stage.hide {
  opacity: 0;
  transform: translateY(-12px);
  filter: blur(8px);
  pointer-events: none;
}
.tg-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #229ed9, #1d7fb8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.tg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.tg-avatar-letter {
  font-size: 42px;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 1;
}
.tg-username {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tg-name {
  margin-top: 4px;
  font-size: 14px;
  color: #a1a1aa;
}
.tg-desc {
  margin-top: 16px;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}
.tg-countdown {
  margin-top: 18px;
  font-size: 12px;
  color: #888;
}
.tg-go {
  display: block;
  margin-top: 14px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 12px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.tg-go:hover {
  transform: translateY(-1px);
}
.tg-note2 {
  margin-top: 18px;
  font-size: 11px;
  color: #666;
  line-height: 1.5;
}
.swear-flag {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translate(-50%, -20px);
  z-index: 9999;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: #ededed;
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.swear-flag.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.t9-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 9999;
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: #a1a1aa;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.t9-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.t9-badge {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid #262626;
  color: #666;
  white-space: nowrap;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    border-radius 0.35s ease;
  flex-shrink: 0;
  margin-top: 5px;
}
.t9-badge.on {
  color: #22c55e;
  border-color: #22c55e;
}
.t9-badge.t9-spin {
  animation: t9Spin 0.7s ease;
}
@keyframes t9Spin {
  0% {
    transform: rotate(0) scale(1);
  }
  30% {
    transform: rotate(180deg) scale(1.05);
  }
  60% {
    transform: rotate(360deg) scale(1.1);
  }
  100% {
    transform: rotate(720deg) scale(1);
  }
}
.t9-badge.t9-line {
  transform: scaleX(2.2) scaleY(0.55);
  border-radius: 999px;
  opacity: 0.9;
}
.t9-badge.t9-fly {
  position: relative;
  z-index: 100;
  transform: translateY(-8px) scaleX(3) scaleY(0.4);
  opacity: 0;
}
.t9-center {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t9-center.hidden {
  display: none !important;
}
.t9-center-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.t9-center.show .t9-center-backdrop {
  opacity: 1;
}
.t9-center-card {
  position: relative;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 18px;
  padding: 22px 28px;
  text-align: center;
  min-width: 280px;
  max-width: 88vw;
  transform: scaleX(0.1) scaleY(0.4);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3),
    opacity 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.t9-center.show .t9-center-card {
  transform: scale(1);
  opacity: 1;
}
.t9-center.closing .t9-center-card {
  transform: scaleX(0.1) scaleY(0.35);
  opacity: 0;
}
.t9-center.closing .t9-center-backdrop {
  opacity: 0;
}
.t9-center-line {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 99px;
  margin: 0 auto 14px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease 0.1s;
}
.t9-center.show .t9-center-line {
  transform: scaleX(1);
}
.t9-center-title {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.t9-center-status {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.t9-center-status.off {
  color: #f87171;
}
.t9-center-status.on {
  color: #22c55e;
}
.field.swear .field-input {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 1px #f97316;
}
.egg-card {
  border-color: #fef08a !important;
}
.egg-emoji {
  font-size: 44px;
  margin-bottom: 6px;
}
.egg-sub {
  margin-top: 8px;
  font-size: 12px;
  color: #888;
}
.egg-btn {
  margin-top: 16px;
  background: #fef08a;
  color: #000;
  border: 0;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}
body.egg-flash {
  animation: eggFlash 0.6s ease 2;
}
@keyframes eggFlash {
  0%,
  100% {
    background: #000;
  }
  50% {
    background: #1a1a00;
  }
}
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: Inter;
  font-size: 11px;
  font-weight: 600;
  color: #ededed;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}
.kbd-row {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.hotkeys-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 20px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid #262626;
  border-radius: 999px;
  padding: 8px 10px 8px 12px;
  backdrop-filter: blur(12px);
  opacity: 0;
  filter: blur(8px);
  transition: all 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.hotkeys-bar.show {
  opacity: 1;
  transform: translate(-50%, 0);
  filter: blur(0);
}
.hotkeys-lang {
  display: flex;
  gap: 4px;
}
.hotkeys-lang button {
  background: none;
  border: 1px solid #262626;
  color: #888;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.hotkeys-lang button:hover {
  color: #fff;
  border-color: #555;
}
.hotkeys-lang button.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 600;
}
.hotkeys-open {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: #a1a1aa;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
}
.hotkeys-open:hover {
  color: #fff;
}
.hotkeys-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hotkeys-modal.hidden {
  display: none !important;
}
.hotkeys-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.hotkeys-modal.show .hotkeys-backdrop {
  opacity: 1;
}
.hotkeys-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 18px;
  padding: 22px;
  text-align: left;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.hotkeys-modal.show .hotkeys-card {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.hotkeys-modal.closing .hotkeys-card {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  filter: blur(10px);
}
.hotkeys-modal.closing .hotkeys-backdrop {
  opacity: 0;
}
.hotkeys-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.hotkeys-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hotkeys-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #888;
}
.hotkeys-close {
  background: none;
  border: 1px solid #333;
  color: #a1a1aa;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.hotkeys-close:hover {
  color: #fff;
  border-color: #555;
}
.hotkeys-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hotkeys-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 10px;
  border-radius: 10px;
  transition: background 0.25s ease;
}
.hotkeys-row:hover {
  background: #111;
}
.hotkeys-row > span:last-child {
  font-size: 13px;
  color: #a1a1aa;
  text-align: right;
}
.hotkeys-foot {
  margin-top: 14px;
  padding: 10px 12px;
  background: #111;
  border: 1px solid #262626;
  border-radius: 10px;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .hotkeys-bar {
    width: calc(100vw - 24px);
    justify-content: space-between;
  }
  .hotkeys-open {
    font-size: 11px;
  }
}
