.neu-text {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */

.neu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: box-shadow .2s, transform .15s;
  box-shadow: 6px 6px 12px var(--shadow), -4px -4px 10px var(--highlight);
}

.neu-btn-game {
  padding: 10px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(90deg, var(--cyan-1), var(--cyan-4));
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  color: white;
  box-shadow: 5px 5px 10px var(--shadow), -3px -3px 8px var(--highlight);
  transition: all .2s;
  flex-direction: column;
}

.avatar-rank-wrapper {
  position: relative;
  display: inline-block;
}

.rank-badge {
  position: absolute;
  bottom: -3px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 0px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 2px 2px 4px var(--shadow), inset -2px -2px 4px var(--highlight);
}

.rank-badge.top-bar {
  bottom: 6px;
}

.rank-badge.rank-gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
}

.rank-badge.rank-silver {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  color: #000;
}

.rank-badge.rank-bronze {
  background: linear-gradient(135deg, #CD7F32, #A0522D);
  color: #fff;
}

.rank-badge.rank-blue {
  background: linear-gradient(135deg, #4A90E2, #2C5F8A);
  color: #fff;
}

.rank-badge.rank-gray {
  background: linear-gradient(135deg, #808080, #606060);
  color: #fff;
}

.neu-btn-game:hover,
.neu-btn:hover {
  box-shadow: 8px 8px 16px var(--shadow), -5px -5px 12px var(--highlight);
}

.neu-btn-game:active,
.neu-btn-game.sunken,
.neu-btn:active,
.neu-btn.sunken {
  box-shadow: inset 4px 4px 8px var(--shadow), inset -3px -3px 6px var(--highlight);
  transform: scale(.98);
}

.neu-btn-game:disabled,
.neu-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.neu-btn-game.success {
  background: linear-gradient(135deg, #50C878, #00BFA5);
}

.neu-btn-game.error {
  background: linear-gradient(135deg, #FF8E53, #FF6B6B);
}

.neu-btn-filled {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan-2), var(--cyan-4));
  box-shadow: 6px 6px 12px var(--shadow), -4px -4px 10px var(--highlight);
  transition: all .2s;
}

.neu-btn.sm,
.neu-btn-filled.sm {
  padding: 8px 10px;
}

.neu-btn,
.neu-btn-filled.lg {
  padding: 12px 10px;
}

.neu-btn-filled:hover {
  filter: brightness(1.1);
}

.neu-btn-filled:active {
  transform: scale(.98);
  box-shadow: inset 4px 4px 8px var(--shadow), inset -3px -3px 6px var(--highlight);
}

.neu-btn-filled.success {
  background: linear-gradient(135deg, #50C878, #00BFA5);
}

.neu-btn-filled.error {
  background: linear-gradient(135deg, #FF8E53, #FF6B6B);
}

.neu-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 5px 5px 10px var(--shadow), -3px -3px 8px var(--highlight);
  transition: all .2s;
}

.neu-btn-circle:hover {
  box-shadow: 7px 7px 14px var(--shadow), -4px -4px 10px var(--highlight);
}

.neu-btn-circle:active {
  box-shadow: inset 3px 3px 6px var(--shadow), inset -2px -2px 5px var(--highlight);
}

.neu-btn-circle.sm {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.neu-btn-circle.md {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.neu-btn-circle.lg {
  width: 60px;
  height: 60px;
  font-size: 22px;
}

.neu-btn-icon {
  padding: 10px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--accent);
  box-shadow: 5px 5px 10px var(--shadow), -3px -3px 8px var(--highlight);
  transition: all .2s;
}

.neu-btn-icon:active {
  box-shadow: inset 3px 3px 6px var(--shadow), inset -2px -2px 5px var(--highlight);
}

.neu-btn-icon.filled {
  background: var(--accent-fill);
  color: #fff;
}

.neu-btn-icon.glass {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.neu-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--base);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  box-shadow: 5px 5px 10px var(--shadow), -3px -3px 8px var(--highlight);
  transition: all .2s;
}

.neu-back-btn:active {
  box-shadow: inset 3px 3px 6px var(--shadow), inset -2px -2px 5px var(--highlight);
}

.neu-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 5px 5px 10px var(--shadow), -3px -3px 8px var(--highlight);
  transition: all .2s;
}

.neu-icon.xs {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.neu-icon.sm {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.neu-icon.lg {
  width: 60px;
  height: 60px;
  font-size: 28px;
}

.neu-icon.xl {
  width: 100px;
  height: 100px;
  font-size: 3rem;
}

/* ═══════════════════════════════════════════════════════════════
   INPUTS  —  NeuInput
═══════════════════════════════════════════════════════════════ */

.neu-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--base);
  box-shadow: inset 4px 4px 8px var(--shadow), inset -3px -3px 6px var(--highlight);
  transition: box-shadow .2s;
}

.neu-input-wrap:focus-within {
  box-shadow: inset 5px 5px 10px var(--shadow), inset -4px -4px 8px var(--highlight);
}

.neu-input-wrap .icon {
  color: var(--accent);
  font-size: 17px;
  flex-shrink: 0;
}

.neu-input-wrap input,
.neu-input-wrap textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .9rem;
  color: var(--text-primary);
}

.neu-input-wrap input::placeholder,
.neu-input-wrap textarea::placeholder {
  color: var(--text-secondary);
  opacity: .7;
}

.neu-input-flat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(113, 128, 150, .25);
  transition: border-color .2s;
}

.neu-input-flat:focus-within {
  border-color: var(--accent);
}

.neu-input-flat input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .9rem;
  color: var(--text-primary);
}

.neu-input-flat input::placeholder {
  color: var(--text-secondary);
}

.neu-input-error .neu-input-wrap {
  border: 1px solid rgba(255, 107, 107, .35);
}

.neu-error-msg {
  color: #FF6B6B;
  font-size: .75rem;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   TOGGLE  —  NeuToggle
═══════════════════════════════════════════════════════════════ */

.neu-toggle {
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 34px;
  cursor: pointer;
  background: var(--base);
  flex-shrink: 0;
  box-shadow: inset 3px 3px 6px var(--shadow), inset -2px -2px 5px var(--highlight);
  transition: background .25s;
}

.neu-toggle .knob {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--base);
  box-shadow: 3px 3px 6px var(--shadow), -2px -2px 4px var(--highlight);
  transition: right .25s, background .25s;
}

.neu-toggle.on .knob {
  right: calc(100% - 29px);
  background: var(--accent-fill);
}

.neu-toggle.on {
  background: rgba(72, 202, 228, .12);
}

.neu-theme-toggle {
  position: relative;
  width: 72px;
  height: 36px;
  border-radius: 36px;
  cursor: pointer;
  background: var(--base);
  flex-shrink: 0;
  box-shadow: inset 3px 3px 6px var(--shadow), inset -2px -2px 5px var(--highlight);
  display: flex;
  align-items: center;
  padding: 4px;
}

.neu-theme-toggle .slider {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--base);
  box-shadow: 3px 3px 6px var(--shadow), -2px -2px 4px var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 1;
  transition: left .3s, right .3s;
}

html:not(.dark) .neu-theme-toggle .slider {
  right: 4px;
  left: auto;
}

html.dark .neu-theme-toggle .slider {
  left: 4px;
  right: auto;
}

.neu-theme-toggle .t-icon {
  position: absolute;
  font-size: 12px;
  z-index: 0;
}

.neu-theme-toggle .t-icon.moon {
  right: 9px;
}

.neu-theme-toggle .t-icon.sun {
  left: 9px;
}

/* ═══════════════════════════════════════════════════════════════
   RADIO  —  NeuRadio
═══════════════════════════════════════════════════════════════ */

.neu-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.neu-radio .dot-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 8px var(--shadow), -3px -3px 6px var(--highlight);
  transition: box-shadow .2s;
  flex-shrink: 0;
}

.neu-radio.selected .dot-wrap {
  box-shadow: inset 3px 3px 6px var(--shadow), inset -2px -2px 5px var(--highlight);
}

.neu-radio .dot {
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--accent);
  transition: width .2s, height .2s;
}

.neu-radio.selected .dot {
  width: 12px;
  height: 12px;
}

.neu-radio span {
  font-size: .9rem;
  color: var(--text-secondary);
  transition: color .2s;
}

.neu-radio.selected span {
  color: var(--text-primary);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS & CONTAINERS  —  NeuCard، NeuContainer، NeuDivider
═══════════════════════════════════════════════════════════════ */

.neu-card {
  background: var(--base);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 6px 6px 12px var(--shadow), -4px -4px 10px var(--highlight);
}

.neu-alert {
  display: flex;
  background: var(--base);
  border-radius: var(--radius-lg);
  padding: 13px;
  box-shadow: 6px 6px 12px var(--shadow), -4px -4px 10px var(--highlight);
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.neu-card-account {
  padding: 0 5% 0 5%;
  box-shadow: 0px 0px 0px var(--shadow), 0px 0px 0px var(--highlight)
}

.neu-card-header {
  background: linear-gradient(270deg, var(--cyan-4), var(--cyan-3), var(--cyan-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  border-radius: var(--radius-lg);
  padding: 15px;
  box-shadow: 6px 6px 12px var(--shadow), -4px -4px 10px var(--highlight);
}

.neu-container {
  background: var(--base);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 5px 5px 10px var(--shadow), -3px -3px 8px var(--highlight);
  overflow: hidden;
  position: relative;
}

.neu-container.sm {
  padding: 5px 10px;
}

.neu-container.grad::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan-1), var(--cyan-4));
  border-radius: inherit;
  z-index: 0;
}

.neu-container.grad>* {
  position: relative;
  z-index: 1;
}

.neu-card.md {
  display: inline-block;
  padding: 10px 20px 10px 20px;
}

.neu-card-flat {
  background: var(--base);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
}

.neu-divider {
  margin: 8px 40px;
  height: 1px;
  border-radius: 2px;
  box-shadow: inset 1px 1px 2px var(--shadow), inset -1px -1px 2px var(--highlight);
}


.neu-game-card {
  border-radius: 50px 14px 50px 14px;
  background: var(--base);
  padding: 16px;
  box-shadow: 5px 5px 10px var(--shadow), -3px -3px 8px var(--highlight);
}

.neu-game-card-glass {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--glass);
  width: min(92vw, 440px);
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px 14px 50px 14px;
  padding: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  flex-direction: column;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.neu-game-card-glass {
  animation: fadeInScale 0.3s ease;
}

.neu-game-card-glass.game {
  background: rgba(0, 0, 0, 0.5);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.neu-game-row {
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: center;
  min-width: 70%;
}

.game-wood {
  color: #D2B48C;
}

.game-green {
  color: #D0F0C0;
}

.game-pink {
  color: #F4A6A6;
}

/* ═══════════════════════════════════════════════════════════════
   AVATAR  —  NeuAvatar، AvatarWithFlag
═══════════════════════════════════════════════════════════════ */
.neu-avatar {
  width: 24vh;
  border-radius: 50%;
  overflow: hidden;
  background: var(--base);
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  box-shadow: 5px 5px 10px var(--shadow), -3px -3px 8px var(--highlight);
  flex-shrink: 0;
  width: 6.5rem;
  height: 6.5rem;
}

.neu-avatar.top {
  box-shadow: 5px 5px 10px var(--shadow-top), -3px -3px 8px var(--highlight-top);
}

.neu-avatar.md {
  border: 2px solid var(--base);
  width: 5.5rem;
  height: 5.5rem;
}

.neu-avatar.sm {
  border: 2px solid var(--base);
  width: 3.5rem;
  height: 3.5rem;
}

.neu-avatar.xs {
  border: 2px solid var(--base);
  width: 2rem;
  height: 2rem;
}

.neu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}


.neu-avatar-flag {
  position: relative;
  display: inline-block;
}

.neu-avatar-flag .flag-badge {
  position: absolute;
  bottom: -2px;
  left: -2px;
  font-size: 14px;
  line-height: 1;
  border-radius: 50%;
  background: var(--base);
  padding: 2px;
  box-shadow: 2px 2px 4px var(--shadow), -1px -1px 3px var(--highlight);
}

/* ═══════════════════════════════════════════════════════════════
   TAB BAR  —  NeuTabBar
═══════════════════════════════════════════════════════════════ */
.neu-tabs {
  border-radius: var(--radius-lg);
  background: var(--base);
  overflow: hidden;
  box-shadow: 8px 8px 16px var(--shadow), -5px -5px 12px var(--highlight);
}

.neu-tab-header {
  display: flex;
}

.neu-tab-btn {
  flex: 1;
  padding: 14px 8px;
  border: none;
  background: var(--base);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
  box-shadow: 4px 4px 8px var(--shadow), -3px -3px 6px var(--highlight);
  position: relative;
}

.neu-tab-btn:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 0;
  width: 1px;
  height: 60%;
  background: var(--shadow);
  opacity: .4;
}

.neu-tab-btn.active {
  background: linear-gradient(135deg, var(--cyan-1), var(--cyan-4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: .95rem;
  font-weight: 900;
  box-shadow: inset 3px 3px 6px var(--shadow), inset -2px -2px 5px var(--highlight);
}

.neu-tab-content {
  padding: 15px;
  display: none;
}

.neu-tab-content.active {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   EXPANSION CARD  —  NeuExpansionCard + NeuInfoRow
═══════════════════════════════════════════════════════════════ */
.neu-expansion {
  border-radius: var(--radius-lg);
  background: var(--base);
  overflow: hidden;
  box-shadow: 6px 6px 12px var(--shadow), -4px -4px 10px var(--highlight);
}

.neu-expansion-noshadow {
  border-radius: var(--radius-lg);
  background: var(--base);
  overflow: hidden;
}

.neu-expansion-header {
  display: flex;
  align-items: center;
  padding: 13px 10px;
  cursor: pointer;
  user-select: none;
}

.neu-expansion-title {
  flex: 1;
}

.neu-expansion-title h4 {
  margin: 0;
  font-size: .95rem;
  color: var(--text-secondary);
}

.neu-expansion-title p {
  margin: 2px 0 0;
  font-size: .73rem;
  color: var(--text-secondary);
}

.neu-expansion-chevron {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 16px;
  box-shadow: 3px 3px 6px var(--shadow), -2px -2px 4px var(--highlight);
  transition: transform .25s, box-shadow .25s;
}

.neu-expansion.open .neu-expansion-chevron {
  transform: rotate(180deg);
  box-shadow: inset 5px 5px 10px var(--highlight), inset -4px -4px 8px var(--shadow);

}

.neu-expansion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height .3s, padding .3s;
}

.neu-expansion.open .neu-expansion-body {
  max-height: 600px;
  padding: 0 16px 16px;
}

.neu-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 0;
  font-size: .82rem;
}

.neu-info-row .label {
  color: var(--text-secondary);
  flex: 1;
  text-align: start;
}

.neu-info-row .value {
  color: var(--text-primary);
  flex: 1;
  text-align: end;
}

/* ═══════════════════════════════════════════════════════════════
   CHECKBOX  —  NeuCheckbox
═══════════════════════════════════════════════════════════════ */

.neu-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.neu-checkbox input[type="checkbox"] {
  display: flex;
  position: absolute;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.neu-checkbox .box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--base);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 8px var(--shadow), -3px -3px 6px var(--highlight);
  transition: box-shadow .2s, background .2s;
}

.neu-checkbox input:checked+.box {
  box-shadow: inset 3px 3px 6px var(--shadow), inset -2px -2px 5px var(--highlight);
}

.neu-checkbox .checkmark {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s, transform .2s;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neu-checkbox .checkmark svg {
  stroke: #0084bd;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neu-checkbox input:checked+.box .checkmark {
  opacity: 1;
  transform: scale(1);
}

.neu-checkbox .label-text {
  font-size: .9rem;
  color: var(--text-secondary);
  transition: color .2s;
}

.neu-checkbox input:checked+.box~.label-text {
  color: var(--text-primary);
  font-weight: 600;
}

.neu-checkbox.sm .box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.neu-checkbox.sm .checkmark {
  width: 12px;
  height: 12px;
}

.neu-checkbox.lg .box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.neu-checkbox.lg .checkmark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.neu-checkbox.circle .box {
  border-radius: 50%;
}

.neu-checkbox.circle .checkmark {
  border-radius: 50%;
}

.neu-checkbox.disabled {
  opacity: .45;
  cursor: not-allowed;
}

.game-pattern {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.game-pattern>canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-pattern__content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
}


.game-pattern-header {
  z-index: 10;
  position: relative;
  width: 100%;
  overflow: visible;
}

.game-pattern-header.game {
  position: absolute;
  height: 100%;
}

.game-pattern-header>canvas {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0;
}

.game-pattern-header__content {
  position: absolute;
  inset: 0;
  bottom: 10%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.game-pattern-result {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════
   COMPONENT: HeaderCurvedContainer  (simple CSS version)
   (the CustomPainter gradient curve top-bar)
═══════════════════════════════════════════════════════════ */
.header-curved {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.header-curved>canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.header-curved__content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  padding: 20px;
}

.full-screen-demo {
  height: 420px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
}

.loader {
  position: relative;
  height: 10em;
  transition: opacity .25s;
  align-items: center;
  justify-content: center;
  place-self: anchor-center;
  width: 10em;
  height: 10em;
  display: flex;
  margin: auto;
}

.track,
.inner-track {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 3px 3px 6px var(--shadow), inset -2px -2px 5px var(--highlight);
}

.inner-track {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border: 2em solid var(--highlight);
}

/* Orb element */
.orb {
  position: absolute;
  width: 1.5em;
  height: 1.5em;
  top: 50%;
  left: 50%;
  background-color: var(--cyan-4);
  border-radius: 50%;
  animation: spin 1.5s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
  background: radial-gradient(circle at 30% 30%, var(--cyan-3), var(--cyan-2));
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 -2px 4px rgba(255, 255, 255, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(90deg) translate(3em) rotate(-90deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(450deg) translate(3em) rotate(-450deg);
  }
}

/* ═══════════════════════════════════════════════════════════════
   DIALOGS  —  NeuGlassDialog، NeuGlassAlert
═══════════════════════════════════════════════════════════════ */
.neu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.neu-overlay.visible {
  z-index: 1001;
  opacity: 1;
  pointer-events: all;
}

.neu-glass-dialog {
  width: min(92vw, 440px);
  border-radius: 24px;
  background: var(--base);
  box-shadow: 0px 0px 0px var(--shadow), 0px 0px 9px var(--highlight);
  overflow: auto;
  transform: scale(.9);
  transition: transform .25s;
}

.neu-overlay.visible .neu-glass-dialog {
  transform: scale(1);
}

.neu-glass-dialog .dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}

.neu-glass-dialog .dialog-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.neu-glass-dialog .dialog-sub {
  font-size: .82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.neu-glass-dialog .dialog-divider {
  margin: 12px 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(72, 202, 228, .4), transparent);
}

.neu-glass-dialog .dialog-body {
  padding: 0 20px;
  max-height: 75vh;

}

.neu-glass-dialog .dialog-actions {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 12px 16px 20px;
  align-items: center;
}

.neu-glass-dialog .dialog-actions-wallet {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 12px 0px 0px;
  align-items: center;
}

.neu-glass-alert {
  width: min(92vw, 420px);
  background: var(--base);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: scale(.9);
  transition: transform .25s;
  overflow: hidden;
}


.neu-overlay.visible .neu-glass-alert {
  transform: scale(1);
}

.neu-glass-alert .alert-header {
  padding: 16px 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.neu-glass-alert .alert-close {
  margin-right: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  flex-shrink: 0;
}

.neu-glass-alert .alert-divider {
  margin: 10px 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(72, 202, 228, .45), transparent);
}

.neu-glass-alert .alert-body {
  padding: 0 16px;
}

.neu-glass-alert .alert-actions {
  display: flex;
  gap: 8px;
  padding: 8px 16px 20px;
}

.neu-dialog-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--base);
  box-shadow: inset 3px 3px 6px var(--shadow), inset -2px -2px 4px var(--highlight);
}

.neu-dialog-header-bar .title {
  font-size: 1rem;
  font-weight: 600;
}

.neu-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-secondary);
  box-shadow: 3px 3px 6px var(--shadow), -2px -2px 4px var(--highlight);
  flex-shrink: 0;
  transition: box-shadow .2s;
}

.neu-close-btn:active {
  box-shadow: inset 2px 2px 4px var(--shadow), inset -1px -1px 3px var(--highlight);
}

/* ═══════════════════════════════════════════════════════════════
   DROPDOWN  —  NeuDropdown
═══════════════════════════════════════════════════════════════ */
.neu-select-wrap {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--base);
  box-shadow: inset 4px 4px 8px var(--shadow), inset -3px -3px 6px var(--highlight);
}

.neu-select-wrap select {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: none;
  outline: none;
  background: transparent;
  appearance: none;
  font-size: .9rem;
  color: var(--text-primary);
  cursor: pointer;
}

.neu-select-wrap .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--accent);
  font-size: 18px;
  transition: transform .25s;
}

[dir="rtl"] .neu-select-wrap .arrow {
  left: 14px;
}

[dir="ltr"] .neu-select-wrap .arrow {
  right: 14px;
}

.neu-select-wrap:focus-within .arrow {
  transform: translateY(-50%) rotate(180deg);
}

select {
  background: var(--base);
  border: 1px solid var(--border);
}

select option {
  padding: 12px;
  background: var(--base);
  border-bottom: 1px solid var(--border-light);
}

select option:hover {
  background: linear-gradient(45deg, var(--accent), var(--accent-dark));
  color: var(--shadow);
}

select option:checked {
  background: linear-gradient(45deg, var(--accent), var(--accent-dark));
  color: var(--shadow);
  font-weight: bold;
}

.neu-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.neu-range-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.neu-range-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.neu-range-value {
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 38px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--base);
  box-shadow: inset 2px 2px 5px var(--shadow), inset -2px -2px 4px var(--highlight);
}

.neu-range-track {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  border-radius: 50px;
  background: var(--base);
  box-shadow: inset 4px 4px 8px var(--shadow), inset -3px -3px 6px var(--highlight);
  padding: 0 10px;
}

.neu-range-fill {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cyan-2), var(--cyan-4));
  pointer-events: none;
  transition: width .05s;
}

.neu-range-track input[type=range] {
  position: relative;
  z-index: 1;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  border: none;
  cursor: pointer;
  margin: 0;
}

.neu-range-track input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--base);
  box-shadow: 4px 4px 8px var(--shadow), -3px -3px 6px var(--highlight);
  border: none;
  cursor: grab;
  transition: box-shadow .2s;
}

.neu-range-track input[type=range]:active::-webkit-slider-thumb {
  cursor: grabbing;
  box-shadow: inset 3px 3px 6px var(--shadow), inset -2px -2px 5px var(--highlight);
}

.neu-range-track input[type=range]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--base);
  box-shadow: 4px 4px 8px var(--shadow), -3px -3px 6px var(--highlight);
  border: none;
  cursor: grab;
}

.neu-range-track input[type=range]::-webkit-slider-runnable-track {
  background: transparent;
}

.neu-range-track input[type=range]::-moz-range-track {
  background: transparent;
}

.neu-range-minmax {
  display: flex;
  justify-content: space-between;
  font-size: .73rem;
  color: var(--text-secondary);
  padding: 0 4px;
}


/* ═══════════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════════ */

.neu-btn-circle-card {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 5px 5px 10px #234339, -3px -3px 8px #d0f0c0;
  transition: all .2s;
}

.neu-btn-circle-card:hover {
  box-shadow: 7px 7px 14px #234339, -4px -4px 10px #d0f0c0;
}

.neu-btn-circle-card:active {
  box-shadow: inset 3px 3px 6px #234339, inset -2px -2px 5px#d0f0c0;
}

.neu-column {
  min-width: 30%;
  flex-direction: column;
}

.neu-column.game {
  min-width: 33%;
}

.neu-row {
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: space-between;
}

.neu-row-game {
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: center;
}


.neu-row.start {
  display: flex;
}

.neu-row.end {
  display: flex;
}


.card-small {
  padding: 8px;
}

.btn-small {
  padding: 10px;
  gap: 1px;
  font-size: .85rem;
}

.text-card-neu {
  white-space: nowrap;
  overflow: hidden;
  max-width: 7rem;
  text-overflow: ellipsis;
}

.text-card-neu-hash {
  overflow: hidden;
  max-width: 45vw;
}

.sunken {
  box-shadow: inset 5px 5px 10px var(--shadow), inset -4px -4px 8px var(--highlight);
}

.neu-flat {
  box-shadow: 0px 0px 0px var(--shadow), 0px 0px 0px var(--highlight)
}

.neu-raised {
  background: var(--base);
  box-shadow: 6px 6px 12px var(--shadow), -4px -4px 10px var(--highlight);
}

.neu-raised-sm {
  box-shadow: 3px 3px 6px var(--shadow), -2px -2px 5px var(--highlight);
}

.neu-raised-lg {
  box-shadow: 10px 10px 20px var(--shadow), -6px -6px 14px var(--highlight);
}

/* ═══════════════════════════════════════════════════════════════
   GRADIENTS  —  معادل NeuColors
═══════════════════════════════════════════════════════════════ */

.glass {
  background: var(--glass);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.glass-neu-result {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
}

.glass-game {
  background: rgba(0, 0, 0, 0.0);
}

.card-game {
  box-shadow: 5px 5px 10px #234339, -3px -3px 8px #d0f0c0;
}

.card-game-sunken {
  box-shadow: 4px 4px 8px #234339, -3px -3px 6px #d0f0c0;
}

.grad-center {
  background: linear-gradient(90deg, var(--base), var(--cyan-4), var(--base));
}

.grad-center-green {
  background: linear-gradient(90deg, var(--base), #2c3e2b94, var(--base))
}

.grad-light {
  background: linear-gradient(135deg, var(--cyan-1), var(--cyan-2), var(--cyan-3), var(--cyan-4));
}

.grad-dark {
  background: linear-gradient(90deg, var(--cyan-2), var(--cyan-4));
}

.grad-success {
  background: linear-gradient(135deg, #50C878, #00897B, #50C878);
}

.grad-error {
  background: linear-gradient(135deg, #FF5F5F, #C62828, #FF5F5F);
}

.grad-warning {
  background: linear-gradient(135deg, #F59E0B, #D97706, #d97706);
}

.bg-grad {
  background: var(--bs-topbar-bg);
}

.grad-light.text,
.grad-dark.text,
.grad-success.text,
.grad-warning.text,
.grad-error.text {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.neu-width {
  min-width: 90%;
}

.rc-anchor-light {
  background: var(--base) !important;
}


.domino-hands {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
}

.domino-hands .neu-radio {
  flex: 1;
}


@media (max-width: 500px) {
  .neu-expansion-header {
    padding: 7px;
  }

  .card-small {
    padding: 5px;
  }

  .btn-small {
    padding: 8px;
    gap: 1px;
    font-size: 10px;
  }

  .neu-btn-game {
    padding: 8px;
    font-size: 12px;
  }

  .neu-avatar {
    width: 3.5rem;
    height: 3.5rem;
  }

  .neu-card-account {
    padding: 0 8% 0 8%;
    box-shadow: 0px 0px 0px var(--shadow), 0px 0px 0px var(--highlight)
  }

}

@media only screen and (orientation: landscape) and (max-height: 600px) {
  .glass-neu-result {
    background: rgb(0 0 0 / 32%);
  }

  .neu-glass-dialog .dialog-body {
    overflow-y: auto;
    max-height: 65vh;
  }

  .game-pattern-header__content {
    bottom: 32%;

  }
}