.ih-events-page {
  position: relative;
  padding: 22px 0 44px;
  overflow: hidden;
}

.ih-events-page.ih-theme-light {
  background:
    radial-gradient(circle at top left, rgba(43, 141, 255, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 184, 0, 0.12), transparent 22%),
    #f4f7fb;
  color: #101826;
}

.ih-events-page.ih-theme-dark {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.18), transparent 22%),
    linear-gradient(180deg, #070b16 0%, #0c1120 100%);
  color: #edf3ff;
}

.ih-events-shell {
  position: relative;
  z-index: 2;
}

.ih-events-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.82fr);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}

.ih-events-hero__panel,
.ih-events-hero__aside,
.ih-events-games__item,
.ih-events-toolbar,
.ih-event-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 54px -34px rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
}

.ih-events-page.ih-theme-light .ih-events-hero__panel,
.ih-events-page.ih-theme-light .ih-events-hero__aside,
.ih-events-page.ih-theme-light .ih-events-games__item,
.ih-events-page.ih-theme-light .ih-events-toolbar,
.ih-events-page.ih-theme-light .ih-event-card {
  background: rgba(255, 255, 255, 0.88);
}

.ih-events-page.ih-theme-dark .ih-events-hero__panel,
.ih-events-page.ih-theme-dark .ih-events-hero__aside,
.ih-events-page.ih-theme-dark .ih-events-games__item,
.ih-events-page.ih-theme-dark .ih-events-toolbar,
.ih-events-page.ih-theme-dark .ih-event-card {
  background: rgba(9, 15, 28, 0.82);
}

.ih-events-hero__panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 26px 26px 22px;
}

.ih-events-hero__panel:before,
.ih-events-hero__panel:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
}

.ih-events-hero__panel:before {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
  background: rgba(59, 130, 246, 0.2);
}

.ih-events-hero__panel:after {
  width: 120px;
  height: 120px;
  bottom: -30px;
  left: -20px;
  background: rgba(249, 115, 22, 0.18);
}

.ih-events-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ih-events-page.ih-theme-light .ih-events-kicker {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
}

.ih-events-page.ih-theme-dark .ih-events-kicker {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.14);
}

.ih-events-hero__title {
  margin: 0;
  font-size: clamp(1.78rem, 3.5vw, 3rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ih-events-hero__title span {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #fb7185 48%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ih-events-hero__desc {
  margin: 14px 0 0;
  max-width: 680px;
  font-size: 13px;
  line-height: 1.72;
}

.ih-events-page.ih-theme-light .ih-events-hero__desc,
.ih-events-page.ih-theme-light .ih-events-hero__mini {
  color: #475569;
}

.ih-events-page.ih-theme-dark .ih-events-hero__desc,
.ih-events-page.ih-theme-dark .ih-events-hero__mini {
  color: rgba(226, 232, 240, 0.74);
}

.ih-events-hero__mini {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.6;
}

.ih-events-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ih-events-statbox {
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.ih-events-page.ih-theme-light .ih-events-statbox {
  background: rgba(248, 250, 252, 0.9);
}

.ih-events-page.ih-theme-dark .ih-events-statbox {
  background: rgba(15, 23, 42, 0.72);
}

.ih-events-statbox__label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}

.ih-events-page.ih-theme-dark .ih-events-statbox__label {
  color: rgba(191, 219, 254, 0.7);
}

.ih-events-statbox__value {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.ih-events-statbox__hint {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.5;
  color: #64748b;
}

.ih-events-page.ih-theme-dark .ih-events-statbox__hint {
  color: rgba(226, 232, 240, 0.7);
}

.ih-events-hero__aside {
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.ih-events-hero__aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ih-events-hero__aside-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.ih-events-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
}

.ih-events-pulse:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35);
  animation: ih-events-pulse 1.8s infinite;
}

@keyframes ih-events-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ih-events-featurelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ih-events-featurelist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.55;
}

.ih-events-featurelist i {
  margin-top: 4px;
  color: #38bdf8;
}

.ih-events-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(56, 189, 248, 0.1));
  color: inherit;
  font-weight: 700;
}

.ih-events-hero__cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.ih-events-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ih-events-games__item {
  position: relative;
  border-radius: 16px;
  padding: 17px 17px 15px;
  width: 100%;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}

.ih-events-games__item:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.ih-events-games__item:before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  opacity: .24;
  pointer-events: none;
}

.ih-events-games__item--tkm:before { background: #22c55e; }
.ih-events-games__item--sayi:before { background: #38bdf8; }
.ih-events-games__item--spin:before { background: #f59e0b; }

.ih-events-games__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 12px;
  font-size: 20px;
}

.ih-events-page.ih-theme-light .ih-events-games__icon {
  background: rgba(15, 23, 42, 0.06);
}

.ih-events-page.ih-theme-dark .ih-events-games__icon {
  background: rgba(148, 163, 184, 0.1);
}

.ih-events-games__title {
  display: block;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.18;
}

.ih-events-games__desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: inherit;
  opacity: .78;
}

.ih-events-games__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.ih-events-page.ih-theme-light .ih-events-games__meta {
  background: rgba(15, 23, 42, 0.06);
}

.ih-events-page.ih-theme-dark .ih-events-games__meta {
  background: rgba(148, 163, 184, 0.12);
}

.ih-events-countdot {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.45);
  animation: ih-events-pulse-red 1.6s infinite;
}

@keyframes ih-events-pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.ih-events-toolbar {
  position: sticky;
  top: 88px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.ih-events-toolbar__left,
.ih-events-toolbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ih-events-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  transition: all .2s ease;
}

.ih-events-page.ih-theme-light .ih-events-tab {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

.ih-events-page.ih-theme-dark .ih-events-tab {
  background: rgba(148, 163, 184, 0.08);
  color: #f8fafc;
}

.ih-events-tab:hover,
.ih-events-tab:focus,
.ih-events-tab.is-active {
  text-decoration: none;
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  color: #fff;
  border-color: transparent;
}

.ih-events-tab__count,
.ih-events-pillcount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.ih-events-pillcount {
  background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
}

.ih-events-page.ih-theme-light .ih-events-toolbar__note {
  color: #64748b;
}

.ih-events-page.ih-theme-dark .ih-events-toolbar__note {
  color: rgba(226, 232, 240, 0.72);
}

.ih-events-toolbar__note {
  font-size: 10px;
}

.ih-events-filter {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  box-shadow: 0 18px 30px -18px rgba(37, 99, 235, 0.7);
}

.ih-events-filter:hover,
.ih-events-filter:focus {
  transform: translateY(-1px);
}

.ih-events-filter.is-active,
.ih-events-filter:disabled {
  opacity: 1;
  cursor: default;
  background: linear-gradient(135deg, #10b981 0%, #2563eb 100%);
}

.ih-events-pagination {
  display: flex;
  justify-content: center;
  margin: 0 0 22px;
}

.ih-events-stream {
  display: grid;
  gap: 10px;
}

.ih-events-sponsor-slot {
  margin-top: -6px;
}

.ih-event-card {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
}

.ih-event-card__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.ih-event-card__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.ih-event-card:hover .ih-event-card__media img {
  transform: scale(1.05);
}

.ih-event-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.5) 0%, rgba(2, 6, 23, 0.1) 40%, rgba(2, 6, 23, 0.55) 100%);
}

.ih-event-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ih-event-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ih-event-card__badge.is-new {
  background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
  border-color: transparent;
}

.ih-event-card__badge.is-type-score { background: rgba(34, 197, 94, 0.8); border-color: transparent; }
.ih-event-card__badge.is-type-number { background: rgba(59, 130, 246, 0.85); border-color: transparent; }
.ih-event-card__badge.is-ended { background: rgba(148, 163, 184, 0.68); border-color: transparent; }

.ih-event-card__body {
  padding: 22px 22px 18px;
}

.ih-event-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ih-event-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ih-event-card__title {
  margin: 0;
  font-size: clamp(1.2rem, 1.75vw, 1.65rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ih-event-card__serial {
  color: #38bdf8;
  font-weight: 800;
}

.ih-event-card__lead {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.72;
}

.ih-events-page.ih-theme-light .ih-event-card__lead,
.ih-events-page.ih-theme-light .ih-event-card__time,
.ih-events-page.ih-theme-light .ih-event-card__stat span,
.ih-events-page.ih-theme-light .ih-event-card__note {
  color: #475569;
}

.ih-events-page.ih-theme-dark .ih-event-card__lead,
.ih-events-page.ih-theme-dark .ih-event-card__time,
.ih-events-page.ih-theme-dark .ih-event-card__stat span,
.ih-events-page.ih-theme-dark .ih-event-card__note {
  color: rgba(226, 232, 240, 0.75);
}

.ih-event-card__reward {
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 16px;
  text-align: right;
  border: 1px solid rgba(59, 130, 246, 0.14);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.08));
}

.ih-event-card__reward span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #64748b;
}

.ih-events-page.ih-theme-dark .ih-event-card__reward span {
  color: rgba(191, 219, 254, 0.72);
}

.ih-event-card__reward strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.ih-event-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ih-event-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.ih-events-page.ih-theme-light .ih-event-chip {
  background: rgba(248, 250, 252, 0.9);
}

.ih-events-page.ih-theme-dark .ih-event-chip {
  background: rgba(15, 23, 42, 0.72);
}

.ih-event-chip.is-time-live {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.2);
}

.ih-event-chip.is-time-ended {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.2);
}

.ih-event-card__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.ih-event-card__stat {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.ih-events-page.ih-theme-light .ih-event-card__stat {
  background: rgba(248, 250, 252, 0.94);
}

.ih-events-page.ih-theme-dark .ih-event-card__stat {
  background: rgba(15, 23, 42, 0.72);
}

.ih-event-card__stat span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ih-event-card__stat strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.ih-event-card__notices {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ih-event-card__notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 15px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid transparent;
}

.ih-event-card__notice i {
  margin-top: 4px;
}

.ih-event-card__notice.is-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.18);
}

.ih-event-card__notice.is-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.18);
}

.ih-event-card__notice.is-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.2);
}

.ih-event-card__notice.is-neutral {
  background: rgba(59, 130, 246, 0.09);
  border-color: rgba(59, 130, 246, 0.16);
}

.ih-event-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.ih-event-card__time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
}

.ih-event-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ih-event-card__button,
.ih-event-card__button:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
}

.ih-event-card__button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.ih-event-card__button--primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 18px 26px -18px rgba(37, 99, 235, 0.85);
}

.ih-event-card__button--muted {
  color: #fff;
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

.ih-event-card__button--success {
  color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #2563eb 100%);
}

.ih-event-card__button--outline {
  color: inherit;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.ih-events-empty {
  border-radius: 20px;
  padding: 44px 24px;
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.24);
}

.ih-events-empty__icon {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 20px;
  font-size: 28px;
  background: rgba(59, 130, 246, 0.12);
}

.ih-events-empty h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.ih-events-empty p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.72;
  color: inherit;
  opacity: .78;
}

.ih-event-modal .modal-dialog {
  max-width: 820px;
}

.ih-event-modal .modal-content {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(15, 23, 42, 0.6);
}

.ih-event-modal .modal-header,
.ih-event-modal .modal-footer {
  border: 0;
}

.ih-event-modal .modal-header {
  padding: 18px 18px 12px;
}

.ih-event-modal .modal-body {
  padding: 0 18px 12px;
}

.ih-event-modal .modal-footer {
  padding: 0 18px 18px;
}

.ih-event-modal__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}

.ih-event-modal__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
}

.ih-event-modal__close {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  border: 0;
  font-size: 18px;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.ih-event-modal .comments {
  max-height: 56vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 16px;
}

.ih-event-modal .new-comment {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ih-event-modal .new-comment img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 40px;
}

.ih-event-modal .new-comment input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
}

.ih-event-modal .new-comment button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
}

.badge-sponsor {
  background: linear-gradient(134deg, #ff7b67 -2.56%, #a855f7 49.75%, #0ea5e9 100%);
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 999px;
  color: #fff;
  z-index: 2;
}

.hidecontent {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 1199.98px) {
  .ih-events-hero {
    grid-template-columns: 1fr;
  }

  .ih-event-card__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .ih-events-games {
    grid-template-columns: 1fr;
  }

  .ih-events-toolbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .ih-events-toolbar__right {
    justify-content: space-between;
  }

  .ih-event-card {
    grid-template-columns: 1fr;
  }

  .ih-event-card__media {
    min-height: 260px;
  }
}

@media (max-width: 767.98px) {
  .ih-events-page {
    padding-top: 14px;
  }

  .ih-events-hero__panel,
  .ih-events-hero__aside,
  .ih-events-games__item,
  .ih-events-toolbar,
  .ih-event-card__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ih-events-hero__stats,
  .ih-event-card__stats {
    grid-template-columns: 1fr;
  }

  .ih-event-card__header,
  .ih-event-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ih-event-card__reward,
  .ih-event-card__actions {
    width: 100%;
  }

  .ih-event-card__actions {
    justify-content: stretch;
  }

  .ih-event-card__button {
    width: 100%;
  }
}


/* modal stack + premium compact modal fixes */
.ih-event-modal,
#tas_kagit_makas,
#sansli_sayi,
#spin_wheel { z-index: 200000 !important; }
.modal-backdrop.show { z-index: 199990 !important; }

.ih-event-modal__headgroup { min-width: 0; }
.ih-event-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ih-event-modal__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(148, 163, 184, .12);
  color: #64748b;
}
body.dark-mode .ih-event-modal__meta-item,
.ih-events-page.ih-theme-dark .ih-event-modal__meta-item {
  color: rgba(226, 232, 240, .82);
  background: rgba(148, 163, 184, .12);
}
.ih-event-modal .modal-content {
  background: rgba(255,255,255,.98);
}
body.dark-mode .ih-event-modal .modal-content,
.ih-events-page.ih-theme-dark .ih-event-modal .modal-content {
  background: rgba(9, 15, 28, .98);
  color: #e5eefc;
}
.ih-event-modal .comments {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.ih-event-modal .new-comment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}
.ih-event-modal .new-comment input {
  border-radius: 999px;
  background: rgba(148, 163, 184, .08);
}
body.dark-mode .ih-event-modal .new-comment input,
.ih-events-page.ih-theme-dark .ih-event-modal .new-comment input {
  color: #e5eefc;
  background: rgba(148, 163, 184, .09);
}
.ih-event-modal .new-comment button {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border: 0;
  color: #fff;
}
.new-comment--locked {
  display: flex !important;
  gap: 10px;
  align-items: center;
}
.new-comment--locked .btn {
  white-space: nowrap;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
}

#tas_kagit_makas .modal-dialog,
#sansli_sayi .modal-dialog,
#spin_wheel .modal-dialog {
  max-width: 1120px;
}
#tas_kagit_makas .modal-content,
#sansli_sayi .modal-content,
#spin_wheel .modal-content {
  border: 0;
  border-radius: 22px !important;
  overflow: hidden;
  background: rgba(9, 15, 28, .98);
  box-shadow: 0 28px 80px -36px rgba(15, 23, 42, .65);
}
#tas_kagit_makas .modal-body,
#sansli_sayi .modal-body,
#spin_wheel .modal-body {
  padding: 0 !important;
  margin: 0;
}
#tas_kagit_makas .close,
#sansli_sayi .close,
#spin_wheel .close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  color: #fff;
  background: rgba(15, 23, 42, .6);
}
#tas_kagit_makas .new-comment,
#sansli_sayi .new-comment,
#spin_wheel .new-comment {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  padding: 12px 18px 18px;
  margin: 0;
}
#tas_kagit_makas .new-comment input,
#sansli_sayi .new-comment input,
#spin_wheel .new-comment input {
  height: 44px;
  border-radius: 999px;
  padding: 0 14px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(148,163,184,.08);
  color: #e5eefc;
}
#tas_kagit_makas .new-comment .btn-submit-comment,
#sansli_sayi .new-comment .btn-submit-comment,
#spin_wheel .new-comment .btn-submit-comment {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
}
#tas_kagit_makas #row_sponsor_products_135,
#sansli_sayi #row_sponsor_products_140,
#spin_wheel #row_sponsor_products_150 {
  padding: 0 18px 18px;
}

@media (max-width: 991.98px) {
  }

@media (max-width: 767.98px) {
  .ih-event-modal .modal-dialog,
  #tas_kagit_makas .modal-dialog,
  #sansli_sayi .modal-dialog,
  #spin_wheel .modal-dialog {
    margin: 12px;
  }
  .ih-event-modal .modal-content,
  #tas_kagit_makas .modal-content,
  #sansli_sayi .modal-content,
  #spin_wheel .modal-content {
    border-radius: 18px !important;
  }
  .ih-event-modal .modal-header {
    padding: 16px 16px 10px;
  }
  .ih-event-modal .modal-body {
    padding: 0 16px 10px;
  }
  .ih-event-modal .modal-footer {
    padding: 0 16px 16px;
  }
  .ih-event-modal .comments {
    max-height: 52vh;
    padding: 14px;
  }
  .ih-event-modal .new-comment,
  #tas_kagit_makas .new-comment,
  #sansli_sayi .new-comment,
  #spin_wheel .new-comment {
    grid-template-columns: 36px minmax(0, 1fr) 40px;
    gap: 8px;
  }
  .new-comment--locked {
    flex-direction: column;
    align-items: stretch;
  }
}

/* final scale tune */
.ih-events-hero { gap: 14px; margin-bottom: 16px; }
.ih-events-hero__aside { padding: 22px; }
.ih-events-hero__desc { font-size: 14px; line-height: 1.68; }
.ih-events-hero__mini { font-size: 12px; }
.ih-events-statbox__label,
.ih-events-statbox__hint { font-size: 11px; }
.ih-events-games__title { font-size: 18px; }
.ih-events-games__meta { font-size: 11px; }
.ih-events-toolbar { padding: 12px 14px; }
.ih-events-tab,
.ih-events-toolbar__note,
.ih-events-sort { font-size: 12px; }
.ih-event-card__lead { margin-top: 12px; font-size: 14px; line-height: 1.64; }
.ih-event-card__reward strong { font-size: 22px; }
.ih-event-chip,
.ih-event-card__stat span,
.ih-event-card__time { font-size: 11px; }
.ih-event-card__stat strong,
.ih-event-card__notice,
.ih-event-card__note { font-size: 13px; }
.ih-event-card__button,
.ih-event-card__button:focus { min-height: 42px; font-size: 12px; padding: 10px 14px; }
.ih-event-modal .new-comment img { flex: 0 0 38px; }
.ih-event-modal__close { cursor: pointer; }
#tas_kagit_makas .close,
#sansli_sayi .close,
#spin_wheel .close { cursor: pointer; }

@media (max-width: 767.98px) {
  .ih-events-hero__title { font-size: clamp(1.56rem, 9vw, 2.15rem); }
  .ih-events-hero__desc { font-size: 13px; }
  .ih-events-games__title { font-size: 17px; }
  .ih-event-card__title { font-size: 1.18rem; }
  .ih-event-card__lead { font-size: 13px; }
  .ih-event-card__button,
  .ih-event-card__button:focus { font-size: 12px; }
}

/* === Patch v4: özel modal sistemi + sponsor/oyun birleşik tasarım === */
html.ih-modal-open,
body.ih-modal-open {
  overflow: hidden !important;
}

.ih-events-games-wrap {
  margin-bottom: 14px;
}

.ih-events-games-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
}

.ih-events-games-intro__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #38bdf8;
}

.ih-events-games-intro__title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 800;
}

.ih-events-games-intro__desc {
  margin: 6px 0 0;
  max-width: 760px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(226,232,240,.7);
}

.ih-events-games-intro__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ih-events-games-intro__chips span,
.ihx-modal__pills span,
.ihx-sponsor-modal__chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(15,23,42,.45);
  font-size: 11px;
  font-weight: 700;
}

.ihx-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 300000;
}

.ihx-modal.is-open {
  display: block;
}

.ihx-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,8,20,.78);
  backdrop-filter: blur(7px);
}

.ihx-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(100% - 28px, 1100px);
  max-height: calc(100vh - 32px);
  margin: 16px auto;
}

.ihx-modal__dialog--game { width: min(100% - 28px, 1240px); }
.ihx-modal__dialog--xl { width: min(100% - 28px, 1180px); }
.ihx-modal__dialog--lg { width: min(100% - 28px, 980px); }

.ihx-modal__surface {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,.16);
  background: radial-gradient(circle at top right, rgba(59,130,246,.12), transparent 22%), linear-gradient(180deg, rgba(7,12,24,.98), rgba(11,17,31,.96));
  box-shadow: 0 26px 70px -40px rgba(0,0,0,.85);
}

.ihx-modal__surface:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(245,158,11,.08), transparent 30%, transparent 70%, rgba(56,189,248,.08));
  pointer-events: none;
}

.ihx-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: rgba(15,23,42,.84);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ihx-modal__header {
  position: relative;
  z-index: 2;
  padding: 22px 24px 14px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}

.ihx-modal__header--compact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.ihx-modal__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f59e0b;
}

.ihx-modal__title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #f8fafc;
}

.ihx-modal__split,
.ihx-game-modal__layout,
.ihx-sponsor-modal {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 0;
}

.ihx-modal__aside,
.ihx-game-modal__stage {
  border-right: 1px solid rgba(148,163,184,.12);
  padding: 22px;
}

.ihx-modal__main,
.ihx-game-modal__side,
.ihx-sponsor-modal__content {
  padding: 22px;
}

.ihx-event-preview-card,
.ihx-sponsor-modal__media,
.ih-sponsor-card__surface {
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 20px;
  background: rgba(15,23,42,.44);
  overflow: hidden;
}

.ihx-event-preview-card__media,
.ihx-sponsor-modal__media {
  position: relative;
}

.ihx-event-preview-card__media img,
.ihx-sponsor-modal__media img,
.ih-sponsor-card__media img {
  display: block;
  width: 100%;
  height: auto;
}

.ihx-event-preview-card__badge,
.ih-sponsor-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(7,12,24,.86);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ihx-event-preview-card__body {
  padding: 16px;
}

.ihx-event-preview-card__body h4,
.ih-sponsor-card__top h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
}

.ihx-event-preview-card__body p,
.ihx-thread-head p,
.ihx-sponsor-modal__desc,
.ih-sponsor-card__shop {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.72;
  color: rgba(226,232,240,.74);
}

.ihx-event-preview-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ihx-event-preview-card__grid div,
.ih-sponsor-card__tags span {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(7,12,24,.5);
}

.ihx-event-preview-card__grid span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(191,219,254,.72);
}

.ihx-event-preview-card__grid strong {
  font-size: 13px;
  color: #f8fafc;
}

.ihx-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ihx-thread-head strong {
  display: block;
  font-size: 16px;
  color: #f8fafc;
}

.ihx-thread-head__count {
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(56,189,248,.18));
  border: 1px solid rgba(148,163,184,.14);
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}

.ihx-thread-body {
  max-height: 440px;
  overflow: auto;
  padding-right: 4px;
}

.ihx-thread-compose {
  margin-top: 14px;
}

.ihx-thread-compose .new-comment,
.ihx-game-modal__side .new-comment,
.ihx-modal__main .new-comment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(7,12,24,.5);
}

.ihx-thread-compose .new-comment img,
.ihx-game-modal__side .new-comment img,
.ihx-modal__main .new-comment img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 40px;
}

.ihx-thread-compose .new-comment input,
.ihx-game-modal__side .new-comment input,
.ihx-modal__main .new-comment input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(15,23,42,.84);
  color: #f8fafc;
  border-radius: 14px;
  padding: 0 14px;
}

.ihx-thread-compose .btn-submit-comment,
.ihx-game-modal__side .btn-submit-comment,
.ihx-modal__main .btn-submit-comment {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  border: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ihx-modal__footerband {
  position: relative;
  z-index: 2;
  padding: 0 22px 22px;
}

.ihx-game-modal .game_container,
.ihx-game-modal .game_container2 {
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(7,12,24,.5);
  padding: 18px;
}

.ihx-game-modal .result,
.ihx-game-modal .guess,
.ihx-game-modal .guess2,
.ihx-game-modal .time,
.ihx-game-modal p,
.ihx-game-modal .result_field header {
  color: #dbeafe;
}

.ihx-game-modal #spin_the_wheel {
  max-width: 460px;
  margin: 0 auto;
}

.ihx-game-modal #wheel {
  width: 100%;
  height: auto;
}

.ih-sponsor-card {
  margin: 12px 0 18px;
}

.ih-sponsor-card__surface {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
}

.ih-sponsor-card__media {
  position: relative;
  background: rgba(7,12,24,.7);
}

.ih-sponsor-card__body {
  padding: 18px;
}

.ih-sponsor-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ih-sponsor-card__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f59e0b;
}

.ih-sponsor-card__price {
  font-size: 28px;
  line-height: 1;
  color: #f8fafc;
}

.ih-sponsor-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ih-sponsor-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ih-sponsor-card__actions,
.ihx-sponsor-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ihx-sponsor-modal__rating {
  margin-bottom: 10px;
}

.ihx-sponsor-modal__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ihx-sponsor-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* override old bootstrap modal styling in this page */
.ihx-modal .comment-list {
  background: transparent !important;
}

.ihx-modal .comments2,
.ihx-modal .comments {
  background: transparent !important;
}

.ihx-modal .no-comments-found {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: rgba(15,23,42,.48);
  border: 1px dashed rgba(148,163,184,.18);
  color: rgba(226,232,240,.78);
}

.ihx-modal .comment-list > li {
  border-bottom: 1px solid rgba(148,163,184,.08);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.ihx-modal .comment-list > li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.ihx-modal .comment-list .right {
  min-width: 0;
}

.ihx-modal .comment-list .username,
.ihx-modal .comment-list .comment,
.ihx-modal .comment-list .date,
.ihx-modal .comment-list .btn-reply,
.ihx-modal .comment-list .btn-delete-comment,
.ihx-modal .comment-list .like-content,
.ihx-modal .comment-list .show-more a {
  color: #dbeafe !important;
}

.ihx-modal .comment-list .date {
  opacity: .65;
}

.ihx-modal .btn-reply,
.ihx-modal .btn-delete-comment {
  background: transparent;
  border: 0;
  padding: 0 8px 0 0;
  font-size: 12px;
}

.ihx-modal .hidecontent {
  max-height: 44px;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .ih-events-games-intro,
  .ihx-modal__header--compact,
  .ihx-modal__split,
  .ihx-game-modal__layout,
  .ihx-sponsor-modal,
  .ih-sponsor-card__surface {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ih-events-games-intro {
    display: block;
  }

  .ih-events-games-intro__chips {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .ihx-modal__aside,
  .ihx-game-modal__stage {
    border-right: 0;
    border-bottom: 1px solid rgba(148,163,184,.12);
  }

  .ihx-modal__dialog,
  .ihx-modal__dialog--xl,
  .ihx-modal__dialog--lg,
  .ihx-modal__dialog--game {
    width: min(100% - 16px, 100%);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
  }

  .ihx-modal__surface {
    border-radius: 20px;
  }

  .ihx-thread-body {
    max-height: 320px;
  }

  .ih-sponsor-card__media img {
    width: 100%;
    height: 210px;
    object-fit: cover;
  }
}

@media (max-width: 575.98px) {
  .ihx-modal__header,
  .ihx-modal__aside,
  .ihx-modal__main,
  .ihx-game-modal__stage,
  .ihx-game-modal__side,
  .ihx-modal__footerband,
  .ih-sponsor-card__body {
    padding: 16px;
  }

  .ihx-thread-compose .new-comment,
  .ihx-game-modal__side .new-comment,
  .ihx-modal__main .new-comment {
    gap: 8px;
    padding: 10px;
  }

  .ihx-thread-compose .new-comment img,
  .ihx-game-modal__side .new-comment img,
  .ihx-modal__main .new-comment img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .ihx-thread-compose .new-comment input,
  .ihx-game-modal__side .new-comment input,
  .ihx-modal__main .new-comment input {
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .ihx-thread-compose .btn-submit-comment,
  .ihx-game-modal__side .btn-submit-comment,
  .ihx-modal__main .btn-submit-comment {
    width: 40px;
    height: 40px;
  }

  .ih-events-games__item {
    min-height: 110px;
  }
}

/* ===== v5 modal alignment and composition fixes ===== */
.ihx-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ihx-modal__header > div:first-child {
  min-width: 0;
}

.ihx-modal__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 46%;
}

.ihx-modal__pills span,
.ihx-sponsor-modal__chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(9,15,28,.72);
  font-size: 11px;
  font-weight: 700;
  color: rgba(241,245,249,.92);
  line-height: 1;
}

.ihx-modal__title {
  max-width: 100%;
}

.ihx-modal__split {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
}

.ihx-modal__aside,
.ihx-modal__main,
.ihx-game-modal__stage,
.ihx-game-modal__side {
  min-width: 0;
}

.ihx-modal__aside,
.ihx-game-modal__stage {
  display: flex;
  align-items: stretch;
}

.ihx-game-modal__layout {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  align-items: stretch;
}

.ihx-game-modal__stage,
.ihx-game-modal__side {
  min-height: 0;
}

.ihx-game-modal__side,
.ihx-modal__main {
  display: flex;
  flex-direction: column;
}

.ihx-thread-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.ihx-thread-head {
  align-items: center;
}

.ihx-thread-head > div {
  min-width: 0;
}

.ihx-thread-head__count {
  flex: 0 0 auto;
}

.ihx-event-preview-card,
.ihx-game-modal .game_container,
.ihx-game-modal .game_container2 {
  width: 100%;
}

.ihx-event-preview-card__media {
  aspect-ratio: 1 / 0.92;
}

.ihx-event-preview-card__media img {
  height: 100%;
  object-fit: cover;
}

.ihx-event-preview-card__body h4 {
  font-size: 22px;
  line-height: 1.18;
}

.ihx-game-modal .game_container,
.ihx-game-modal .game_container2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 20px;
}

.ihx-game-modal .result_field {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}

.ihx-game-modal .result {
  text-align: center;
  font-size: clamp(24px, 2.3vw, 38px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0;
}

.ihx-game-modal .result_images {
  gap: 14px;
}

.ihx-game-modal .user_result,
.ihx-game-modal .cpu_result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 22px;
  padding: 18px 14px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(8,14,26,.62);
}

.ihx-game-modal .user_result img,
.ihx-game-modal .cpu_result img {
  width: min(100%, 132px);
  height: auto;
}

.ihx-game-modal .option_images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ihx-game-modal .option_image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(8,14,26,.58);
}

.ihx-game-modal .option_image p,
.ihx-game-modal .user_result p,
.ihx-game-modal .cpu_result p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.ihx-game-modal .wrapper_cont {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.ihx-game-modal .wrapper_cont header {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 28px);
  line-height: 1.4;
  font-weight: 800;
}

.ihx-game-modal .guess,
.ihx-game-modal .guess2 {
  margin: 0;
  max-width: 300px;
  text-align: center;
  font-size: 13px;
}

.ihx-game-modal .input-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 280px);
}

.ihx-game-modal .input-field input,
.ihx-game-modal .input-field button,
.ihx-game-modal #spin,
.ihx-game-modal #spin2 {
  height: 44px;
  border-radius: 14px;
}

.ihx-game-modal .input-field input {
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.94);
}

.ihx-game-modal .input-field button {
  padding: 0 18px;
  border: 0;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
}

.ihx-game-modal #spin_the_wheel {
  width: min(100%, 440px);
}

.ihx-modal__footerband {
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,.12);
  background: linear-gradient(180deg, rgba(7,12,24,0) 0%, rgba(7,12,24,.44) 100%);
}

.ihx-modal__footerband .load-more-spinner {
  margin-bottom: 12px;
}

.ihx-modal__footerband .ih-sponsor-card {
  margin: 0;
}

.ihx-modal__footerband .ih-sponsor-card__surface {
  grid-template-columns: 136px minmax(0, 1fr);
  border-radius: 18px;
}

.ihx-modal__footerband .ih-sponsor-card__media img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
}

.ih-sponsor-card__body {
  min-width: 0;
}

.ih-sponsor-card__top {
  align-items: flex-start;
}

.ih-sponsor-card__top > div {
  min-width: 0;
}

.ih-sponsor-card__top h3 {
  font-size: 20px;
  line-height: 1.25;
}

.ih-sponsor-card__price {
  flex: 0 0 auto;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.ih-sponsor-card__meta {
  align-items: center;
}

.ih-sponsor-card__actions .ih-event-card__button {
  min-height: 42px;
}

.ihx-sponsor-modal {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: stretch;
}

.ihx-sponsor-modal__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: radial-gradient(circle at top left, rgba(245,158,11,.14), transparent 34%), rgba(7,12,24,.58);
}

.ihx-sponsor-modal__media img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.03);
}

.ihx-sponsor-modal__content {
  justify-content: flex-start;
  gap: 14px;
}

.ihx-sponsor-modal__rating {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 0;
}

.ihx-sponsor-modal__desc {
  margin: 0;
  max-width: 560px;
}

.ihx-sponsor-modal__actions .ih-event-card__button {
  min-height: 44px;
}

.ihx-modal .ih-comment-stack {
  display: grid;
  gap: 14px;
}

.ihx-modal .ih-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ihx-modal .ih-comment-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148,163,184,.08);
}

.ihx-modal .ih-comment-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ihx-modal .ih-comment-item__avatar {
  align-self: start;
}

.ihx-modal .ih-comment-item__avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.ihx-modal .ih-comment-item__body {
  min-width: 0;
}

.ihx-modal .ih-comment-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.ihx-modal .ih-comment-item__identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ihx-modal .ih-comment-item .username {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.ihx-modal .ih-comment-item .username a {
  color: inherit;
}

.ihx-modal .ih-comment-item .comment {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
  white-space: pre-wrap;
  word-break: break-word;
}

.ihx-modal .ih-comment-item .date {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
}

.ihx-modal .show-more {
  margin-top: 8px;
}

.ihx-modal .ih-comment-item__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ihx-modal .btn-reply,
.ihx-modal .btn-delete-comment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.ihx-modal .btn-reply:disabled {
  opacity: .55;
}

.ihx-modal .like-content {
  gap: 6px;
}

.ihx-modal .like-btn {
  margin: 0;
}

.ihx-modal .ih-comment-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(245,158,11,.12);
  color: #fbbf24;
  font-size: 11px;
}

.ihx-modal .row-sub-comment {
  margin-top: 10px;
}

.ih-subcomment-stack {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 1px solid rgba(148,163,184,.12);
}

.ihx-modal .ih-comment-list--sub {
  gap: 10px;
  max-height: 180px;
  overflow: auto;
  padding-right: 6px;
}

.ihx-modal .ih-comment-item--sub {
  grid-template-columns: 36px minmax(0, 1fr);
  padding-bottom: 10px;
}

.ihx-modal .ih-comment-item--sub .ih-comment-item__avatar img {
  width: 36px;
  height: 36px;
}

.ih-subcomment-form {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(7,12,24,.42);
}

.ih-subcomment-form .form-control {
  border-radius: 12px;
}

.ih-subcomment-form textarea {
  min-height: 92px;
  resize: vertical;
}

.ih-subcomment-form__actions {
  display: flex;
  justify-content: flex-end;
}

.ih-comment-stack .btn-load-more {
  align-self: flex-start;
}

@media (max-width: 1199.98px) {
  .ihx-modal__pills {
    max-width: 52%;
  }

  .ihx-game-modal__layout {
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .ihx-modal__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ihx-modal__pills {
    justify-content: flex-start;
    max-width: 100%;
  }

  .ihx-modal__split,
  .ihx-game-modal__layout,
  .ihx-sponsor-modal,
  .ihx-modal__header--compact {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ihx-thread-body {
    max-height: 340px;
  }

  .ihx-modal__footerband .ih-sponsor-card__surface {
    grid-template-columns: 1fr;
  }

  .ihx-modal__footerband .ih-sponsor-card__media img {
    min-height: 200px;
  }
}

@media (max-width: 575.98px) {
  .ihx-modal__surface {
    border-radius: 18px;
  }

  .ihx-thread-head {
    align-items: flex-start;
  }

  .ihx-thread-head__count {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
  }

  .ihx-game-modal .option_images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .ihx-game-modal .option_image {
    padding: 12px 8px;
  }

  .ihx-modal .ih-comment-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .ihx-modal .ih-comment-item__avatar img {
    width: 40px;
    height: 40px;
  }

  .ihx-modal .ih-comment-item__actions {
    gap: 10px;
  }

  .ih-subcomment-stack {
    padding-left: 10px;
  }
}

/* ===== v9 modal header hierarchy + sponsor modal/footer refinement ===== */
.ihx-modal--game .ihx-modal__header,
.ihx-modal--comments .ihx-modal__header,
.ihx-modal--sponsor .ihx-modal__header {
  display: block;
  padding: 22px 86px 16px 24px;
}

.ihx-modal--game .ihx-modal__title,
.ihx-modal--comments .ihx-modal__title,
.ihx-modal--sponsor .ihx-modal__title {
  max-width: 920px;
}

.ihx-modal--game .ihx-modal__pills,
.ihx-modal--comments .ihx-modal__pills,
.ihx-modal--sponsor .ihx-modal__pills {
  margin-top: 14px;
  max-width: none;
  justify-content: flex-start;
}

.ihx-modal--game .ihx-modal__close,
.ihx-modal--comments .ihx-modal__close,
.ihx-modal--sponsor .ihx-modal__close {
  top: 16px;
  right: 16px;
}

@media (min-width: 1200px) {
  .ihx-modal--game .ihx-game-modal__layout {
    grid-template-columns: minmax(560px, 1.34fr) minmax(320px, .86fr);
  }
}

@media (min-width: 1400px) {
  .ihx-modal--game .ihx-game-modal__layout {
    grid-template-columns: minmax(620px, 1.42fr) minmax(340px, .82fr);
  }
}

.ihx-modal--game .ihx-game-modal__stage {
  padding-right: 28px;
}

.ihx-modal--game .ihx-game-modal__side {
  padding-left: 18px;
}

.ihx-modal__footerband {
  padding-top: 16px;
}

.ihx-modal__footerband .ih-sponsor-card {
  width: 100%;
}

.ihx-modal__footerband .ih-sponsor-card__surface {
  width: 100%;
  grid-template-columns: 190px minmax(0, 1fr);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(8, 14, 28, .88), rgba(13, 22, 40, .96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 18px 38px -28px rgba(0,0,0,.85);
}

.ihx-modal__footerband .ih-sponsor-card__media {
  min-height: 100%;
  background: radial-gradient(circle at top left, rgba(56,189,248,.14), transparent 36%), rgba(7,12,24,.72);
}

.ihx-modal__footerband .ih-sponsor-card__media img {
  min-height: 210px;
  object-fit: cover;
}

.ih-sponsor-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
}

.ih-sponsor-card__content {
  min-width: 0;
}

.ih-sponsor-card__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.ih-sponsor-card__pricebox,
.ihx-sponsor-modal__pricebox {
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(180deg, rgba(18, 30, 53, .96), rgba(12, 21, 38, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  padding: 14px 16px;
}

.ih-sponsor-card__pricebox span,
.ihx-sponsor-modal__pricebox span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(148,163,184,.88);
}

.ih-sponsor-card__pricebox strong,
.ihx-sponsor-modal__pricebox strong {
  display: block;
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: #f8fafc;
}

.ih-sponsor-card__top,
.ih-sponsor-card__price {
  display: block;
}

.ih-sponsor-card__top {
  gap: 0;
}

.ih-sponsor-card__top h3,
.ih-sponsor-card__content h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  line-height: 1.28;
}

.ihx-modal__footerband .ih-sponsor-card__content h3 {
  font-size: clamp(1.18rem, 1.55vw, 1.62rem);
}

.ih-sponsor-card__meta {
  margin-top: 10px;
}

.ih-sponsor-card__tags {
  margin-top: 14px;
}

.ih-sponsor-card__actions {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ihx-modal__footerband .ih-sponsor-card__actions {
  align-self: flex-end;
}

.ih-sponsor-card__actions .ih-event-card__button {
  width: 100%;
  justify-content: center;
}

.ihx-sponsor-modal__content {
  gap: 16px;
}

.ihx-sponsor-modal__eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f59e0b;
}

.ihx-sponsor-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ihx-sponsor-modal__shopline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(226,232,240,.78);
  font-size: 13px;
  font-weight: 600;
}

.ihx-sponsor-modal__shopline i {
  color: rgba(96,165,250,.92);
}

.ihx-sponsor-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ihx-sponsor-modal__actions .ih-event-card__button {
  min-width: 180px;
}

@media (max-width: 1199.98px) {
  .ih-sponsor-card__body {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .ihx-modal__footerband .ih-sponsor-card__surface {
    grid-template-columns: 170px minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .ihx-modal--game .ihx-modal__header,
  .ihx-modal--comments .ihx-modal__header,
  .ihx-modal--sponsor .ihx-modal__header {
    padding-right: 76px;
  }

  .ih-sponsor-card__body,
  .ihx-modal__footerband .ih-sponsor-card__body {
    grid-template-columns: 1fr;
  }

  .ih-sponsor-card__aside,
  .ihx-modal__footerband .ih-sponsor-card__aside {
    width: 100%;
  }

  .ih-sponsor-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ihx-modal__footerband .ih-sponsor-card__surface,
  .ih-sponsor-card__surface {
    grid-template-columns: 1fr;
  }

  .ihx-modal__footerband .ih-sponsor-card__media img,
  .ih-sponsor-card__media img {
    min-height: 220px;
  }
}

@media (max-width: 575.98px) {
  .ihx-modal--game .ihx-modal__header,
  .ihx-modal--comments .ihx-modal__header,
  .ihx-modal--sponsor .ihx-modal__header {
    padding: 18px 70px 14px 18px;
  }

  .ih-sponsor-card__actions {
    grid-template-columns: 1fr;
  }

  .ihx-modal__footerband {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
  }
}

/* ===== v10 rebuild: modal hierarchy, sponsor footer, comments density, mobile stability ===== */
html.ih-modal-open,
body.ih-modal-open {
  overflow: hidden !important;
  overscroll-behavior: contain;
}

.ihx-modal {
  z-index: 2147483000;
  padding: 14px;
}

.ihx-modal__backdrop {
  position: fixed;
}

.ihx-modal__dialog {
  max-height: calc(100dvh - 28px);
  margin: 0 auto;
}

.ihx-modal__dialog--game {
  width: min(100%, 1320px);
}

.ihx-modal__dialog--xl {
  width: min(100%, 1220px);
}

.ihx-modal__dialog--lg {
  width: min(100%, 1080px);
}

.ihx-modal__surface {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 28px);
}

.ihx-modal__header {
  padding: 20px 84px 14px 24px;
}

.ihx-modal__header--compact {
  display: block;
}

.ihx-modal__eyebrow {
  margin-bottom: 10px;
}

.ihx-modal__title {
  line-height: 1.16;
}

.ihx-modal__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  max-width: none;
  justify-content: flex-start;
}

.ihx-modal__close {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
}

.ihx-modal--comments .ihx-modal__split {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: stretch;
}

.ihx-modal--comments .ihx-modal__aside,
.ihx-modal--comments .ihx-modal__main {
  min-height: 0;
}

.ihx-modal--comments .ihx-modal__main {
  display: flex;
  flex-direction: column;
}

.ihx-modal--comments .ihx-thread-body {
  min-height: 340px;
  max-height: none;
}

.ihx-modal--game .ihx-game-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, .72fr);
  align-items: stretch;
}

.ihx-modal--game .ihx-game-modal__stage,
.ihx-modal--game .ihx-game-modal__side {
  min-width: 0;
  min-height: 0;
}

.ihx-modal--game .ihx-game-modal__stage {
  padding: 22px 26px 22px 24px;
  border-right: 1px solid rgba(148,163,184,.12);
}

.ihx-modal--game .ihx-game-modal__side {
  padding: 22px 24px 22px 18px;
  display: flex;
  flex-direction: column;
}

.ihx-modal--game .game_container,
.ihx-modal--game .game_container2 {
  min-height: 520px;
  height: 100%;
  padding: 22px;
  border-radius: 24px;
}

.ihx-modal--game .result_field {
  gap: 22px;
}

.ihx-modal--game .result {
  font-size: clamp(22px, 2.2vw, 42px);
}

.ihx-modal--game .result_images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ihx-modal--game .user_result,
.ihx-modal--game .cpu_result {
  min-height: 200px;
  padding: 20px 16px;
}

.ihx-modal--game .user_result img,
.ihx-modal--game .cpu_result img {
  width: min(100%, 150px);
}

.ihx-modal--game .option_images {
  margin-top: 20px;
  gap: 12px;
}

.ihx-modal--game .option_image {
  min-height: 110px;
}

.ihx-modal--game .wrapper_cont {
  min-height: 100%;
}

.ihx-modal--game #spin_the_wheel {
  width: min(100%, 500px);
}

.ihx-modal--game .ihx-thread-head {
  margin-bottom: 12px;
}

.ihx-modal--game .ihx-thread-head strong,
.ihx-modal--comments .ihx-thread-head strong {
  font-size: 18px;
}

.ihx-modal--game .ihx-thread-head p,
.ihx-modal--comments .ihx-thread-head p {
  margin-top: 6px;
}

.ihx-modal--game .ihx-thread-body,
.ihx-modal--comments .ihx-thread-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

.ihx-modal--game .ihx-thread-compose,
.ihx-modal--comments .ihx-thread-compose {
  margin-top: 14px;
}

.ihx-modal__footerband {
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(148,163,184,.10);
  background: linear-gradient(180deg, rgba(7,12,24,0) 0%, rgba(7,12,24,.42) 100%);
}

.ihx-modal__footerband .load-more-spinner {
  margin: 0 0 12px;
}

.ihx-modal__footerband .ih-sponsor-card {
  width: 100%;
  margin: 0;
}

.ihx-modal__footerband .ih-sponsor-card__surface,
.ih-sponsor-card__surface {
  width: 100%;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  align-items: stretch;
  border-radius: 22px;
}

.ihx-modal__footerband .ih-sponsor-card__surface {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 20px 44px -30px rgba(0,0,0,.78);
  background: linear-gradient(135deg, rgba(8,14,28,.88), rgba(13,22,40,.96));
}

.ih-sponsor-card__media {
  min-height: 100%;
}

.ih-sponsor-card__media img,
.ihx-modal__footerband .ih-sponsor-card__media img {
  width: 100%;
  height: 100%;
  min-height: 214px;
  object-fit: cover;
}

.ih-sponsor-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: center;
  padding: 18px 18px 18px 20px;
}

.ih-sponsor-card__content,
.ih-sponsor-card__aside {
  min-width: 0;
}

.ih-sponsor-card__content h3 {
  margin: 0;
  font-size: clamp(1.16rem, 1.5vw, 1.52rem);
  line-height: 1.28;
  color: #f8fafc;
}

.ih-sponsor-card__meta {
  margin-top: 12px;
  gap: 10px;
}

.ih-sponsor-card__shop {
  font-size: 12px;
  line-height: 1.5;
}

.ih-sponsor-card__tags {
  margin-top: 14px;
  gap: 8px;
}

.ih-sponsor-card__tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(7,12,24,.52);
  color: rgba(241,245,249,.94);
  font-size: 11px;
  font-weight: 700;
}

.ih-sponsor-card__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.ih-sponsor-card__pricebox,
.ihx-sponsor-modal__pricebox {
  border-radius: 18px;
  padding: 14px 16px;
}

.ih-sponsor-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ih-sponsor-card__actions .ih-event-card__button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.ihx-sponsor-modal {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: stretch;
}

.ihx-sponsor-modal__media {
  padding: 22px;
}

.ihx-sponsor-modal__media img {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ihx-sponsor-modal__content {
  padding: 4px 24px 24px 6px;
  gap: 14px;
}

.ihx-sponsor-modal__topbar {
  align-items: stretch;
}

.ihx-sponsor-modal__shopline {
  min-width: 0;
}

.ihx-sponsor-modal__desc {
  max-width: 640px;
  line-height: 1.7;
}

.ihx-sponsor-modal__chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(7,12,24,.52);
  color: rgba(241,245,249,.94);
  font-size: 11px;
  font-weight: 700;
}

.ihx-sponsor-modal__actions {
  margin-top: 4px;
}

.ihx-sponsor-modal__actions .ih-event-card__button {
  min-width: 190px;
  min-height: 44px;
}

.ihx-modal .ih-comment-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ihx-modal .ih-comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ihx-modal .ih-comment-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid rgba(148,163,184,.08);
}

.ihx-modal .ih-comment-item__avatar img {
  width: 42px;
  height: 42px;
}

.ihx-modal .ih-comment-item__top {
  margin: 0 0 4px;
  gap: 6px 10px;
  align-items: center;
}

.ihx-modal .ih-comment-item__identity {
  gap: 6px;
}

.ihx-modal .ih-comment-item .username {
  font-size: 13px;
}

.ihx-modal .ih-comment-item .date {
  white-space: nowrap;
  font-size: 10px;
  opacity: .7;
}

.ihx-modal .ih-comment-item .comment {
  margin: 0;
  font-size: 13px;
  line-height: 1.56;
}

.ihx-modal .show-more {
  margin-top: 6px;
}

.ihx-modal .ih-comment-item__actions {
  gap: 10px;
  margin-top: 8px;
}

.ihx-modal .btn-reply,
.ihx-modal .btn-delete-comment,
.ihx-modal .like-content-text {
  font-size: 11px;
}

.ihx-modal .btn-reply,
.ihx-modal .btn-delete-comment {
  padding-right: 0;
}

.ih-subcomment-stack {
  margin-top: 10px;
  padding-left: 12px;
}

.ihx-modal .ih-comment-list--sub {
  max-height: 160px;
}

.ihx-modal .ih-comment-item--sub {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
}

.ihx-modal .ih-comment-item--sub .ih-comment-item__avatar img {
  width: 34px;
  height: 34px;
}

.ih-subcomment-form {
  margin-top: 8px;
}

.ihx-modal .btn-load-more {
  margin-top: 2px;
}

@media (max-width: 1199.98px) {
  .ihx-modal--game .ihx-game-modal__layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  }

  .ih-sponsor-card__body {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
}

@media (max-width: 991.98px) {
  .ihx-modal {
    padding: 8px;
  }

  .ihx-modal__dialog,
  .ihx-modal__dialog--game,
  .ihx-modal__dialog--xl,
  .ihx-modal__dialog--lg {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .ihx-modal__surface {
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .ihx-modal__header {
    padding: 18px 72px 14px 18px;
  }

  .ihx-modal--comments .ihx-modal__split,
  .ihx-modal--game .ihx-game-modal__layout,
  .ihx-sponsor-modal {
    grid-template-columns: 1fr;
  }

  .ihx-modal--game .ihx-game-modal__stage,
  .ihx-modal--game .ihx-game-modal__side,
  .ihx-modal--comments .ihx-modal__aside,
  .ihx-modal--comments .ihx-modal__main {
    padding: 16px 18px;
    border-right: 0;
  }

  .ihx-modal--game .ihx-game-modal__stage,
  .ihx-modal--comments .ihx-modal__aside {
    border-bottom: 1px solid rgba(148,163,184,.12);
  }

  .ihx-modal--game .game_container,
  .ihx-modal--game .game_container2 {
    min-height: 0;
    padding: 18px;
  }

  .ihx-modal--game .result {
    font-size: clamp(20px, 6vw, 32px);
  }

  .ihx-modal--game .user_result,
  .ihx-modal--game .cpu_result {
    min-height: 150px;
  }

  .ihx-modal--game .ihx-thread-body,
  .ihx-modal--comments .ihx-thread-body {
    min-height: 0;
    max-height: 240px;
  }

  .ihx-modal__footerband {
    padding: 16px 18px 18px;
  }

  .ih-sponsor-card__surface,
  .ihx-modal__footerband .ih-sponsor-card__surface,
  .ihx-sponsor-modal {
    grid-template-columns: 1fr;
  }

  .ih-sponsor-card__media img,
  .ihx-modal__footerband .ih-sponsor-card__media img,
  .ihx-sponsor-modal__media img {
    min-height: 220px;
    max-height: 320px;
  }

  .ih-sponsor-card__body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .ih-sponsor-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ihx-sponsor-modal__content {
    padding: 0 18px 18px;
  }

  .ihx-sponsor-modal__actions .ih-event-card__button {
    min-width: 0;
    flex: 1 1 220px;
  }
}

@media (max-width: 575.98px) {
  .ihx-modal {
    padding: 0;
  }

  .ihx-modal__dialog,
  .ihx-modal__dialog--game,
  .ihx-modal__dialog--xl,
  .ihx-modal__dialog--lg {
    max-height: 100dvh;
  }

  .ihx-modal__surface {
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .ihx-modal__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .ihx-modal__header {
    padding: 16px 60px 12px 16px;
  }

  .ihx-modal__title {
    font-size: 1.18rem;
  }

  .ihx-modal__pills span {
    padding: 8px 10px;
    font-size: 10px;
  }

  .ihx-modal--game .ihx-game-modal__stage,
  .ihx-modal--game .ihx-game-modal__side,
  .ihx-modal--comments .ihx-modal__aside,
  .ihx-modal--comments .ihx-modal__main,
  .ihx-modal__footerband {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ihx-modal--game .game_container,
  .ihx-modal--game .game_container2 {
    padding: 14px;
    border-radius: 18px;
  }

  .ihx-modal--game .result_images {
    gap: 10px;
  }

  .ihx-modal--game .user_result,
  .ihx-modal--game .cpu_result {
    min-height: 124px;
    padding: 14px 10px;
  }

  .ihx-modal--game .user_result img,
  .ihx-modal--game .cpu_result img {
    width: min(100%, 96px);
  }

  .ihx-modal--game .option_images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .ihx-modal--game .option_image {
    min-height: 88px;
    padding: 10px 6px;
  }

  .ihx-modal--game .option_image img {
    width: 34px;
    height: 34px;
  }

  .ihx-modal--game .option_image p,
  .ihx-modal--game .user_result p,
  .ihx-modal--game .cpu_result p {
    font-size: 12px;
  }

  .ihx-modal--game #spin_the_wheel {
    width: min(100%, 320px);
  }

  .ihx-thread-head strong {
    font-size: 16px;
  }

  .ihx-thread-body {
    max-height: 220px !important;
  }

  .ihx-thread-compose .new-comment,
  .ihx-game-modal__side .new-comment,
  .ihx-modal__main .new-comment {
    gap: 8px;
    padding: 10px;
  }

  .ihx-thread-compose .new-comment img,
  .ihx-game-modal__side .new-comment img,
  .ihx-modal__main .new-comment img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .ihx-thread-compose .new-comment input,
  .ihx-game-modal__side .new-comment input,
  .ihx-modal__main .new-comment input {
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .ihx-thread-compose .btn-submit-comment,
  .ihx-game-modal__side .btn-submit-comment,
  .ihx-modal__main .btn-submit-comment {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .ihx-modal .ih-comment-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0;
  }

  .ihx-modal .ih-comment-item__avatar img {
    width: 36px;
    height: 36px;
  }

  .ihx-modal .ih-comment-item__top {
    gap: 4px 8px;
  }

  .ihx-modal .ih-comment-item .username {
    font-size: 12px;
  }

  .ihx-modal .ih-comment-item .comment,
  .ihx-modal .btn-reply,
  .ihx-modal .btn-delete-comment,
  .ihx-modal .like-content-text {
    font-size: 11px;
  }

  .ih-sponsor-card__actions {
    grid-template-columns: 1fr;
  }

  .ih-sponsor-card__media img,
  .ihx-modal__footerband .ih-sponsor-card__media img,
  .ihx-sponsor-modal__media img {
    min-height: 180px;
    max-height: 220px;
  }

  .ih-sponsor-card__pricebox strong,
  .ihx-sponsor-modal__pricebox strong {
    font-size: 1.55rem;
  }
}

/* ===== v11 compact modal + sponsor footer stabilization ===== */
.ihx-modal--game .ihx-modal__dialog {
  width: min(100% - 32px, 1220px);
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
}

.ihx-modal--game .ihx-modal__surface {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}

.ihx-modal--game .ihx-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: start;
  padding: 18px 76px 14px 22px;
}

.ihx-modal--game .ihx-modal__header--compact {
  display: grid;
}

.ihx-modal--game .ihx-modal__header > div:first-child {
  min-width: 0;
}

.ihx-modal--game .ihx-modal__title {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.ihx-modal--game .ihx-modal__pills {
  margin-top: 0;
  justify-content: flex-end;
  align-self: start;
  max-width: 290px;
}

.ihx-modal--game .ihx-modal__pills span {
  min-height: 34px;
}

.ihx-modal--game .ihx-modal__close {
  top: 14px;
  right: 14px;
}

.ihx-modal--game .ihx-game-modal__layout {
  flex: none;
  min-height: 0;
  height: auto;
  max-height: clamp(380px, 54dvh, 540px);
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, .72fr);
  align-items: stretch;
}

.ihx-modal--game .ihx-game-modal__stage,
.ihx-modal--game .ihx-game-modal__side {
  min-height: 0;
  overflow: hidden;
}

.ihx-modal--game .ihx-game-modal__stage {
  padding: 18px 20px 16px 20px;
}

.ihx-modal--game .ihx-game-modal__side {
  padding: 18px 18px 16px 16px;
  display: flex;
  flex-direction: column;
}

.ihx-modal--game .game_container,
.ihx-modal--game .game_container2 {
  min-height: 0;
  height: 100%;
  max-height: none;
  padding: 18px;
  border-radius: 22px;
}

.ihx-modal--game .wrapper_cont {
  min-height: 100%;
  height: 100%;
}

.ihx-modal--game .result_field {
  gap: 16px;
}

.ihx-modal--game .result {
  margin-top: 0;
  font-size: clamp(20px, 2vw, 34px);
}

.ihx-modal--game .result_images {
  gap: 10px;
}

.ihx-modal--game .user_result,
.ihx-modal--game .cpu_result {
  min-height: 164px;
  padding: 16px 12px;
}

.ihx-modal--game .user_result img,
.ihx-modal--game .cpu_result img {
  width: min(100%, 132px);
}

.ihx-modal--game .option_images {
  margin-top: 14px;
  gap: 10px;
}

.ihx-modal--game .option_image {
  min-height: 84px;
}

.ihx-modal--game #spin_the_wheel {
  width: min(100%, 320px);
  margin: 0 auto;
}

.ihx-modal--game #wheel {
  width: 100%;
  height: auto;
}

.ihx-modal--game .ihx-thread-head {
  margin-bottom: 10px;
}

.ihx-modal--game .ihx-thread-head strong {
  font-size: 18px;
}

.ihx-modal--game .ihx-thread-head p {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.55;
}

.ihx-modal--game .ihx-thread-body,
.ihx-modal--comments .ihx-thread-body {
  min-height: 0;
  max-height: none;
}

.ihx-modal--game .comments,
.ihx-modal--comments .comments {
  height: 100%;
  min-height: 0;
}

.ihx-modal--game .ihx-thread-compose,
.ihx-modal--comments .ihx-thread-compose {
  margin-top: 10px;
}

.ihx-modal .ih-comment-stack {
  gap: 8px;
}

.ihx-modal .ih-comment-item {
  gap: 10px;
  padding: 10px 0;
}

.ihx-modal .ih-comment-item__top {
  margin-bottom: 2px;
}

.ihx-modal .ih-comment-item .comment {
  margin-top: 0;
}

.ihx-modal .ih-comment-item__actions {
  margin-top: 6px;
}

.ihx-modal .show-more {
  margin-top: 2px;
}

.ihx-modal__footerband {
  flex: 0 0 auto;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(148,163,184,.1);
  background: linear-gradient(180deg, rgba(7,12,24,0) 0%, rgba(7,12,24,.3) 20%, rgba(7,12,24,.64) 100%);
}

.ihx-modal__footerband .load-more-spinner {
  margin: 0 0 8px;
}

.ihx-modal__footerband .ih-sponsor-card {
  width: 100%;
}

.ihx-modal__footerband .ih-sponsor-card__surface {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: stretch;
  min-height: 148px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 18px 38px -28px rgba(0,0,0,.78);
  background: linear-gradient(135deg, rgba(8,14,28,.9), rgba(13,22,40,.96));
}

.ihx-modal__footerband .ih-sponsor-card__media {
  min-height: 100%;
}

.ihx-modal__footerband .ih-sponsor-card__media img {
  width: 100%;
  height: 100%;
  min-height: 148px;
  max-height: 148px;
  object-fit: cover;
}

.ihx-modal__footerband .ih-sponsor-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 14px;
  align-items: center;
  padding: 14px 14px 14px 16px;
}

.ihx-modal__footerband .ih-sponsor-card__content,
.ihx-modal__footerband .ih-sponsor-card__aside {
  min-width: 0;
}

.ihx-modal__footerband .ih-sponsor-card__eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}

.ihx-modal__footerband .ih-sponsor-card__content h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ihx-modal__footerband .ih-sponsor-card__meta {
  margin-top: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.ihx-modal__footerband .ih-sponsor-card__shop {
  font-size: 11px;
}

.ihx-modal__footerband .ih-sponsor-card__tags,
.ihx-modal__footerband .ih-sponsor-card__badge,
.ihx-modal__footerband .ih-sponsor-card__actions > .ih-event-card__button--outline {
  display: none;
}

.ihx-modal__footerband .ih-sponsor-card__aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ihx-modal__footerband .ih-sponsor-card__pricebox {
  border-radius: 16px;
  padding: 12px 14px;
}

.ihx-modal__footerband .ih-sponsor-card__pricebox strong {
  font-size: 1.6rem;
  line-height: 1;
}

.ihx-modal__footerband .ih-sponsor-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ihx-modal__footerband .ih-sponsor-card__actions .ih-event-card__button {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  font-size: 12px;
}

.ihx-modal--sponsor .ihx-modal__surface {
  max-height: calc(100dvh - 44px);
}

@media (max-width: 1199.98px) {
  .ihx-modal--game .ihx-game-modal__layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr);
  }
}

@media (max-width: 991.98px) {
  .ihx-modal--game .ihx-modal__dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    margin: 6px auto;
  }

  .ihx-modal--game .ihx-modal__surface {
    max-height: calc(100dvh - 12px);
    border-radius: 18px;
  }

  .ihx-modal--game .ihx-modal__header {
    grid-template-columns: 1fr;
    padding: 16px 60px 12px 16px;
  }

  .ihx-modal--game .ihx-modal__pills {
    justify-content: flex-start;
    max-width: none;
  }

  .ihx-modal--game .ihx-game-modal__layout {
    max-height: none;
    grid-template-columns: 1fr;
  }

  .ihx-modal--game .ihx-game-modal__stage {
    padding: 14px 14px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(148,163,184,.12);
  }

  .ihx-modal--game .ihx-game-modal__side {
    padding: 14px;
  }

  .ihx-modal--game .game_container,
  .ihx-modal--game .game_container2 {
    padding: 16px;
  }

  .ihx-modal--game .user_result,
  .ihx-modal--game .cpu_result {
    min-height: 118px;
  }

  .ihx-modal__footerband {
    padding: 12px 14px 14px;
  }

  .ihx-modal__footerband .ih-sponsor-card__surface {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ihx-modal__footerband .ih-sponsor-card__media img {
    min-height: 132px;
    max-height: 180px;
  }

  .ihx-modal__footerband .ih-sponsor-card__body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .ihx-modal__footerband .ih-sponsor-card__aside {
    gap: 8px;
  }

  .ihx-modal__footerband .ih-sponsor-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ihx-modal--game .ihx-modal__dialog {
    width: 100%;
    max-height: 100dvh;
    margin: 0;
  }

  .ihx-modal--game .ihx-modal__surface {
    max-height: 100dvh;
    border-radius: 0;
  }

  .ihx-modal--game .ihx-modal__header {
    padding: 14px 54px 10px 14px;
  }

  .ihx-modal--game .ihx-modal__title {
    font-size: 1.32rem;
  }

  .ihx-modal--game .game_container,
  .ihx-modal--game .game_container2 {
    padding: 12px;
  }

  .ihx-modal--game .result {
    font-size: clamp(18px, 6vw, 30px);
  }

  .ihx-modal--game .result_images {
    gap: 8px;
  }

  .ihx-modal--game .user_result,
  .ihx-modal--game .cpu_result {
    min-height: 104px;
    padding: 12px 8px;
  }

  .ihx-modal--game .user_result img,
  .ihx-modal--game .cpu_result img {
    width: min(100%, 88px);
  }

  .ihx-modal--game .option_images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .ihx-modal--game .option_image {
    min-height: 74px;
  }

  .ihx-modal--game .ihx-thread-body,
  .ihx-modal--comments .ihx-thread-body {
    max-height: 220px;
  }

  .ihx-modal__footerband .ih-sponsor-card__actions {
    grid-template-columns: 1fr;
  }

  .ihx-modal__footerband .ih-sponsor-card__content h3 {
    font-size: 1rem;
  }

  .ihx-modal__footerband .ih-sponsor-card__pricebox strong {
    font-size: 1.4rem;
  }
}


/* ===== v16: wheel center, modern comments, footer CTA cleanup ===== */
.ihx-modal--game .game_container2 #spin_the_wheel {
  position: relative;
  display: inline-block;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: visible;
}

.ihx-modal--game .game_container2 #wheel {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
}

.ihx-modal--game .game_container2 #spin,
.ihx-modal--game .game_container2 #spin2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 29%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-width: 112px;
  min-height: 112px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: radial-gradient(circle at 30% 30%, #fffef9 0%, #f5f0e3 68%, #ddcfae 100%);
  color: #87745a !important;
  font: 800 1.05rem/1 "Lato", sans-serif;
  letter-spacing: -.02em;
  box-shadow: 0 0 0 8px rgba(208,178,124,.95), 0 10px 28px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.ihx-modal--game .game_container2 #spin::after,
.ihx-modal--game .game_container2 #spin2::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 16px solid rgba(208,178,124,.98);
}

.ihx-modal--game .game_container2 #spin2 {
  cursor: default;
}

.ihx-modal .ih-comment-item {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.ihx-modal .ih-comment-item__avatar img {
  width: 42px;
  height: 42px;
}

.ihx-modal .ih-comment-item__head,
.ihx-modal .ih-comment-item__top {
  margin: 0 0 4px;
}

.ihx-modal .ih-comment-item__identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ihx-modal .ih-comment-item .username {
  font-size: 13px;
  line-height: 1.2;
}

.ihx-modal .ih-comment-item .date {
  margin-left: auto;
  font-size: 10.5px;
  opacity: .58;
}

.ihx-modal .ih-comment-item .comment {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.ihx-modal .show-more {
  margin-top: 4px;
}

.ihx-modal .ih-comment-item__actions {
  gap: 8px;
  margin-top: 6px;
}

.ihx-modal .btn-reply,
.ihx-modal .btn-delete-comment,
.ihx-modal .like-content-text {
  font-size: 11px;
}

.ihx-modal .like-content {
  gap: 4px;
}

.ihx-modal .like-btn {
  width: auto;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #fb7185;
}

.ihx-modal .row-sub-comment:empty,
.ihx-modal .visible-sub-comment:empty {
  display: none !important;
}

.ihx-modal .ih-comment-list--sub {
  margin-top: 8px;
}

.ihx-modal__footerband .ih-sponsor-card__body {
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 16px;
}

.ihx-modal__footerband .ih-sponsor-card__pricebox {
  padding: 12px 14px;
}

.ihx-modal__footerband .ih-sponsor-card__actions {
  grid-template-columns: 1fr;
  gap: 10px;
}

.ihx-modal__footerband .ih-sponsor-card__actions .ih-event-card__button {
  min-height: 42px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 14px;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .ihx-modal--game .game_container2 #spin_the_wheel {
    width: min(100%, 290px);
  }

  .ihx-modal--game .game_container2 #spin,
  .ihx-modal--game .game_container2 #spin2 {
    min-width: 84px;
    min-height: 84px;
    font-size: .88rem;
  }

  .ihx-modal .ih-comment-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
  }

  .ihx-modal .ih-comment-item__avatar img {
    width: 38px;
    height: 38px;
  }

  .ihx-modal .ih-comment-item .date {
    width: 100%;
    margin-left: 0;
  }

  .ihx-modal__footerband .ih-sponsor-card__body {
    grid-template-columns: 1fr;
  }
}

/* ===== v17: wheel polish, social thread comments, sponsor footer redesign ===== */
.ihx-modal--game .game_container2 #spin_the_wheel {
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
  padding: 0;
  overflow: visible;
}

.ihx-modal--game .game_container2 #wheel {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  display: block;
}

.ihx-modal--game .game_container2 #spin,
.ihx-modal--game .game_container2 #spin2 {
  width: 104px;
  height: 104px;
  min-width: 104px;
  min-height: 104px;
  max-width: 104px;
  max-height: 104px;
  aspect-ratio: 1 / 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font: 800 1rem/1 "Lato", sans-serif;
  color: #7c6a54 !important;
  background: radial-gradient(circle at 32% 30%, #fffdf7 0%, #f4eedf 62%, #d9c7a1 100%);
  box-shadow:
    0 0 0 7px rgba(210, 184, 132, .94),
    inset 0 1px 0 rgba(255,255,255,.7),
    0 14px 30px rgba(0,0,0,.26);
  z-index: 6;
}

.ihx-modal--game .game_container2 #spin::after,
.ihx-modal--game .game_container2 #spin2::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid #d2b884;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.18));
}

.ihx-modal--game .game_container2 #spin2 { cursor: default; }

.ihx-modal .ih-comment-thread,
.ihx-modal .ih-comment-stack {
  display: block;
}

.ihx-modal .ih-comment-thread__list,
.ihx-modal .ih-comment-list,
.ihx-modal .ih-subcomment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ihx-modal .ih-comment-thread__item,
.ihx-modal .ih-comment-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ihx-modal .ih-comment-thread__item:last-child,
.ihx-modal .ih-comment-item:last-child {
  margin-bottom: 0;
}

.ihx-modal .ih-comment-thread__avatar img,
.ihx-modal .ih-comment-item__avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.ihx-modal .ih-comment-thread__main,
.ihx-modal .ih-comment-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ihx-modal .ih-comment-thread__authorline,
.ihx-modal .ih-comment-item__identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.ihx-modal .ih-comment-thread__name,
.ihx-modal .ih-comment-item .username {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: rgba(245, 248, 255, .98);
  margin: 0;
}

.ihx-modal .ih-comment-thread__name a,
.ihx-modal .ih-comment-item .username a,
.ihx-modal .ih-subcomment-item__name a {
  color: inherit;
  text-decoration: none;
}

.ihx-modal .ih-comment-thread__badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(236, 73, 99, .18);
  color: #ff7a8c;
  font-size: 10px;
  font-weight: 700;
}

.ihx-modal .ih-comment-thread__pin,
.ihx-modal .ih-comment-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #f3c24d;
  background: rgba(243, 194, 77, .14);
}

.ihx-modal .ih-comment-thread__time,
.ihx-modal .ih-comment-item .date,
.ihx-modal .ih-subcomment-item__time {
  font-size: 11px;
  line-height: 1.2;
  color: rgba(196, 207, 228, .58);
  margin: 0;
}

.ihx-modal .ih-comment-thread__text,
.ihx-modal .ih-comment-item .comment,
.ihx-modal .ih-subcomment-item__text {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.52;
  color: rgba(236, 241, 255, .94);
}

.ihx-modal .ih-comment-thread__toolbar,
.ihx-modal .ih-comment-item__actions,
.ihx-modal .ih-subcomment-item__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.ihx-modal .ih-comment-thread__toolbar .btn,
.ihx-modal .ih-comment-item__actions .btn,
.ihx-modal .ih-subcomment-item__toolbar .btn,
.ihx-modal .btn-delete-comment,
.ihx-modal .btn-reply {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(191, 203, 226, .76);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}

.ihx-modal .btn-reply:hover,
.ihx-modal .btn-delete-comment:hover {
  color: #fff;
  text-decoration: none;
}

.ihx-modal .ih-comment-thread__like,
.ihx-modal .like-content {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 !important;
  margin: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 118, 148, .82);
  font-size: 11px;
  line-height: 1;
}

.ihx-modal .ih-comment-thread__like i,
.ihx-modal .like-content i,
.ihx-modal .like-btn i,
.ihx-modal .like-comment i,
.ihx-modal .like-active i {
  font-size: 12px;
  line-height: 1;
}

.ihx-modal .like-active i {
  color: red;
}

.ihx-modal .btn i {
  margin: 0;
}

.ihx-modal .ih-comment-thread__like span,
.ihx-modal .like-content-text {
  font-size: 11px;
  color: rgba(255,255,255,.72);
}

.ihx-modal .show-more {
  margin-top: 2px;
}

.ihx-modal .ih-comment-reply-slot:empty,
.ihx-modal .row-sub-comment:empty,
.ihx-modal .visible-sub-comment:empty {
  display: none !important;
}

.ih-subcomment-stack {
  margin: 6px 0 0 0;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.ih-subcomment-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 10px;
}

.ih-subcomment-item:last-child { margin-bottom: 0; }

.ih-subcomment-item__avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.ih-subcomment-item__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ih-subcomment-item__authorline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ih-subcomment-item__name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(244, 247, 255, .95);
}

.ih-subcomment-item__time {
  font-size: 10px;
  color: rgba(190, 203, 226, .54);
}

.ih-comment-reply-slot form,
.ih-subcomment-form,
#comment-result_150 .row-sub-comment form,
[id^="sub_comment_form_"] form {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 14, 31, .78);
}

.ih-comment-reply-slot textarea,
.ih-subcomment-form textarea,
[id^="sub_comment_form_"] textarea {
  min-height: 84px;
  resize: vertical;
}

.ihx-modal__footerband {
  padding-top: 12px;
}

.ihx-modal__footerband .ih-sponsor-card__surface,
.ih-sponsor-card__surface--footer {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 176px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,19,43,.92) 0%, rgba(7,14,31,.98) 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.ihx-modal__footerband .ih-sponsor-card__media,
.ih-sponsor-card__surface--footer .ih-sponsor-card__media {
  width: 112px;
}

.ihx-modal__footerband .ih-sponsor-card__media img,
.ih-sponsor-card__surface--footer .ih-sponsor-card__media img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.ihx-modal__footerband .ih-sponsor-card__content h3,
.ih-sponsor-card__surface--footer .ih-sponsor-card__content h3 {
  margin: 4px 0 8px;
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 800;
  color: rgba(247, 250, 255, .98);
}

.ihx-modal__footerband .ih-sponsor-card__meta,
.ih-sponsor-card__surface--footer .ih-sponsor-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(186, 198, 220, .72);
}

.ihx-modal__footerband .ih-sponsor-card__shop,
.ih-sponsor-card__surface--footer .ih-sponsor-card__shop {
  color: rgba(186, 198, 220, .72);
}

.ihx-modal__footerband .ih-sponsor-card__side,
.ih-sponsor-card__surface--footer .ih-sponsor-card__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.ihx-modal__footerband .ih-sponsor-card__pricebox,
.ih-sponsor-card__surface--footer .ih-sponsor-card__pricebox {
  min-height: 72px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(14, 28, 60, .88);
}

.ihx-modal__footerband .ih-sponsor-card__pricebox span,
.ih-sponsor-card__surface--footer .ih-sponsor-card__pricebox span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(190, 204, 226, .55);
}

.ihx-modal__footerband .ih-sponsor-card__pricebox strong,
.ih-sponsor-card__surface--footer .ih-sponsor-card__pricebox strong {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: rgba(250, 253, 255, .98);
}

.ihx-modal__footerband .ih-sponsor-card__cta,
.ihx-modal__footerband .ih-sponsor-card__actions,
.ih-sponsor-card__surface--footer .ih-sponsor-card__cta,
.ih-sponsor-card__surface--footer .ih-sponsor-card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ihx-modal__footerband .ih-sponsor-card__cta .ih-event-card__button,
.ihx-modal__footerband .ih-sponsor-card__actions .ih-event-card__button,
.ih-sponsor-card__surface--footer .ih-event-card__button {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

.ihx-modal__footerband .ih-sponsor-card__actions .ih-event-card__button--muted,
.ih-sponsor-card__surface--footer .ih-event-card__button--muted {
  background: rgba(78, 95, 128, .78);
}

@media (max-width: 991.98px) {
  .ihx-modal--game .game_container2 #spin_the_wheel {
    width: min(100%, 420px);
  }

  .ihx-modal__footerband .ih-sponsor-card__surface,
  .ih-sponsor-card__surface--footer {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .ihx-modal__footerband .ih-sponsor-card__side,
  .ih-sponsor-card__surface--footer .ih-sponsor-card__side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .ihx-modal__footerband .ih-sponsor-card__cta,
  .ih-sponsor-card__surface--footer .ih-sponsor-card__cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ihx-modal__footerband .ih-sponsor-card__media img,
  .ih-sponsor-card__surface--footer .ih-sponsor-card__media img {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 767.98px) {
  .ihx-modal--game .game_container2 #spin_the_wheel {
    width: min(100%, 300px);
  }

  .ihx-modal--game .game_container2 #spin,
  .ihx-modal--game .game_container2 #spin2 {
    width: 82px;
    height: 82px;
    min-width: 82px;
    min-height: 82px;
    max-width: 82px;
    max-height: 82px;
    font-size: .9rem;
  }

  .ihx-modal .ih-comment-thread__item,
  .ihx-modal .ih-comment-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
  }

  .ihx-modal .ih-comment-thread__avatar img,
  .ihx-modal .ih-comment-item__avatar img {
    width: 36px;
    height: 36px;
  }

  .ihx-modal .ih-comment-thread__toolbar,
  .ihx-modal .ih-comment-item__actions {
    gap: 8px;
  }

  .ihx-modal__footerband .ih-sponsor-card__surface,
  .ih-sponsor-card__surface--footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .ihx-modal__footerband .ih-sponsor-card__media,
  .ih-sponsor-card__surface--footer .ih-sponsor-card__media {
    width: 100%;
  }

  .ihx-modal__footerband .ih-sponsor-card__media img,
  .ih-sponsor-card__surface--footer .ih-sponsor-card__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .ihx-modal__footerband .ih-sponsor-card__side,
  .ih-sponsor-card__surface--footer .ih-sponsor-card__side,
  .ihx-modal__footerband .ih-sponsor-card__cta,
  .ih-sponsor-card__surface--footer .ih-sponsor-card__cta {
    grid-template-columns: 1fr;
  }
}


.ih-event-card.is-anchor-focus,
.ih-mobile-event-card.is-anchor-focus {
  box-shadow: 0 0 0 1px rgba(59,130,246,.32), 0 18px 54px -34px rgba(15,23,42,.55), 0 0 0 8px rgba(59,130,246,.10);
  transform: translateY(-2px);
  transition: box-shadow .25s ease, transform .25s ease;
}

.ih-event-card__coachmark,
.ih-mobile-event-card__coachmark {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(59,130,246,.22);
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(16,185,129,.10));
}

.ih-events-page.ih-theme-dark .ih-event-card__coachmark,
.ih-events-page.ih-theme-dark .ih-mobile-event-card__coachmark {
  border-color: rgba(96,165,250,.26);
  background: linear-gradient(135deg, rgba(30,41,59,.92), rgba(15,23,42,.88));
}

.ih-event-card__coachmark strong,
.ih-mobile-event-card__coachmark strong {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.ih-event-card__coachmark span,
.ih-mobile-event-card__coachmark span {
  font-size: 12px;
  line-height: 1.55;
  color: inherit;
  opacity: .88;
}


/* Event anchor coachmark refinements */
.ih-event-card__coachmark,
.ih-mobile-event-card__coachmark {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.06));
  box-shadow: 0 8px 24px -22px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
}

.ih-event-card__coachmark strong,
.ih-mobile-event-card__coachmark strong {
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ih-event-card__coachmark span,
.ih-mobile-event-card__coachmark span {
  font-size: 11px;
  line-height: 1.5;
  color: inherit;
  opacity: 0.84;
}

.ih-event-card.is-anchor-focus,
.ih-mobile-event-card.is-anchor-focus {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.22), 0 16px 44px -34px rgba(15, 23, 42, 0.42), 0 0 0 6px rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}

.ih-events-page.ih-theme-dark .ih-event-card__coachmark,
.ih-events-page.ih-theme-dark .ih-mobile-event-card__coachmark {
  border-color: rgba(96, 165, 250, 0.18);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.84));
  box-shadow: 0 10px 28px -24px rgba(2, 6, 23, 0.62);
}

@media (max-width: 991.98px) {
  .ih-mobile-event-card__coachmark {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 11px;
  }
}


/* CTA bubble coachmark */
.ih-event-card__actions,
.ih-mobile-event-card__actions {
  position: relative;
}

.ih-event-card__coachmark,
.ih-mobile-event-card__coachmark {
  position: relative;
  width: min(320px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  flex: 0 0 100%;
  margin: 0 0 8px auto;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
  box-shadow: 0 14px 34px -26px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
}

.ih-event-card__coachmark:after,
.ih-mobile-event-card__coachmark:after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(59, 130, 246, 0.16);
  border-bottom: 1px solid rgba(59, 130, 246, 0.16);
  background: inherit;
  transform: rotate(45deg);
}

.ih-event-card__coachmark strong,
.ih-mobile-event-card__coachmark strong {
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.ih-event-card__coachmark span,
.ih-mobile-event-card__coachmark span {
  font-size: 11px;
  line-height: 1.52;
  color: #475569;
}

.ih-events-page.ih-theme-dark .ih-event-card__coachmark,
.ih-events-page.ih-theme-dark .ih-mobile-event-card__coachmark,
body.dark-mode .ih-event-card__coachmark,
body.dark-mode .ih-mobile-event-card__coachmark {
  border-color: rgba(96, 165, 250, 0.16);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.98));
  box-shadow: 0 16px 36px -28px rgba(2, 6, 23, 0.72);
}

.ih-events-page.ih-theme-dark .ih-event-card__coachmark strong,
.ih-events-page.ih-theme-dark .ih-mobile-event-card__coachmark strong,
body.dark-mode .ih-event-card__coachmark strong,
body.dark-mode .ih-mobile-event-card__coachmark strong {
  color: #f8fafc;
}

.ih-events-page.ih-theme-dark .ih-event-card__coachmark span,
.ih-events-page.ih-theme-dark .ih-mobile-event-card__coachmark span,
body.dark-mode .ih-event-card__coachmark span,
body.dark-mode .ih-mobile-event-card__coachmark span {
  color: rgba(226, 232, 240, 0.8);
}

.ih-events-page.ih-theme-dark .ih-event-card__coachmark:after,
.ih-events-page.ih-theme-dark .ih-mobile-event-card__coachmark:after,
body.dark-mode .ih-event-card__coachmark:after,
body.dark-mode .ih-mobile-event-card__coachmark:after {
  border-color: rgba(96, 165, 250, 0.14);
}

.ih-event-card.is-anchor-focus,
.ih-mobile-event-card.is-anchor-focus {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18), 0 14px 34px -28px rgba(15, 23, 42, 0.34), 0 0 0 5px rgba(59, 130, 246, 0.06);
  transform: translateY(-1px);
  transition: box-shadow .25s ease, transform .25s ease;
}

@media (max-width: 767.98px) {
  .ih-event-card__coachmark,
  .ih-mobile-event-card__coachmark {
    width: 100%;
    margin: 0 0 8px;
    padding: 9px 11px;
    border-radius: 14px;
  }

  .ih-event-card__coachmark:after,
  .ih-mobile-event-card__coachmark:after {
    left: 24px;
    right: auto;
    bottom: -6px;
    width: 11px;
    height: 11px;
  }
}


/* Detached event coachmark */
.ih-event-coachmark-layer {
  position: fixed;
  z-index: 300920;
  pointer-events: none;
  top: 0;
  left: 0;
}

.ih-event-coachmark {
  position: relative;
  width: min(340px, calc(100vw - 24px));
  border-radius: 18px;
  padding: 14px 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
  box-shadow: 0 24px 70px -30px rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.ih-events-page.ih-theme-dark .ih-event-coachmark,
body.dark-mode .ih-event-coachmark {
  border-color: rgba(96, 165, 250, 0.24);
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.98) 0%, rgba(14, 22, 40, 0.96) 100%);
  box-shadow: 0 26px 72px -32px rgba(2, 8, 23, 0.76);
}

.ih-event-coachmark:before,
.ih-event-coachmark:after {
  content: '';
  position: absolute;
  left: var(--coachmark-arrow-left, 46px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
}

.ih-event-coachmark-layer.is-placement-bottom .ih-event-coachmark:before {
  top: 100%;
  border-top: 12px solid rgba(148, 163, 184, 0.24);
}

.ih-event-coachmark-layer.is-placement-bottom .ih-event-coachmark:after {
  top: calc(100% - 1px);
  border-top: 11px solid rgba(248, 250, 252, 0.98);
}

.ih-events-page.ih-theme-dark .ih-event-coachmark-layer.is-placement-bottom .ih-event-coachmark:after,
body.dark-mode .ih-event-coachmark-layer.is-placement-bottom .ih-event-coachmark:after {
  border-top-color: rgba(12, 18, 34, 0.98);
}

.ih-event-coachmark-layer.is-placement-top .ih-event-coachmark:before {
  bottom: 100%;
  border-bottom: 12px solid rgba(148, 163, 184, 0.24);
}

.ih-event-coachmark-layer.is-placement-top .ih-event-coachmark:after {
  bottom: calc(100% - 1px);
  border-bottom: 11px solid rgba(248, 250, 252, 0.98);
}

.ih-events-page.ih-theme-dark .ih-event-coachmark-layer.is-placement-top .ih-event-coachmark:after,
body.dark-mode .ih-event-coachmark-layer.is-placement-top .ih-event-coachmark:after {
  border-bottom-color: rgba(12, 18, 34, 0.98);
}

.ih-event-coachmark__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ih-events-page.ih-theme-dark .ih-event-coachmark__close,
body.dark-mode .ih-event-coachmark__close {
  color: rgba(191, 219, 254, 0.72);
}

.ih-event-coachmark__close:hover {
  background: rgba(148, 163, 184, 0.12);
}

.ih-event-coachmark__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ih-events-page.ih-theme-dark .ih-event-coachmark__eyebrow,
body.dark-mode .ih-event-coachmark__eyebrow {
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
}

.ih-event-coachmark__title {
  margin: 0 24px 6px 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ih-event-coachmark__text {
  color: #475569;
  font-size: 12px;
  line-height: 1.65;
}

.ih-events-page.ih-theme-dark .ih-event-coachmark__title,
body.dark-mode .ih-event-coachmark__title {
  color: #eff6ff;
}

.ih-events-page.ih-theme-dark .ih-event-coachmark__text,
body.dark-mode .ih-event-coachmark__text {
  color: rgba(226, 232, 240, 0.82);
}

.ih-event-card.is-anchor-focus,
.ih-mobile-event-card.is-anchor-focus {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.24), 0 18px 48px -28px rgba(37, 99, 235, 0.28);
}

.is-coachmark-target {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.26), 0 10px 28px -14px rgba(37, 99, 235, 0.42);
}

@media (max-width: 991.98px) {
  .ih-event-coachmark {
    width: min(300px, calc(100vw - 20px));
    border-radius: 16px;
    padding: 13px 14px;
  }

  .ih-event-coachmark__title {
    font-size: 14px;
  }

  .ih-event-coachmark__text {
    font-size: 11px;
    line-height: 1.6;
  }
}


.ihx-modal--event-join .ihx-modal__dialog--event-join {
  width: min(100% - 28px, 560px);
}
.ih-event-join-modal {
  position: relative;
  overflow: hidden;
}
.ih-event-join-modal__body {
  display: grid;
  gap: 16px;
  padding: 6px 28px 0;
}
.ih-event-join-modal__hero {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(111, 118, 255, 0.18);
  background: linear-gradient(180deg, rgba(111, 118, 255, 0.08), rgba(111, 118, 255, 0.03));
  border-radius: 16px;
}
.ih-event-join-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6f76ff, #8d63ff);
  color: #fff;
  box-shadow: 0 16px 32px rgba(79, 63, 186, 0.24);
  font-size: 22px;
}
.ih-event-join-modal__copy {
  min-width: 0;
}
.ih-event-join-modal__name {
  display: block;
  color: #7c89d2;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}
.ih-event-join-modal__desc {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}
.ih-event-join-modal__field {
  display: grid;
  gap: 8px;
}
.ih-event-join-modal__field label {
  font-size: 13px;
  font-weight: 700;
  color: #7c89d2;
  margin: 0;
}
.ih-event-join-modal__field small {
  color: #98a2b3;
  font-size: 12px;
}
.ih-event-join-modal__input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #d0d5dd;
  background: #fff;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #101828;
  outline: none;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}
.ih-event-join-modal__input:focus {
  border-color: #6f76ff;
  box-shadow: 0 0 0 4px rgba(111, 118, 255, 0.12);
}
.ih-event-join-modal__optin {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgb(50 61 85 / 8%);
  background: rgb(96 117 161 / 17%);
  color: #d27c7c;
  font-size: 13px;
  line-height: 1.55;
}
.ih-event-join-modal__optin input {
  margin-top: 2px;
}
.ih-event-join-modal__error {
  min-height: 20px;
  color: #d92d20;
  font-size: 13px;
  font-weight: 600;
}
.ih-event-join-modal__footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 22px 28px 28px;
}
.ih-event-join-modal__ghost,
.ih-event-join-modal__submit {
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .18s ease;
}
.ih-event-join-modal__ghost {
  background: #eef2f7;
  color: #344054;
}
.ih-event-join-modal__ghost:hover {
  background: #e3e8ef;
}
.ih-event-join-modal__submit {
  background: linear-gradient(135deg, #6f76ff, #8d63ff);
  color: #fff;
  box-shadow: 0 18px 32px rgba(88, 70, 200, 0.24);
}
.ih-event-join-modal__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(88, 70, 200, 0.3);
}
.ih-event-join-modal__submit:disabled {
  opacity: .72;
  cursor: wait;
  transform: none;
}
body.dark-mode .ih-event-join-modal__hero,
.dark .ih-event-join-modal__hero {
  border-color: rgba(122, 137, 255, 0.22);
  background: linear-gradient(180deg, rgba(111, 118, 255, 0.18), rgba(111, 118, 255, 0.08));
}
body.dark-mode .ih-event-join-modal__name,
.dark .ih-event-join-modal__name {
  color: #f5f7ff;
}
body.dark-mode .ih-event-join-modal__desc,
.dark .ih-event-join-modal__desc {
  color: #c5cae2;
}
body.dark-mode .ih-event-join-modal__field label,
.dark .ih-event-join-modal__field label {
  color: #dfe4ff;
}
body.dark-mode .ih-event-join-modal__field small,
.dark .ih-event-join-modal__field small {
  color: #98a2b3;
}
body.dark-mode .ih-event-join-modal__input,
.dark .ih-event-join-modal__input {
  border-color: rgba(255,255,255,0.08);
  background: rgba(12, 18, 34, 0.92);
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
body.dark-mode .ih-event-join-modal__optin,
.dark .ih-event-join-modal__optin {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #d0d5e8;
}
body.dark-mode .ih-event-join-modal__ghost,
.dark .ih-event-join-modal__ghost {
  background: rgba(255,255,255,0.06);
  color: #eef2ff;
}
@media (max-width: 575.98px) {
  .ih-event-join-modal__body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .ih-event-join-modal__footer {
    padding: 18px;
    flex-direction: column-reverse;
  }
  .ih-event-join-modal__ghost,
  .ih-event-join-modal__submit {
    width: 100%;
  }
  .ih-event-join-modal__hero {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 14px;
  }
  .ih-event-join-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 20px;
  }
}
