/* =========================================================
   首页开服模块：动态 / 热门横滑 / 最新游戏 / 本期开服
   ========================================================= */

dl,
dt,
dd {
  margin: 0;
}

/* 游戏图片水印：社长头像 + 逍遥游戏社字标 */
.xy-brand {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px 0 3px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(90deg, rgba(7, 12, 18, .72), rgba(7, 12, 18, .36));
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .14em;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.xy-brand img {
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
}

.xy-brand span {
  display: block;
  transform: translateY(.5px);
}

.xy-brand--hot {
  right: 24px;
  bottom: 18px;
}

.xy-brand--card {
  top: 7px;
  right: 6px;
  transform: scale(.82);
  transform-origin: top right;
}

.xy-brand--opening {
  top: 9px;
  right: 8px;
  transform: scale(.86);
  transform-origin: top right;
}

.xy-brand--promo {
  right: 14px;
  bottom: 14px;
}

.update-game {
  position: relative;
  overflow: hidden;
}

.xy-brand--mini {
  left: 8px;
  bottom: 8px;
  height: 18px;
  gap: 4px;
  padding: 0 6px 0 2px;
  border-radius: 3px;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(7, 12, 18, .7);
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
}

.xy-brand--mini img {
  width: 15px;
  height: 15px;
  border-width: 1px;
}

.xy-brand--mini span {
  font-size: 6.5px;
  letter-spacing: .06em;
}

.tag--game {
  color: #4e607e;
  background: #eaf0f8;
}

.tag--version {
  color: #fff;
  background: #59637a;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  color: #fff;
  background: var(--navy);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
  vertical-align: middle;
}

.version-chip--light {
  color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 253, 248, .94);
}

.mini-version {
  height: 18px;
  margin-top: 4px;
  padding: 0 6px;
  font-size: 7px;
}

.opening-title-row .version-chip {
  flex: none;
  margin-top: 0;
  color: #fff;
  border: 0;
  background: var(--navy);
}

.popular-version {
  margin-top: 5px;
}

.promo-info .version-chip {
  margin-left: 5px;
}

.update-meta .version-chip {
  height: 18px;
  font-size: 7.5px;
}

.opening-cats,
.popular-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
}

.opening-cats span,
.popular-cats span {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  color: #8b6853;
  background: #f4ece1;
  font-size: 7.5px;
  line-height: 1.5;
}

.popular-cats {
  margin-top: 5px;
}

.popular-cats span {
  padding: 1px 4px;
  font-size: 7px;
}

.real-game-card {
  border-color: rgba(255, 95, 46, .22);
}

.real-game-card .mini-rating {
  color: #a14a27;
  background: #ffeadc;
  font-family: var(--font);
  font-size: 8px;
  letter-spacing: .04em;
}

.real-game-card .mini-badge {
  color: #fff;
  background: linear-gradient(135deg, #ff8a4c, #ef4c22);
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5);
}

.home-badge--hot {
  background: linear-gradient(135deg, #ff8a4c, #ef4c22);
}

.home-badge--test {
  background: linear-gradient(135deg, #65a9c4, #397795);
}

.home-badge--official {
  background: linear-gradient(135deg, #4bb37e, #2b8059);
}

.home-badge--bt {
  background: linear-gradient(135deg, #5c5478, #2d2842);
}

.notice-empty {
  padding: 28px 8px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
}

/* ------------------------------- hot games ------------------------------- */

.hot-wrap {
  margin-top: 30px;
}

.hot-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.hot-head h2 {
  margin-top: 8px;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.hot-desc {
  max-width: 600px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hot-controls {
  display: flex;
  gap: 7px;
  flex: none;
  padding-bottom: 3px;
}

.hot-arrow {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-2);
  background: rgba(255, 253, 249, .72);
  transition: transform .2s var(--ease), border-color .2s ease, color .2s ease, background .2s ease;
}

.hot-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-2px);
}

.hot-arrow:active {
  transform: translateY(0);
}

.hot-arrow .ico {
  width: 15px;
  height: 15px;
}

#hotPrev .ico {
  transform: rotate(180deg);
}

.hot-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--radius-xl);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.hot-viewport::-webkit-scrollbar {
  display: none;
}

.hot-scroller {
  display: flex;
  gap: 16px;
}

.hot-slide {
  position: relative;
  isolation: isolate;
  flex: 0 0 88%;
  min-height: 424px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #17373d;
  box-shadow: 0 34px 70px -50px rgba(15, 36, 40, .9);
  color: #fff;
  scroll-snap-align: start;
}

.hot-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 15, 20, .98) 0%, rgba(6, 20, 25, .93) 40%, rgba(6, 20, 25, .52) 68%, rgba(6, 20, 25, .05) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .16), transparent 28%, transparent 72%, rgba(4, 15, 18, .5));
}

.hot-index {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 26px;
  color: rgba(255, 234, 213, .45);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
}

.hot-copy {
  position: relative;
  z-index: 3;
  width: min(59%, 640px);
  padding: 38px 42px 32px;
}

.hot-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hot-kicker .badge {
  height: 24px;
}

.hot-kicker .badge .ico {
  width: 11px;
  height: 11px;
}

.hot-version-count {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  color: rgba(255, 231, 211, .44);
}

.hot-copy h3 {
  margin-top: 22px;
  font-size: clamp(42px, 4.6vw, 65px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: .015em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}

.hot-tagline {
  margin-top: 8px;
  color: #ffe0c4;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .05em;
}

.hot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 20px;
  color: rgba(255, 246, 234, .5);
  font-size: 10px;
}

.hot-meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 9px 3px;
  border-radius: 50%;
  background: rgba(255, 210, 178, .5);
}

.hot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hot-actions .btn {
  min-height: 40px;
  font-size: 11.5px;
}

.hot-pass {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 34px;
  width: 238px;
  padding: 18px;
  border-radius: 16px;
  color: var(--ink);
  background: radial-gradient(120% 100% at 100% 0%, #fffaf2 0%, #faf2e3 100%);
  box-shadow: 0 26px 52px -25px rgba(2, 12, 14, .78);
  transform: translateY(-50%) rotate(-1.8deg);
}

.hot-pass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8a4c2e;
  font-size: 10px;
  font-weight: 700;
}

.hot-pass-head .ico {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.hot-pass-facts {
  display: grid;
  gap: 0;
  margin-top: 11px;
  border-top: 1px dashed var(--line-strong);
}

.hot-pass-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-strong);
}

.hot-pass-facts dt {
  color: var(--muted-2);
  font-size: 8px;
}

.hot-pass-facts dd {
  overflow: hidden;
  max-width: 145px;
  color: var(--ink-2);
  font-size: 9.5px;
  font-weight: 650;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-pass-btn {
  width: 100%;
  min-height: 35px;
  margin-top: 12px;
  font-size: 10.5px;
}

.hot-pass-note {
  display: block;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 8px;
  text-align: center;
}

.hot-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 20px;
  margin-top: 10px;
}

.hot-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  background: #d4c8b8;
  transition: width .25s var(--ease), background .25s ease;
}

.hot-dots button.is-active {
  width: 20px;
  background: var(--accent);
}

/* ------------------------------- popular ------------------------------- */

.popular {
  padding-bottom: 72px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.popular-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(215, 203, 184, .72);
  border-radius: 18px;
  background: rgba(255, 253, 249, .9);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s ease;
}

.popular-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 95, 46, .35);
  box-shadow: var(--shadow-md);
}

.popular-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8dfd2;
}

.popular-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.popular-card:hover .popular-cover > img {
  transform: scale(1.06);
}

.popular-rank {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  min-width: 24px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 5px;
  color: #fff;
  background: rgba(18, 21, 34, .72);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.popular-card:first-child .popular-rank {
  background: linear-gradient(135deg, #ff9a5b, var(--accent));
}

.popular-count {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #3d3429;
  background: rgba(255, 250, 242, .88);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 650;
  backdrop-filter: blur(4px);
}

.popular-count .ico {
  width: 9px;
  height: 9px;
  color: var(--accent);
}

.popular-body {
  padding: 11px 12px 13px;
}

.popular-body h3 {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.popular-body p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.popular-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #a14a27;
  background: #ffeadc;
  font-size: 8px;
  line-height: 1.5;
}

.popular-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.popular-hit:focus-visible {
  outline-offset: -4px;
}

/* ------------------------------- opening ------------------------------- */

.opening-block {
  margin: 20px 0 26px;
  padding: 22px;
  border: 1px solid rgba(255, 95, 46, .2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(255, 173, 117, .14), transparent 65%),
    rgba(255, 251, 245, .78);
}

.opening-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.opening-head h3 {
  margin-top: 7px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.opening-head p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.opening-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 9px;
  border: 1px solid #f0d8c3;
  border-radius: 999px;
  color: #9b5c36;
  background: #fff4e8;
  font-size: 9px;
  white-space: nowrap;
}

.opening-badge .online-dot {
  width: 5px;
  height: 5px;
}

.opening-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.opening-card {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(215, 203, 184, .7);
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 150px;
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .2s ease;
}

.opening-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 95, 46, .35);
  box-shadow: var(--shadow-md);
}

.opening-card.is-highlight {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-color: var(--accent);
  box-shadow: 0 0 0 7px rgba(255, 95, 46, .12), var(--shadow-md);
}

.opening-cover {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #e7ded1;
}

.opening-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.opening-card:hover .opening-cover > img {
  transform: scale(1.045);
}

.opening-cover .home-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.opening-versions {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #fff6ec;
  background: rgba(18, 21, 34, .72);
  font-size: 8px;
  font-weight: 650;
  backdrop-filter: blur(6px);
}

.opening-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 17px 15px;
}

.opening-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.opening-title-row h4 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.opening-title-row span {
  flex: none;
  margin-top: 2px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  line-height: 1.5;
}

.opening-tagline {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.opening-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 0;
  margin-top: 13px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.opening-facts div {
  min-width: 0;
  padding-right: 8px;
}

.opening-facts dt {
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.35;
}

.opening-facts dd {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opening-facts dd.is-text {
  font-family: var(--font);
  font-size: 10.5px;
}

.opening-actions {
  display: flex;
  gap: 7px;
  margin-top: auto;
  padding-top: 13px;
}

.opening-actions .btn {
  flex: 1;
  min-height: 35px;
  padding-inline: 8px;
  font-size: 9.5px;
}

.opening-actions .btn .ico {
  width: 12px;
  height: 12px;
}

.opening-ask {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 220px;
  padding: 22px;
  border: 1px dashed rgba(215, 203, 184, .9);
  border-radius: 16px;
  background: rgba(255, 253, 249, .45);
}

.opening-ask-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--accent);
  background: #ffe6d6;
}

.opening-ask-icon .ico {
  width: 17px;
  height: 17px;
}

.opening-ask h4 {
  margin: 13px 0 0;
  font-size: 18px;
  font-weight: 750;
}

.opening-ask p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.opening-ask .btn {
  min-height: 33px;
  margin-top: 13px;
  font-size: 9.5px;
}

.hall-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 14px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.hall-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.hall-divider small {
  font-size: 9px;
}

/* ------------------------------- referral emphasis ------------------------------- */

.hot-pass-facts .is-referral dt,
.promo-facts .is-referral dt {
  color: #b54322;
}

.hot-pass-facts .is-referral dd,
.promo-facts .is-referral dd {
  color: #d43c1e;
  font-weight: 800;
}

.opening-fact--referral {
  margin-left: -5px;
  padding-left: 5px;
  border-radius: 4px;
  background: #fff0e7;
}

.opening-fact--referral dt,
.opening-fact--referral dd {
  color: #d43c1e;
}

.opening-fact--referral dd {
  font-weight: 800;
}

.promo-referral {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid #ffb18c;
  border-left: 3px solid #ef5a2a;
  border-radius: 6px;
  background: linear-gradient(90deg, #fff3ea, #ffe8d9);
}

.promo-referral-mark,
.update-referral-mark {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: #ef5a2a;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 8px -4px rgba(190, 55, 20, .6);
}

.promo-referral-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.promo-referral-copy span {
  color: #9a4a2f;
  font-size: 8px;
  letter-spacing: .04em;
}

.promo-referral-copy strong {
  color: #d43c1e;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .09em;
}

.promo-referral-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  margin-left: auto;
  padding: 0 9px;
  border-radius: 5px;
  color: #fff;
  background: var(--accent);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.promo-referral-btn .ico {
  width: 11px;
  height: 11px;
}

.update-referral {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid #ffc6aa;
  border-radius: 7px;
  color: #8f4e35;
  background: #fff3ea;
  font-size: 9px;
}

.update-referral-mark {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.update-referral strong {
  color: #d43c1e;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .08em;
}

.update-referral .btn {
  min-height: 26px;
  margin-left: auto;
  padding-inline: 7px;
  font-size: 8.5px;
}

.update-referral .btn .ico {
  width: 9px;
  height: 9px;
}

/* ------------------------------- update dialog ------------------------------- */

.update-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--paper-soft);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .65);
  overflow: auto;
  color: var(--ink);
}

.update-dialog::backdrop,
.promo-dialog::backdrop {
  background: rgba(12, 15, 26, .62);
  backdrop-filter: blur(9px);
}

.update-dialog[open],
.promo-dialog[open] {
  animation: homeModalIn .3s var(--ease) both;
}

.update-close,
.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
  transition: transform .2s ease;
}

.update-close:hover,
.promo-close:hover {
  transform: rotate(90deg);
}

.update-close .ico,
.promo-close .ico {
  width: 16px;
  height: 16px;
}

.update-body {
  padding: 38px 40px 34px;
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding-right: 40px;
}

.update-meta time {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.update-body h2 {
  margin-top: 13px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -.02em;
}

.update-summary {
  margin-top: 9px;
  color: var(--accent-deep);
  font-size: 12px;
  line-height: 1.7;
}

.update-content {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 2;
}

.update-content p {
  margin: 0 0 12px;
}

.update-content p:last-child {
  margin-bottom: 0;
}

.update-recent {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px dashed var(--line-strong);
}

.update-recent h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.update-recent-list {
  display: grid;
  gap: 4px;
}

.update-recent-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
  background: #fff;
  transition: border-color .2s ease, background .2s ease;
}

.update-recent-item:hover {
  border-color: var(--line-strong);
  background: #fffaf4;
}

.update-recent-item time {
  flex: none;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.update-recent-item span {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-game {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf5eb;
}

.update-game > img {
  width: 72px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover;
  flex: none;
}

.update-game div {
  min-width: 0;
}

.update-game b {
  display: block;
  font-size: 12px;
  font-weight: 750;
}

.update-game small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.update-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.update-actions .btn {
  min-height: 36px;
  font-size: 10px;
}

.update-source {
  margin-top: 17px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.6;
}

/* ------------------------------- promo dialog ------------------------------- */

.promo-dialog {
  width: min(940px, calc(100vw - 28px));
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--paper-soft);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .65);
  overflow: auto;
  color: var(--ink);
}

.promo-head {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.promo-cover {
  position: relative;
  min-height: 310px;
  background: #e7ded1;
}

.promo-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-cover .home-badge {
  position: absolute;
  left: 15px;
  bottom: 15px;
}

.promo-info {
  padding: 28px 28px 20px;
}

.promo-info h2 {
  margin: 5px 0 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.promo-tagline {
  margin-top: 4px;
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
}

.promo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}

.promo-tab {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 9px;
  font-weight: 650;
}

.promo-tab.is-active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.promo-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.promo-facts div {
  min-width: 0;
  padding: 0 9px;
  border-right: 1px solid var(--line);
}

.promo-facts div:first-child { padding-left: 0; }
.promo-facts div:last-child { padding-right: 0; border-right: 0; }

.promo-facts dt {
  color: var(--muted-2);
  font-size: 7.5px;
}

.promo-facts dd {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 9.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.promo-actions .btn {
  min-height: 35px;
  padding-inline: 11px;
  font-size: 9.5px;
}

.promo-body {
  padding: 4px 28px 28px;
}

.promo-block {
  padding-top: 17px;
  margin-top: 17px;
  border-top: 1px dashed var(--line-strong);
}

.promo-block h4 {
  margin: 0 0 9px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
}

.promo-links {
  display: grid;
  gap: 5px;
}

.promo-link {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 13px;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid #ece4d7;
  border-radius: 7px;
  background: #fff;
}

.promo-link:hover {
  border-color: var(--accent);
}

.promo-link b {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 650;
}

.promo-link span {
  overflow: hidden;
  color: #8e8577;
  font-family: var(--font-mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-link .ico {
  width: 11px;
  height: 11px;
  color: #b9ae9e;
}

.promo-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.promo-code {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #ece4d7;
  border-radius: 7px;
  background: #fff;
}

.promo-code p {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.promo-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 4px;
  color: #fff8ee;
  background: var(--navy);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.5;
}

.promo-code-btn code {
  overflow: hidden;
  max-width: 130px;
  padding: 0;
  color: inherit;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-code-btn .ico {
  width: 8px;
  height: 8px;
  opacity: .55;
}

.promo-notes {
  margin: 0;
  padding-left: 14px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.75;
  list-style: disc;
}

.promo-notes li + li {
  margin-top: 3px;
}

.promo-source {
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.6;
}

@keyframes homeModalIn {
  from { opacity: 0; transform: translateY(14px) scale(.986); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 1180px) {
  .hot-slide { flex-basis: 92%; }
  .hot-pass { right: 26px; width: 220px; }
  .hot-copy { padding-left: 34px; }
  .popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opening-card { grid-template-columns: 170px minmax(0, 1fr); }
  .opening-title-row h4 { font-size: 22px; }
}

@media (max-width: 960px) {
  .hot-slide { flex-basis: 95%; min-height: 390px; }
  .hot-copy { width: 63%; padding: 30px 0 26px 30px; }
  .hot-copy h3 { font-size: 46px; }
  .hot-pass { width: 200px; right: 20px; padding: 14px; }
  .hot-pass-facts dd { max-width: 118px; font-size: 9px; }
  .opening-grid { grid-template-columns: 1fr; }
  .opening-card { grid-template-columns: 190px minmax(0, 1fr); }
  .promo-head { grid-template-columns: 260px minmax(0, 1fr); }
  .promo-facts { grid-template-columns: 1fr 1fr; gap: 7px 0; }
  .promo-facts div:nth-child(2) { border-right: 0; }
}

@media (max-width: 760px) {
  .hot-wrap { margin-top: 20px; }
  .hot-head { align-items: flex-start; }
  .hot-head h2 { font-size: 30px; }
  .hot-desc { font-size: 11px; }
  .hot-controls { display: none; }
  .hot-index { display: none; }
  .hot-slide { flex-basis: 100%; min-height: 0; }
  .xy-brand--hot {
    top: 14px;
    right: 14px;
    bottom: auto;
    transform: scale(.9);
    transform-origin: top right;
  }
  .xy-brand--card {
    transform: scale(.72);
  }
  .xy-brand--opening {
    top: 6px;
    right: 5px;
    transform: scale(.68);
  }
  .hot-copy { width: 100%; padding: 26px 22px 0; }
  .hot-copy h3 { font-size: 42px; }
  .hot-tagline { font-size: 15px; }
  .hot-meta { margin-top: 14px; }
  .hot-actions { margin-top: 16px; }
  .hot-pass {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 20px 22px 22px;
    transform: rotate(-1deg);
  }
  .hot-pass:hover { transform: rotate(0); }
  .hot-viewport { border-radius: 24px; }
  .hot-slide { border-radius: 24px; }

  .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .popular-body { padding: 9px 10px 11px; }
  .popular-body h3 { font-size: 13.5px; }
  .popular-body p { font-size: 8.5px; }

  .opening-block { padding: 15px; border-radius: 18px; }
  .opening-head { flex-direction: column; align-items: flex-start; gap: 9px; }
  .opening-head h3 { font-size: 24px; }
  .opening-card { grid-template-columns: 130px minmax(0, 1fr); }
  .opening-cover { min-height: 195px; }
  .opening-body { padding: 12px; }
  .opening-title-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .opening-title-row h4 { font-size: 20px; }
  .opening-title-row span { display: inline-block; margin-top: 0; }
  .opening-facts { gap: 7px 0; margin-top: 9px; padding: 8px 0; }
  .opening-facts dd { font-size: 10px; }
  .opening-actions { padding-top: 10px; }
  .opening-actions .btn { min-height: 38px; font-size: 9.5px; }
  .opening-ask { min-height: 195px; }

  .update-body { padding: 30px 20px 24px; }
  .update-body h2 { font-size: 22px; padding-right: 28px; }
  .update-meta { padding-right: 32px; }
  .update-meta time { margin-left: 0; }
  .promo-head { grid-template-columns: 1fr; }
  .promo-cover { min-height: 170px; max-height: 210px; }
  .promo-cover > img { height: 210px; }
  .promo-info { padding: 20px 18px 16px; }
  .promo-info h2 { font-size: 26px; }
  .promo-body { padding: 2px 18px 22px; }
  .promo-codes { grid-template-columns: 1fr; }
  .promo-link { grid-template-columns: 68px minmax(0, 1fr) 13px; }
  .promo-actions .btn,
  .update-actions .btn { min-height: 38px; }
  .promo-referral-btn {
    margin-left: 0;
    width: 100%;
  }
  .update-referral {
    flex-wrap: wrap;
  }
  .update-referral .btn {
    margin-left: 0;
    width: 100%;
    min-height: 32px;
  }
  .update-dialog, .promo-dialog { border-radius: 19px; }
  .update-close, .promo-close { top: 10px; right: 10px; }

  .hot-dots {
    gap: 0;
    margin-top: 4px;
  }
  .hot-dots button {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
  }
  .hot-dots button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #d4c8b8;
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease), background .25s ease;
  }
  .hot-dots button.is-active {
    width: 34px;
    background: transparent;
  }
  .hot-dots button.is-active::before {
    width: 20px;
    background: var(--accent);
  }
}

@media (max-width: 380px) {
  .hot-copy h3 { font-size: 36px; }
  .hot-copy { padding-inline: 18px; }
  .hot-pass { margin-inline: 18px; }
  .opening-card { grid-template-columns: 110px minmax(0, 1fr); }
  .opening-cover { min-height: 180px; }
  .opening-title-row h4 { font-size: 18px; }
  .opening-facts dd { font-size: 9.5px; }
  .popular-grid { grid-template-columns: 1fr; }
  .xy-brand--card { transform: scale(.66); }
  .xy-brand--opening { transform: scale(.6); }
}
