/* Final usability pass: touch targets, long translations and optional text sizing. */
.character-carousel-count {
  font-size: 11px;
  color: rgba(244,243,239,.82);
}

.character-carousel-arrow {
  width: 44px;
  height: 44px;
}

.character-carousel-dot {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.games-promo-copy > span { font-size: 11px; }
.language-trigger { min-height: 44px; }
.language-menu button { min-height: 42px; }
.language-menu b { font-size: 10px; color: #91939c; }
.language-menu span { font-size: 13px; }
.menu-button { min-width: 44px; min-height: 44px; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 40px; }

.button,.sidebar nav button,.chat-setting-chip,.suggestions button,
.billing-product-grid article,.price-card,.settings-card,.admin-panel {
  transition: border-color .2s ease,background-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.price-card.premium,
.billing-product-grid article.highlight {
  box-shadow: 0 0 0 1px rgba(216,255,87,.12),0 18px 48px rgba(0,0,0,.22);
}

.price-card.premium::after,
.billing-product-grid article.highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 2px 0 rgba(216,255,87,.32);
}

.chat-setting-chip b,.chat-mode-panel b,.chat-mode-panel small,
.price-card h3,.billing-product-grid article p,.settings-title p,
.admin-panel th,.admin-panel td,.character-pipeline-table th,.character-pipeline-table td {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Interface-size preference card */
.ux-size-card { gap: 16px; }
.ux-size-options {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
}
.ux-size-option {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d0f13;
  color: #c5c6cc;
  font-size: 13px;
  font-weight: 700;
}
.ux-size-option:hover { border-color: rgba(216,255,87,.36); color: #fff; }
.ux-size-option.active {
  border-color: var(--accent);
  background: rgba(216,255,87,.1);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(216,255,87,.12);
}

html[data-ui-size="large"] .bubble,
html[data-ui-size="large"] .chat-input textarea { font-size: 17px; }
html[data-ui-size="large"] .sidebar nav button,
html[data-ui-size="large"] .chat-person b,
html[data-ui-size="large"] .chat-setting-chip b,
html[data-ui-size="large"] .settings-card input { font-size: 15px; }
html[data-ui-size="large"] .chat-mode-panel small,
html[data-ui-size="large"] .suggestions button,
html[data-ui-size="large"] .settings-card label,
html[data-ui-size="large"] .settings-title p,
html[data-ui-size="large"] .billing-product-grid article p { font-size: 14px; }

html[data-ui-size="xlarge"] .bubble,
html[data-ui-size="xlarge"] .chat-input textarea { font-size: 18px; }
html[data-ui-size="xlarge"] .sidebar nav button,
html[data-ui-size="xlarge"] .chat-person b,
html[data-ui-size="xlarge"] .chat-setting-chip b,
html[data-ui-size="xlarge"] .settings-card input { font-size: 16px; }
html[data-ui-size="xlarge"] .chat-mode-panel small,
html[data-ui-size="xlarge"] .suggestions button,
html[data-ui-size="xlarge"] .settings-card label,
html[data-ui-size="xlarge"] .settings-title p,
html[data-ui-size="xlarge"] .billing-product-grid article p { font-size: 15px; }

@media (max-width: 720px) {
  .character-carousel-controls {
    grid-template-columns: 42px minmax(0,1fr) 42px;
    gap: 7px;
  }
  .character-carousel-arrow { width: 42px; height: 42px; }
  .character-carousel-dot { width: 40px; height: 40px; flex-basis: 40px; }
  .character-carousel-count { bottom: 63px; }
  .site-nav .language-trigger { height: 44px; }
  .ux-size-options { grid-template-columns: 1fr; }
  .ux-size-option { min-height: 46px; }
}

@media (max-width: 360px) {
  .chat-settings-summary { gap: 6px; }
  .chat-setting-chip { padding-inline: 8px; }
  .chat-setting-chip b { font-size: 12px; }
}
