/* =========================================================
   欢喜棋牌 · lobby
   ========================================================= */

/* ---------------------------------------------------------
   Top bar
   --------------------------------------------------------- */
.topbar {
  height: 76px;
  flex: 0 0 76px;
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  padding: 0 clamp(20px, 3.4vw, 54px);
  background:
    linear-gradient(180deg, rgba(3, 22, 18, .92) 0%, rgba(3, 22, 18, .58) 68%, transparent 100%);
}
.topbar::after {
  content: "";
  position: absolute;
  left: clamp(20px, 3.4vw, 54px);
  right: clamp(20px, 3.4vw, 54px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 196, 126, .2) 16%, rgba(230, 196, 126, .26) 50%, rgba(230, 196, 126, .2) 84%, transparent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 204px;
  cursor: pointer;
  user-select: none;
}
.brand-coin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 24%, #fff7cb 0%, #f9db8a 22%, #e1b14f 57%, #a66b22 100%);
  box-shadow:
    0 0 0 2px #54300c,
    0 0 0 4px rgba(240, 207, 129, .65),
    0 0 0 5px rgba(92, 52, 12, .7),
    0 7px 16px rgba(0, 0, 0, .38),
    inset 0 2px 4px rgba(255, 255, 255, .7);
}
.brand-coin::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 3px;
  background: linear-gradient(145deg, #78501a, #3e260c);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .55), 0 0 0 1.5px rgba(255, 235, 172, .35);
}
.brand-coin span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 17px;
  color: #f9e4a6;
  transform: translateY(-1px);
  text-shadow: 0 1px 2px #3e2408;
}
.brand-coin i {
  position: absolute;
  top: 9px;
  left: 13px;
  width: 12px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 252, 222, .66);
  transform: rotate(-25deg);
}
.brand-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 3px;
  color: #ffe9b5;
  background: linear-gradient(180deg, #fff9df 6%, #f6dda1 44%, #d6a94e 80%, #b47d2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(60, 31, 6, .65)) drop-shadow(0 4px 8px rgba(0, 0, 0, .28));
}
.brand-copy p {
  font-size: 8px;
  letter-spacing: 2.4px;
  color: rgba(225, 205, 158, .48);
  margin-top: 4px;
  white-space: nowrap;
}
.main-nav {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.3vw, 18px);
}
.nav-link {
  height: 100%;
  padding: 0 15px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(224, 214, 190, .68);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: color .2s;
  white-space: nowrap;
}
.nav-link span { position: relative; }
.nav-link span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -31px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-200), transparent);
  transform: translateX(-50%);
  transition: width .25s var(--ease-out);
}
.nav-link:hover { color: #fff0c0; }
.nav-link:hover span::after { width: 26px; }
.nav-link.active { color: #fff4d1; font-weight: 700; }
.nav-link.active span::after { width: 28px; }
.nav-link.active::before {
  content: "◆";
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) scale(.5);
  font-size: 7px;
  color: var(--gold-200);
  opacity: 0;
}
.nav-hot {
  font-size: 7px;
  font-style: normal;
  color: #6d2518;
  background: linear-gradient(#ffdda0, #eab45d);
  border-radius: 3px 3px 3px 0;
  padding: 2px 3px;
  line-height: 1;
  letter-spacing: .3px;
  transform: translateY(-8px);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.currency-pill {
  height: 34px;
  min-width: 116px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px 0 8px;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(18, 51, 42, .82), rgba(4, 26, 21, .88));
  border: 1px solid rgba(222, 189, 120, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 4px 10px rgba(0, 0, 0, .14);
  transition: border-color .2s, background .2s;
  color: var(--gold-100);
  font-size: 12px;
}
.currency-pill:hover { border-color: rgba(232, 200, 132, .45); background: linear-gradient(180deg, rgba(24, 64, 52, .9), rgba(6, 33, 27, .92)); }
.currency-pill b { font-weight: 600; letter-spacing: .2px; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.currency-pill .plus {
  margin-left: auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 400;
  color: #49300f;
  background: linear-gradient(180deg, #fff0b8, #e4b95e);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  line-height: 1;
}
.currency-pill.diamonds { min-width: 94px; }
.top-actions .icon-btn { width: 33px; height: 33px; }

/* ---------------------------------------------------------
   Lobby layout
   --------------------------------------------------------- */
.lobby {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  width: min(1510px, calc(100% - clamp(28px, 3.8vw, 72px)));
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr) 316px;
  gap: 20px;
  align-items: start;
}
.lobby > * { min-width: 0; }
.profile-panel { padding: 18px 17px 13px; animation: fadeUp .6s var(--ease-out) both; }
.hall { animation: fadeUp .6s .08s var(--ease-out) both; }
.right-rail { display: flex; flex-direction: column; gap: 13px; animation: fadeUp .6s .16s var(--ease-out) both; }

/* ---------------------------------------------------------
   Profile panel
   --------------------------------------------------------- */
.profile-top { text-align: center; position: relative; }
.avatar-wrap { position: relative; width: 92px; margin: 1px auto 9px; }
.avatar-halo {
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  background: conic-gradient(from 15deg, rgba(242, 206, 130, .02), rgba(242, 206, 130, .35), rgba(242, 206, 130, .02), rgba(110, 218, 182, .2), rgba(242, 206, 130, .02));
  filter: blur(1px);
  animation: haloRotate 10s linear infinite;
}
@keyframes haloRotate { to { transform: rotate(360deg); } }
.avatar-frame {
  width: 92px;
  height: 92px;
  padding: 4px;
  border-radius: 50%;
  position: relative;
  background: linear-gradient(145deg, #f9e3aa, #bd8a35 44%, #704612 62%, #e7c373);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 248, 216, .65);
}
.avatar-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(63, 39, 10, .3);
  z-index: 2;
  pointer-events: none;
}
.avatar-frame .avatar { border-radius: 50%; border: 2px solid #173d31; }
.level-pill {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  z-index: 3;
  height: 18px;
  padding: 0 8px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: #ffe7ac;
  background: linear-gradient(180deg, #4f3214, #25170b);
  border: 1px solid rgba(237, 202, 130, .58);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  white-space: nowrap;
}
.level-pill b { font-size: 9px; color: #fff3c7; font-weight: 600; }
.avatar-status {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #57d6a8;
  border: 2px solid #0b3027;
  z-index: 4;
  box-shadow: 0 0 9px rgba(87, 214, 168, .6);
}
.profile-name-row { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; }
.profile-name-row h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .8px;
  color: #f7edd6;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vip-tag {
  font-size: 8px;
  line-height: 1;
  padding: 3px 5px 4px;
  border-radius: 3px;
  color: #ffecb5;
  background: linear-gradient(135deg, #b2382d, #7c1b18);
  border: 1px solid rgba(242, 196, 115, .45);
  letter-spacing: .4px;
  flex: 0 0 auto;
}
.profile-title {
  margin-top: 6px;
  font-size: 10px;
  color: #b9ab8d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.profile-title .title-flame { color: #e8c26f; font-size: 12px; }
.profile-title i { font-style: normal; opacity: .35; }
.profile-title b { color: #efcb7c; font-weight: 600; }
.exp-block { margin-top: 12px; }
.exp-label { display: flex; justify-content: space-between; font-size: 8px; color: rgba(199, 190, 166, .54); margin-bottom: 5px; letter-spacing: .4px; }
.exp-label b { color: rgba(241, 218, 169, .8); font-weight: 500; }
.exp-track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; position: relative; }
.exp-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5f20, #e7c16d 60%, #fff0b7); box-shadow: 0 0 10px rgba(228, 188, 103, .4); position: relative; }
.exp-track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shine 2.8s ease-in-out infinite; }
.exp-track span { position: absolute; inset: 0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35); border-radius: inherit; }
.wallet {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(224, 189, 118, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .12));
  padding: 5px 10px;
}
.wallet-row { display: flex; align-items: center; gap: 7px; height: 32px; }
.wallet-row + .wallet-row { border-top: 1px dashed rgba(218, 183, 111, .1); }
.wallet-label { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #b9ae95; min-width: 66px; }
.wallet-row > b { font-size: 13px; color: #f4dfaf; font-weight: 600; letter-spacing: .2px; margin-left: auto; font-variant-numeric: tabular-nums; }
.wallet-row .text-link { font-size: 9px; border: 1px solid rgba(226, 190, 116, .25); border-radius: 8px; height: 19px; padding: 0 7px; color: #d8b872; flex: 0 0 auto; }
.wallet-row .text-link:hover { background: rgba(226, 190, 116, .1); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.quick-btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  padding: 6px 6px;
  border: 1px solid rgba(223, 189, 120, .1);
  background: rgba(255, 255, 255, .025);
  text-align: left;
  position: relative;
  transition: .2s;
}
.quick-btn:hover { border-color: rgba(228, 195, 126, .28); background: rgba(241, 207, 134, .06); transform: translateY(-1px); }
.quick-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-kai);
  font-size: 13px;
  color: #f2d89b;
  background: linear-gradient(145deg, rgba(69, 111, 90, .8), rgba(22, 58, 47, .8));
  border: 1px solid rgba(225, 193, 126, .2);
  flex: 0 0 auto;
}
.quick-btn:nth-child(2) .quick-ico { background: linear-gradient(145deg, #7f4b31, #3c2018); }
.quick-btn:nth-child(3) .quick-ico { background: linear-gradient(145deg, #46657b, #1c303e); }
.quick-btn:nth-child(4) .quick-ico { background: linear-gradient(145deg, #675886, #2b233d); }
.quick-btn > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.quick-btn b { font-size: 10px; font-weight: 500; color: #e5dbc5; white-space: nowrap; }
.quick-btn small { font-size: 8px; color: rgba(193, 184, 163, .48); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-btn .red-dot { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; background: #e05a49; border-radius: 50%; box-shadow: 0 0 6px rgba(224, 90, 73, .7); }
.panel-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0 7px;
  font-size: 10px;
  color: rgba(221, 202, 165, .62);
}
.panel-divider::before, .panel-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(215, 181, 111, .18)); }
.panel-divider::after { background: linear-gradient(90deg, rgba(215, 181, 111, .18), transparent); }
.panel-divider i { font-style: normal; font-size: 7px; letter-spacing: 1.5px; color: rgba(207, 187, 147, .3); }
.friend-feed { display: flex; flex-direction: column; gap: 4px; }
.friend-row { height: 30px; display: flex; align-items: center; gap: 7px; position: relative; }
.friend-row .mini-avatar { width: 25px; height: 25px; }
.friend-row > div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.friend-row b { font-size: 9.5px; font-weight: 500; color: #dcd2bd; }
.friend-row small { font-size: 8px; color: rgba(184, 178, 158, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-row .online-dot { width: 5px; height: 5px; border-radius: 50%; background: #56d1a5; margin-left: auto; flex: 0 0 auto; }
.friend-row .online-dot.away { background: #b79b5e; }
.profile-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(222, 190, 123, .08);
  padding-top: 8px;
  margin-top: 9px;
  font-size: 7.5px;
  color: rgba(183, 175, 154, .34);
  letter-spacing: .4px;
}

/* ---------------------------------------------------------
   Hall heading
   --------------------------------------------------------- */
.hall-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 4px 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 7.5px;
  letter-spacing: 2.7px;
  color: rgba(223, 198, 147, .45);
  margin-bottom: 5px;
}
.eyebrow span { display: inline-block; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, rgba(223, 198, 147, .5)); }
.eyebrow span:last-child { transform: scaleX(-1); }
.heading-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.55vw, 38px);
  font-weight: 400;
  letter-spacing: 1px;
  color: #f8e9c4;
  line-height: 1.12;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .25);
}
.heading-copy h2 em {
  font-style: normal;
  color: #f6d58b;
  text-shadow: 0 0 26px rgba(246, 213, 139, .22);
  position: relative;
}
.heading-copy h2 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background: radial-gradient(ellipse, rgba(241, 205, 130, .25), transparent 70%);
}
.heading-copy p { font-size: 10px; letter-spacing: 1px; color: rgba(203, 196, 173, .45); margin-top: 5px; }
.heading-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; padding-bottom: 2px; }
.online-total { font-size: 9px; color: rgba(194, 200, 183, .46); display: flex; align-items: center; gap: 5px; letter-spacing: .3px; }
.online-total b { font-weight: 500; color: rgba(231, 210, 164, .72); }
.pulse-dot { width: 5px; height: 5px; border-radius: 50%; background: #64d8ae; animation: pulseDot 2.2s infinite; }
.daily-btn {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(231, 196, 123, .25);
  border-radius: 15px;
  padding: 0 12px 0 4px;
  color: #e9d4a1;
  font-size: 10px;
  background: linear-gradient(180deg, rgba(56, 55, 32, .45), rgba(10, 37, 30, .68));
  transition: .2s;
  position: relative;
}
.daily-btn:hover { border-color: rgba(231, 196, 123, .5); background: rgba(72, 64, 34, .4); }
.daily-btn span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4e2d0b;
  font-family: var(--font-kai);
  font-size: 12px;
  background: linear-gradient(145deg, #ffe8a3, #d3a43f);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5);
}
.daily-btn i { width: 4px; height: 4px; background: #e05b49; border-radius: 50%; position: absolute; top: 3px; right: 4px; }

/* ---------------------------------------------------------
   Game cards
   --------------------------------------------------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 15px;
}
.game-card {
  min-width: 0;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #0d3b31, #061f1a);
  border: 1px solid rgba(227, 192, 121, .22);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 245, 208, .05);
  cursor: pointer;
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
  isolation: isolate;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 219, .03);
  z-index: 6;
}
.game-card:hover, .game-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(242, 208, 136, .56);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .42), 0 0 30px rgba(226, 187, 106, .08), inset 0 1px 0 rgba(255, 245, 208, .08);
  outline: none;
}
.game-art {
  height: 226px;
  position: relative;
  overflow: hidden;
  background: #0a2a23;
}
.cover-svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1.015) translateZ(0);
  transition: transform .8s var(--ease-out), filter .5s;
}
.game-card:hover .cover-svg { transform: scale(1.055) translateZ(0); filter: saturate(1.08) brightness(1.03); }
.art-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(3, 20, 16, .95) 0%, rgba(3, 20, 16, .32) 17%, transparent 45%),
    linear-gradient(120deg, rgba(3, 18, 14, .62) 0%, transparent 46%);
}
.game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity: .12;
  mix-blend-mode: overlay;
}
.art-copy { position: absolute; left: 15px; top: 14px; z-index: 4; pointer-events: none; }
.art-copy small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: rgba(246, 226, 179, .66);
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}
.art-logo {
  font-weight: 400;
  font-size: clamp(30px, 2.9vw, 43px);
  line-height: 1;
  letter-spacing: 1px;
  color: #f8e2a4;
  background: linear-gradient(180deg, #fffbe7 0%, #ffe8ab 34%, #eac162 64%, #b27525 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(46, 25, 5, .85)) drop-shadow(0 5px 12px rgba(0, 0, 0, .55));
  transform: rotate(-2deg);
  transform-origin: left top;
  white-space: nowrap;
}
.art-logo.numeric {
  font-family: Impact, "Arial Black", "Arial Narrow", sans-serif;
  font-size: clamp(40px, 4vw, 56px);
  letter-spacing: 0;
  transform: rotate(-3deg) scaleX(1.03);
  background: linear-gradient(180deg, #fff9e5 0%, #ffe1a0 25%, #e8ae4e 56%, #a95a21 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #54210e) drop-shadow(0 5px 14px rgba(0, 0, 0, .6));
}
.art-logo.brush { font-family: var(--font-display); letter-spacing: 2px; }
.art-logo.brush-small { font-size: clamp(27px, 2.6vw, 38px); letter-spacing: 1px; }
.art-seal {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-kai);
  font-size: 10px;
  letter-spacing: 1px;
  color: #f7ddb0;
  background: radial-gradient(circle at 35% 30%, rgba(205, 77, 55, .96), rgba(118, 28, 24, .96));
  border: 1px solid rgba(255, 222, 161, .5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(86, 18, 14, .3);
  transform: rotate(7deg);
}
.art-seal.seal-red { color: #ffe8bc; background: radial-gradient(circle at 35% 30%, rgba(151, 41, 36, .96), rgba(83, 19, 18, .96)); }
.hot-badge {
  position: absolute;
  top: 52px;
  right: 12px;
  z-index: 4;
  height: 18px;
  padding: 0 7px 0 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9px;
  font-size: 8px;
  color: #ffe7b1;
  background: rgba(80, 25, 16, .8);
  border: 1px solid rgba(243, 191, 105, .25);
  backdrop-filter: blur(4px);
}
.hot-badge i { width: 4px; height: 4px; background: #ffae5c; border-radius: 50%; box-shadow: 0 0 6px #ff8b41; }
.hot-badge.soft { color: #ffd9ce; background: rgba(90, 27, 30, .68); }
.hot-badge.jade { color: #c9ffe4; background: rgba(13, 74, 55, .78); border-color: rgba(107, 222, 179, .26); }
.game-info {
  position: relative;
  z-index: 3;
  padding: 12px 13px 13px;
  background:
    radial-gradient(ellipse at 50% -30%, rgba(43, 110, 84, .17), transparent 60%),
    linear-gradient(180deg, #0a352b, #06221c);
  border-top: 1px solid rgba(230, 194, 122, .12);
  display: flex;
  flex-direction: column;
  min-height: 154px;
}
.game-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-title-row h4 { font-size: 16px; font-weight: 600; letter-spacing: .4px; color: #f8ecd2; white-space: nowrap; }
.online { display: flex; align-items: center; gap: 3px; font-size: 8px; color: rgba(186, 201, 182, .44); white-space: nowrap; }
.online i { width: 4px; height: 4px; border-radius: 50%; background: #64d8ae; box-shadow: 0 0 5px rgba(100, 216, 174, .4); }
.game-info > p { font-size: 9px; color: rgba(191, 189, 165, .47); margin-top: 4px; letter-spacing: .15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-row { display: flex; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.tag-row span {
  font-size: 8px;
  color: rgba(228, 205, 158, .6);
  border: 1px solid rgba(226, 194, 127, .13);
  background: rgba(255, 255, 255, .025);
  border-radius: 3px;
  padding: 2px 5px;
  line-height: 1.2;
}
.game-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.room-hint { font-size: 8px; color: rgba(187, 182, 160, .4); white-space: nowrap; }
.room-hint b { color: #ddc28a; font-weight: 600; }
.play-btn {
  height: 34px;
  padding: 0 13px 0 15px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #51300b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(180deg, #fff1bd 0%, #f3d17b 38%, #d9a945 100%);
  border: 1px solid rgba(255, 247, 210, .65);
  box-shadow: 0 3px 0 #845719, 0 6px 12px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .65);
  transition: transform .2s, filter .2s, box-shadow .2s;
  white-space: nowrap;
}
.play-btn svg { width: 12px; height: 12px; transition: transform .2s; }
.play-btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 4px 0 #845719, 0 9px 16px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .7); }
.play-btn:hover svg { transform: translateX(2px); }
.play-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #845719; }
.card-wushi .art-seal { background: radial-gradient(circle at 35% 30%, rgba(158, 61, 38, .96), rgba(78, 27, 20, .96)); }
.card-mahjong .art-seal { background: radial-gradient(circle at 35% 30%, rgba(38, 114, 87, .96), rgba(14, 55, 45, .96)); }

/* ---------------------------------------------------------
   Hall bottom
   --------------------------------------------------------- */
.hall-bottom { display: flex; align-items: stretch; gap: 10px; margin-top: 12px; }
.notice-bar {
  min-width: 0;
  flex: 1;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(224, 190, 120, .13);
  background: linear-gradient(180deg, rgba(10, 43, 35, .58), rgba(3, 25, 20, .65));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px 0 8px;
  overflow: hidden;
}
.notice-label {
  flex: 0 0 auto;
  font-size: 9px;
  color: #f0d59d;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(174, 80, 39, .22);
  border: 1px solid rgba(232, 183, 96, .2);
  letter-spacing: 1px;
}
.notice-track { overflow: hidden; min-width: 0; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.notice-scroll { display: flex; gap: 46px; width: max-content; animation: noticeScroll 32s linear infinite; }
.notice-scroll span { display: inline-flex; align-items: center; gap: 34px; font-size: 9.5px; color: rgba(205, 197, 169, .55); white-space: nowrap; }
.notice-scroll span::after { content: "◆"; font-size: 5px; color: rgba(225, 188, 108, .4); }
@keyframes noticeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.friend-room {
  flex: 0 0 240px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(224, 190, 120, .18);
  background: linear-gradient(100deg, rgba(50, 45, 28, .46), rgba(8, 37, 29, .66));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  cursor: pointer;
  transition: .2s;
}
.friend-room:hover { border-color: rgba(234, 200, 130, .42); background: linear-gradient(100deg, rgba(74, 59, 32, .55), rgba(10, 45, 35, .72)); }
.room-ico {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: var(--font-kai);
  font-size: 12px;
  color: #f3d9a0;
  background: linear-gradient(145deg, #626b3a, #263822);
  border: 1px solid rgba(235, 204, 137, .22);
}
.friend-room > div { display: flex; flex-direction: column; gap: 1px; }
.friend-room b { font-size: 10px; color: #e8ddc6; font-weight: 500; }
.friend-room small { font-size: 8px; color: rgba(190, 183, 159, .42); }
.friend-room svg { width: 12px; height: 12px; margin-left: auto; color: rgba(235, 207, 146, .4); }
.hall-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.quick-entry {
  min-width: 0;
  min-height: 58px;
  border-radius: 10px;
  border: 1px solid rgba(227, 192, 121, .14);
  background: linear-gradient(130deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  text-align: left;
  transition: .2s;
}
.quick-entry:hover { border-color: rgba(236, 203, 134, .35); background: rgba(231, 195, 123, .07); transform: translateY(-1px); }
.quick-entry-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-family: var(--font-kai);
  font-size: 12px;
  color: #efd69d;
  border: 1px solid rgba(229, 195, 125, .18);
  background: rgba(70, 98, 60, .35);
}
.qe-arena { background: rgba(112, 77, 39, .34); color: #f3d29b; }
.qe-shop { background: rgba(71, 85, 107, .36); color: #c5ddec; }
.qe-gift { background: rgba(117, 52, 45, .36); color: #f2c4a4; }
.quick-entry > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quick-entry b { font-size: 9px; color: #ddd0b6; font-weight: 500; white-space: nowrap; }
.quick-entry small { font-size: 7.5px; color: rgba(178, 171, 151, .4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-entry > i { margin-left: auto; font-style: normal; font-size: 12px; color: rgba(232, 202, 139, .3); }
@media (max-height: 850px) and (min-width: 1011px) {
  .hall-quick { display: none; }
}

/* ---------------------------------------------------------
   Right rail
   --------------------------------------------------------- */
.welfare-panel { padding: 13px 15px 12px; }
.rail-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 36px;
  border-bottom: 1px solid rgba(225, 190, 119, .11);
  position: relative;
  margin-bottom: 11px;
}
.rail-tab {
  height: 100%;
  padding: 0;
  font-size: 12px;
  color: rgba(196, 189, 167, .5);
  position: relative;
  letter-spacing: .5px;
  transition: color .2s;
}
.rail-tab:hover { color: #e7d8b7; }
.rail-tab.active { color: #f6e4bc; font-weight: 600; }
.rail-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-200), transparent);
}
.rail-tab-ornament { margin-left: auto; width: 22px; height: 1px; background: linear-gradient(90deg, rgba(230, 194, 118, .3), transparent); }
.rail-pane { display: none; animation: paneIn .3s var(--ease-out); }
.rail-pane.active { display: block; }
@keyframes paneIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.signin-card {
  height: 106px;
  border-radius: 11px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 12px;
  cursor: pointer;
  background:
    radial-gradient(ellipse at 78% 46%, rgba(243, 203, 113, .16), transparent 45%),
    linear-gradient(115deg, rgba(100, 47, 28, .75), rgba(41, 47, 31, .7) 55%, rgba(13, 51, 40, .85));
  border: 1px solid rgba(231, 193, 117, .25);
  box-shadow: inset 0 1px 0 rgba(255, 239, 198, .08), 0 6px 18px rgba(0, 0, 0, .16);
}
.signin-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -10px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(242, 207, 131, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(242, 207, 131, .03), 0 0 0 28px rgba(242, 207, 131, .02);
}
.signin-copy { position: relative; z-index: 2; }
.signin-copy small { font-size: 7px; letter-spacing: 2px; color: rgba(245, 217, 160, .45); display: block; margin-bottom: 4px; }
.signin-copy h3 { font-size: 15px; font-weight: 500; color: #f5e1b4; letter-spacing: .4px; }
.signin-copy h3 b { color: #ffd986; font-size: 18px; font-weight: 600; margin: 0 2px; }
.signin-copy p { font-size: 8px; color: rgba(227, 206, 163, .52); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.signin-copy p .coin-icon { box-shadow: none; }
.signin-btn {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 11px;
  height: 24px;
  border-radius: 12px;
  padding: 0 13px;
  font-size: 9px;
  font-weight: 700;
  color: #54330b;
  background: linear-gradient(180deg, #fff0b2, #e5ba58);
  border: 1px solid rgba(255, 239, 190, .55);
  box-shadow: 0 2px 0 #7b531b;
  transition: .2s;
}
.signin-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gift-box { position: absolute; right: 20px; top: 12px; width: 54px; height: 52px; z-index: 2; }
.gift-body {
  position: absolute;
  bottom: 0;
  left: 5px;
  width: 44px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(140deg, #ddb463, #a36f25);
  border: 1px solid rgba(255, 239, 190, .38);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(86, 51, 12, .2);
  display: grid;
  place-items: center;
}
.gift-body span { font-family: var(--font-kai); font-size: 18px; color: #6f3c0c; text-shadow: 0 1px 0 rgba(255, 241, 186, .4); }
.gift-lid {
  position: absolute;
  top: 8px;
  left: 0;
  width: 54px;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f2d087, #b98232);
  border: 1px solid rgba(255, 245, 208, .42);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .22);
}
.gift-lid::after { content: ""; position: absolute; left: 50%; top: -7px; width: 12px; height: 10px; transform: translateX(-50%); border: 3px solid #e2b962; border-radius: 50% 50% 0 0; }
.gift-glow { position: absolute; inset: -10px; background: radial-gradient(circle, rgba(245, 206, 119, .22), transparent 65%); animation: giftPulse 2.6s infinite; }
@keyframes giftPulse { 0%, 100% { opacity: .6; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
.rail-section-head { display: flex; align-items: center; justify-content: space-between; height: 31px; }
.rail-section-head h4 { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: #e8ddc4; letter-spacing: .3px; }
.ico-gem {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-family: var(--font-kai);
  font-size: 9px;
  color: #f0deae;
  background: rgba(140, 76, 42, .3);
  border: 1px solid rgba(223, 177, 100, .18);
}
.ico-gem.gold { background: rgba(156, 118, 43, .28); }
.task-list { display: flex; flex-direction: column; gap: 2px; }
.task-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 52px;
  grid-template-rows: auto auto;
  gap: 2px 7px;
  align-items: center;
  padding: 7px 5px;
  border-radius: 8px;
  transition: background .2s;
  position: relative;
}
.task-row:hover { background: rgba(255, 255, 255, .025); }
.task-row::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 0; height: 1px; background: rgba(219, 187, 121, .06); }
.task-row:last-child::after { display: none; }
.task-ico {
  grid-row: 1 / span 2;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #dac18d;
  font-family: var(--font-kai);
  font-size: 11px;
  background: linear-gradient(145deg, rgba(59, 91, 74, .75), rgba(14, 44, 35, .8));
  border: 1px solid rgba(224, 188, 116, .12);
}
.task-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task-info b { font-size: 9.5px; font-weight: 500; color: #dbd0b9; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-info span { font-size: 8px; color: rgba(183, 177, 155, .4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-progress { grid-column: 2; display: flex; align-items: center; gap: 5px; }
.task-progress i { display: block; height: 3px; flex: 1; max-width: 83px; border-radius: 2px; background: linear-gradient(90deg, #806128, #d7b66c); position: relative; overflow: hidden; }
.task-progress i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent); animation: shine 2.4s infinite; }
.task-progress em { font-style: normal; font-size: 7.5px; color: rgba(196, 184, 153, .42); }
.task-claim {
  grid-column: 3;
  grid-row: 1 / span 2;
  height: 22px;
  border-radius: 11px;
  border: 1px solid rgba(223, 185, 108, .2);
  color: rgba(226, 200, 146, .7);
  font-size: 8px;
  background: rgba(255, 255, 255, .02);
  white-space: nowrap;
  transition: .2s;
}
.task-claim.ready {
  color: #51300b;
  font-weight: 700;
  border-color: rgba(255, 238, 186, .6);
  background: linear-gradient(180deg, #ffedb0, #dfb557);
  box-shadow: 0 2px 0 #765019;
  cursor: pointer;
}
.task-claim.ready:hover { filter: brightness(1.08); }
.task-claim.claimed { color: rgba(152, 170, 154, .4); }
.rank-teaser { margin-top: 6px; }
.rank-row { height: 37px; display: flex; align-items: center; gap: 7px; padding: 0 5px; border-radius: 7px; }
.rank-row:hover { background: rgba(255, 255, 255, .02); }
.rank-row .mini-avatar { width: 24px; height: 24px; }
.rank-num { width: 12px; font-family: "Georgia", serif; font-size: 11px; font-weight: 700; color: rgba(188, 177, 151, .45); text-align: center; flex: 0 0 auto; font-style: italic; }
.rank-one .rank-num { color: #f0ca75; }
.rank-row > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rank-row b { font-size: 9.5px; font-weight: 500; color: #ddd1bb; }
.rank-row small { font-size: 7.5px; color: rgba(181, 173, 151, .36); }
.rank-crown { margin-left: auto; color: #e9c16b; font-size: 13px; transform: rotate(-9deg); }
.rank-up { margin-left: auto; font-size: 7px; color: #5fd2a5; font-style: normal; }
.rank-row.me { background: rgba(222, 181, 96, .055); border: 1px solid rgba(222, 181, 96, .1); }
.rank-row.me b { color: #f1d699; }
.live-feed {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  height: 27px;
  border-radius: 6px;
  padding: 0 8px;
  background: rgba(0, 0, 0, .16);
  border: 1px solid rgba(226, 191, 121, .07);
  overflow: hidden;
}
.live-dot { width: 4px; height: 4px; border-radius: 50%; background: #e7bd68; box-shadow: 0 0 6px #e7bd68; animation: pulseDot 2s infinite; flex: 0 0 auto; }
.live-feed p { font-size: 8px; color: rgba(194, 185, 160, .44); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-feed p b { color: rgba(238, 206, 139, .72); font-weight: 500; }
.mini-tournament {
  border-radius: 12px;
  border: 1px solid rgba(224, 189, 116, .16);
  background:
    radial-gradient(ellipse at 80% 45%, rgba(210, 167, 79, .14), transparent 55%),
    linear-gradient(110deg, rgba(30, 46, 35, .85), rgba(9, 36, 29, .86));
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.mini-tournament:hover { border-color: rgba(234, 200, 130, .34); transform: translateY(-2px); }
.tournament-art { width: 42px; height: 48px; position: relative; display: grid; place-items: center; flex: 0 0 auto; }
.trophy-mark { font-size: 26px; filter: sepia(.4) saturate(.7) drop-shadow(0 3px 5px rgba(0,0,0,.4)); z-index: 2; }
.tournament-rings { position: absolute; inset: 0; border: 1px solid rgba(235, 202, 132, .18); border-radius: 50%; transform: rotate(-12deg) scaleY(.6); }
.tournament-rings::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(235, 202, 132, .1); border-radius: 50%; }
.tournament-copy { min-width: 0; flex: 1; }
.tournament-copy small { font-size: 6.5px; letter-spacing: 1.6px; color: rgba(222, 194, 135, .4); }
.tournament-copy h3 { font-size: 10.5px; color: #ecd9b0; font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tournament-copy p { font-size: 7.5px; color: rgba(186, 177, 152, .4); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tournament-btn {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  font-size: 8px;
  color: #f4e0b3;
  border: 1px solid rgba(235, 201, 129, .26);
  background: rgba(255, 255, 255, .04);
  transition: .2s;
}
.tournament-btn:hover { background: rgba(235, 201, 129, .12); }
.service-line { display: flex; align-items: center; justify-content: center; gap: 17px; padding: 1px 0 2px; }
.service-line button { display: flex; align-items: center; gap: 4px; color: rgba(185, 180, 158, .38); font-size: 8px; transition: color .2s; }
.service-line button:hover { color: rgba(239, 212, 156, .8); }
.service-line span { width: 12px; height: 12px; display: grid; place-items: center; border: 1px solid rgba(214, 188, 128, .22); border-radius: 50%; font-size: 7px; color: rgba(224, 197, 137, .5); }

/* ---------------------------------------------------------
   Leaderboard pane
   --------------------------------------------------------- */
.leaderboard-head { position: relative; padding: 5px 2px 12px; text-align: center; }
.leaderboard-head .kicker { font-size: 7px; letter-spacing: 2.4px; color: rgba(227, 194, 126, .42); }
.leaderboard-head h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: #f2deba; letter-spacing: 2px; margin-top: 3px; }
.leaderboard-head p { font-size: 7.5px; color: rgba(183, 174, 151, .4); margin-top: 4px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 5px; margin: 9px 0 12px; height: 137px; }
.podium-player { width: 29%; min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; padding: 7px 4px 6px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .08)); border: 1px solid rgba(223, 189, 119, .1); }
.podium-player .mini-avatar { width: 34px; height: 34px; border-width: 1.5px; }
.podium-player b { font-size: 9px; font-weight: 500; color: #e4d6bc; margin-top: 4px; white-space: nowrap; }
.podium-player small { font-size: 7px; color: rgba(208, 185, 134, .55); margin-top: 1px; }
.podium-player i { font-style: italic; font-family: "Georgia", serif; font-weight: 700; color: rgba(218, 191, 135, .65); font-size: 13px; margin-top: 4px; }
.podium-player.first { height: 128px; border-color: rgba(239, 205, 134, .35); background: linear-gradient(180deg, rgba(210, 168, 78, .15), rgba(50, 38, 17, .2)); box-shadow: 0 0 22px rgba(229, 192, 111, .08); }
.podium-player.first .mini-avatar { width: 43px; height: 43px; border-color: rgba(250, 221, 158, .65); box-shadow: 0 0 20px rgba(232, 194, 111, .2); }
.podium-player.first b { font-size: 10px; color: #f7e7c4; }
.podium-player.third { height: 104px; }
.podium-player .crown { position: absolute; top: -14px; color: #f0ca75; font-size: 18px; transform: rotate(-8deg); }
.leader-list { display: flex; flex-direction: column; gap: 1px; }
.leader-row { height: 30px; display: flex; align-items: center; gap: 9px; padding: 0 8px; border-radius: 5px; font-size: 9px; color: #c9bda5; }
.leader-row span { width: 13px; font-family: "Georgia", serif; font-style: italic; color: rgba(183, 172, 145, .36); }
.leader-row b { font-weight: 400; }
.leader-row em { margin-left: auto; font-style: normal; font-family: "Georgia", serif; font-size: 9px; color: rgba(226, 197, 133, .68); }
.leader-row.mine { background: rgba(219, 177, 91, .07); border: 1px solid rgba(219, 177, 91, .13); color: #f1dba9; }
.leaderboard-footer { text-align: center; font-size: 7px; color: rgba(172, 166, 144, .3); padding: 10px 0 2px; letter-spacing: .4px; }

/* ---------------------------------------------------------
   Bottom friend-table banner
   --------------------------------------------------------- */
.lobby-extra {
  position: relative;
  z-index: 4;
  flex: 1 0 auto;
  min-height: 64px;
  width: min(1510px, calc(100% - clamp(28px, 3.8vw, 72px)));
  margin: 12px auto 0;
  padding: 10px clamp(18px, 2.3vw, 34px);
  border-radius: 14px;
  border: 1px solid rgba(227, 191, 116, .2);
  background:
    radial-gradient(ellipse at 18% 40%, rgba(63, 128, 94, .22), transparent 32%),
    radial-gradient(ellipse at 88% 70%, rgba(174, 118, 42, .1), transparent 32%),
    linear-gradient(100deg, rgba(10, 50, 39, .85), rgba(5, 29, 24, .9));
  box-shadow: inset 0 1px 0 rgba(255, 243, 202, .06), 0 10px 28px rgba(0, 0, 0, .15);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  overflow: hidden;
  isolation: isolate;
}
.lobby-extra::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(233, 198, 127, .08);
  border-radius: 9px;
  pointer-events: none;
}
.lobby-extra::after {
  content: "";
  position: absolute;
  right: 10%;
  top: -70%;
  width: 300px;
  height: 440px;
  border: 1px solid rgba(231, 195, 123, .1);
  border-radius: 50%;
  transform: rotate(24deg);
  pointer-events: none;
  box-shadow: 0 0 0 18px rgba(231, 195, 123, .018), 0 0 0 40px rgba(231, 195, 123, .012);
}
.extra-pattern {
  position: absolute;
  right: 20%;
  top: 0;
  bottom: 0;
  width: 250px;
  opacity: .16;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(224, 190, 121, .3) 49%, transparent 51%),
    linear-gradient(-45deg, transparent 48%, rgba(224, 190, 121, .3) 49%, transparent 51%);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, transparent);
  pointer-events: none;
}
.extra-crest {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-family: var(--font-kai);
  font-size: 24px;
  color: #f5dca6;
  border: 1px solid rgba(235, 200, 130, .35);
  background: radial-gradient(circle at 35% 30%, rgba(61, 121, 92, .95), rgba(10, 44, 34, .95));
  box-shadow: 0 0 0 4px rgba(236, 200, 128, .04), 0 7px 16px rgba(0, 0, 0, .25);
}
.extra-copy { min-width: 0; flex: 0 1 auto; }
.extra-kicker { display: block; font-size: 6.5px; letter-spacing: 2.4px; color: rgba(223, 195, 139, .38); }
.extra-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.65vw, 28px);
  font-weight: 400;
  letter-spacing: 2px;
  color: #f5e4bd;
  line-height: 1.2;
  margin-top: 3px;
  white-space: nowrap;
}
.extra-copy p { font-size: 8px; color: rgba(189, 181, 157, .42); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.extra-middle { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.extra-avatars { display: flex; align-items: center; }
.extra-avatars .mini-avatar { width: 30px; height: 30px; border-color: rgba(236, 202, 134, .4); margin-left: -7px; background: #0c3329; }
.extra-avatars .mini-avatar:first-child { margin-left: 0; }
.extra-avatars .extra-plus { display: grid; place-items: center; font-size: 11px; color: rgba(238, 215, 168, .62); background: rgba(8, 36, 28, .9); border-style: dashed; }
.extra-online { display: flex; align-items: center; gap: 4px; font-size: 7.5px; color: rgba(189, 181, 157, .42); white-space: nowrap; }
.extra-online i { width: 4px; height: 4px; border-radius: 50%; background: #67d6ab; animation: pulseDot 2.2s infinite; }
.extra-online b { color: rgba(236, 209, 149, .7); font-weight: 500; }
.extra-perks { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.extra-perks span { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; color: rgba(216, 200, 168, .55); white-space: nowrap; }
.extra-perks i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 5px; font-style: normal; font-family: var(--font-kai); font-size: 9px; color: #e5cd98; border: 1px solid rgba(228, 193, 123, .17); background: rgba(255, 255, 255, .03); }
.extra-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.extra-actions .ghost-btn { min-height: 32px; padding: 0 14px; font-size: 9px; }
.extra-actions .gold-btn { min-height: 32px; padding: 0 15px; font-size: 9px; border-radius: 8px; }
.extra-actions .gold-btn svg { width: 11px; height: 11px; }
.lobby-extra + .lobby-footer { margin-top: 6px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.lobby-footer {
  flex: 0 0 34px;
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 48px);
  width: min(1510px, calc(100% - clamp(28px, 3.8vw, 72px)));
  margin: 7px auto 0;
  padding: 0 2px;
  font-size: 7.5px;
  letter-spacing: .2px;
  color: rgba(174, 172, 151, .28);
}
.lobby-footer > span:last-child { text-align: right; }
.footer-links { display: flex; gap: 13px; }
.footer-links a:hover { color: rgba(224, 200, 150, .7); }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1400px) {
  .lobby { grid-template-columns: 258px minmax(0, 1fr) 300px; gap: 16px; }
  .profile-panel { padding: 16px 14px 12px; }
  .game-art { height: 213px; }
  .game-info { min-height: 149px; padding: 11px 12px 12px; }
  .game-title-row h4 { font-size: 15px; }
  .game-info > p { font-size: 8.5px; }
  .play-btn { height: 32px; font-size: 10px; padding-left: 12px; padding-right: 11px; }
  .currency-pill { min-width: 105px; }
  .currency-pill b { font-size: 11px; }
  .top-actions { gap: 3px; }
  .top-actions .icon-btn { width: 31px; height: 31px; }
}
@media (max-width: 1220px) {
  .lobby { grid-template-columns: 252px minmax(0, 1fr); }
  .extra-perks { display: none; }
  .extra-middle { align-items: flex-end; }
  .lobby-extra { gap: 18px; }
  .right-rail { display: none; }
  .game-art { height: 232px; }
  .hall { padding-right: 2px; }
  .top-actions .icon-btn:nth-last-child(1) { display: none; }
}
@media (max-width: 1010px) {
  .topbar {
    height: 68px;
    flex-basis: 68px;
    gap: 8px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .brand { min-width: 170px; }
  .brand-coin { width: 42px; height: 42px; }
  .brand-coin::before { inset: 12px; }
  .brand-copy h1 { font-size: 24px; letter-spacing: 2px; }
  .brand-copy p { font-size: 7px; }
  .main-nav { gap: 0; }
  .nav-link { padding: 0 9px; font-size: 12.5px; }
  .currency-pill.diamonds { display: none; }
  .top-actions .icon-btn { width: 29px; height: 29px; }
  .top-actions .icon-btn svg { width: 17px; height: 17px; }
  .lobby { grid-template-columns: 1fr; width: calc(100% - 30px); margin-top: 12px; }
  .profile-panel { display: none; }
  .lobby-footer { flex-basis: 28px; }
}
@media (max-width: 820px) {
  .topbar { padding: 0 14px; }
  .extra-middle { display: none; }
  .extra-copy p { display: none; }
  .extra-copy h3 { font-size: 17px; }
  .extra-actions .ghost-btn { display: none; }
  .lobby-extra { min-height: 64px; padding: 9px 14px; }
  .brand { min-width: auto; margin-right: auto; }
  .main-nav { display: none; }
  .currency-pill.beans { min-width: 94px; height: 30px; }
  .currency-pill.beans b { font-size: 10px; }
  .top-actions .icon-btn:nth-last-child(2) { display: none; }
  .game-grid { gap: 10px; }
  .game-art { height: 190px; }
  .art-copy small { font-size: 7px; letter-spacing: .8px; }
  .art-logo { font-size: 27px; }
  .art-logo.numeric { font-size: 38px; }
  .art-logo.brush-small { font-size: 24px; }
  .art-seal { width: 28px; height: 28px; font-size: 8px; }
  .hot-badge { display: none; }
  .game-info { min-height: 145px; }
  .online { display: none; }
  .tag-row span:nth-child(3) { display: none; }
  .hall-heading { align-items: flex-start; }
  .heading-copy p { max-width: 250px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .heading-right { display: none; }
  .friend-room { flex-basis: 180px; }
  .friend-room small { display: none; }
  .notice-bar { height: 40px; }
  .friend-room { height: 40px; }
  .lobby-footer > span:last-child { display: none; }
}
@media (max-width: 680px) {
  .topbar {
    height: calc(62px + env(safe-area-inset-top));
    flex-basis: calc(62px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
  .lobby-extra { width: calc(100% - 22px); margin-top: 9px; padding: 8px 10px; gap: 9px; border-radius: 11px; }
  .extra-crest { width: 38px; height: 38px; font-size: 19px; }
  .extra-kicker { font-size: 5.5px; letter-spacing: 1.4px; }
  .extra-copy h3 { font-size: 14px; letter-spacing: .5px; }
  .extra-actions .gold-btn { min-height: 28px; font-size: 8px; padding: 0 10px; }
  .extra-actions .gold-btn svg { display: none; }
  .brand-coin { width: 38px; height: 38px; }
  .brand-coin span { font-size: 14px; }
  .brand-copy h1 { font-size: 21px; }
  .brand-copy p { display: none; }
  .currency-pill.beans { min-width: 84px; padding: 0 5px; }
  .currency-pill.beans .plus { display: none; }
  .top-actions .currency-pill.beans .coin-icon { width: 17px; height: 17px; }
  .top-actions .icon-btn:nth-last-child(-n+2) { display: none; }
  .lobby { width: calc(100% - 22px); margin-top: 9px; }
  .heading-copy h2 { font-size: 26px; }
  .heading-copy p { font-size: 8px; max-width: 230px; }
  .eyebrow { font-size: 6px; letter-spacing: 1.8px; }
  .game-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .game-card { display: grid; grid-template-columns: 44% 56%; min-height: 170px; }
  .game-art { height: 100%; min-height: 185px; }
  .game-card:hover { transform: translateY(-3px); }
  .art-copy { left: 11px; top: 11px; }
  .art-copy small { display: none; }
  .art-logo { font-size: 24px; }
  .art-logo.numeric { font-size: 34px; }
  .art-logo.brush-small { font-size: 21px; }
  .art-seal { top: 8px; right: 8px; width: 24px; height: 24px; font-size: 7px; transform: rotate(5deg); }
  .game-info { min-height: 185px; padding: 14px 11px 12px; }
  .game-title-row h4 { font-size: 14px; white-space: normal; line-height: 1.25; }
  .game-info > p { font-size: 8px; line-height: 1.5; white-space: normal; }
  .tag-row { gap: 3px; margin-top: 8px; }
  .tag-row span { font-size: 7px; padding: 2px 4px; }
  .tag-row span:nth-child(3) { display: none; }
  .game-cta { padding-top: 9px; flex-wrap: wrap; gap: 6px; align-items: center; }
  .room-hint { display: none; }
  .play-btn { width: 100%; justify-content: center; height: 32px; }
  .hall-bottom { margin-top: 10px; }
  .friend-room { display: none; }
  .notice-bar { height: 38px; }
  .notice-scroll span { font-size: 8px; }
  .lobby-footer { justify-content: center; padding: 9px 0 calc(9px + env(safe-area-inset-bottom)); margin-top: 3px; font-size: 7px; text-align: center; }
  .footer-links { display: none; }
  .lobby-footer > span:first-child { display: none; }
  .lobby-footer > span:last-child { display: block; text-align: center; }
}
@media (max-height: 800px) and (min-width: 1221px) {
  .topbar { height: 68px; flex-basis: 68px; }
  .lobby { margin-top: 10px; }
  .mini-tournament { display: none; }
  .right-rail { gap: 10px; }
  .game-art { height: 206px; }
  .game-info { min-height: 143px; padding-top: 10px; }
  .game-grid { margin-top: 11px; }
  .hall-bottom { margin-top: 9px; }
  .profile-panel { padding-top: 14px; }
  .avatar-wrap { width: 82px; margin-bottom: 5px; }
  .avatar-frame { width: 82px; height: 82px; }
  .profile-name-row h2 { font-size: 15px; }
  .friend-feed { gap: 0; }
  .friend-row { height: 27px; }
  .quick-btn { min-height: 40px; }
  .panel-divider { margin-top: 9px; margin-bottom: 4px; }
  .profile-footer { margin-top: 6px; padding-top: 6px; }
  .welfare-panel { padding-top: 10px; }
  .signin-card { height: 96px; }
  .rank-row { height: 32px; }
  .rank-teaser { margin-top: 3px; }
  .task-row { padding-top: 5px; padding-bottom: 5px; }
  .task-list { gap: 0; }
  .live-feed { margin-top: 5px; }
  .mini-tournament { min-height: 72px; padding: 7px 9px; }
  .lobby-footer { height: 26px; flex-basis: 26px; margin-top: 4px; }
}
@media (max-height: 690px) and (min-width: 1221px) {
  .game-art { height: 184px; }
  .game-info { min-height: 134px; }
  .heading-copy h2 { font-size: 30px; }
  .heading-copy p { display: none; }
  .topbar { height: 60px; flex-basis: 60px; }
  .avatar-wrap { width: 74px; }
  .avatar-frame { width: 74px; height: 74px; }
  .quick-btn { min-height: 36px; }
  .friend-feed { display: none; }
  .panel-divider { display: none; }
  .signin-card { height: 86px; }
  .mini-tournament { display: none; }
}

@media (max-width: 560px) and (orientation: portrait) {
  .hall-quick { gap: 5px; margin-top: 8px; }
  .quick-entry { min-height: 50px; padding: 6px; gap: 5px; border-radius: 8px; }
  .quick-entry-icon { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
  .quick-entry b { font-size: 8px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .quick-entry small { display: none; }
  .quick-entry > i { display: none; }
  .lobby-extra { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   Short landscape phones · compact hall
   ========================================================= */
@media (max-height: 520px) and (max-width: 950px) and (orientation: landscape) {
  .topbar {
    height: 56px;
    flex-basis: 56px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-top: 0;
    padding-bottom: 0;
    gap: 6px;
  }
  .brand { gap: 7px; min-width: 0; }
  .brand-coin { width: 38px; height: 38px; }
  .brand-coin::before { inset: 11px; }
  .brand-coin span { font-size: 17px; }
  .brand-copy h1 { font-size: 20px; letter-spacing: 1.4px; }
  .brand-copy p { font-size: 6px; }
  .main-nav { gap: 1px; }
  .nav-link { min-height: 34px; padding: 0 8px; font-size: 10.5px; }
  .nav-hot { display: none; }
  .currency-pill { min-width: 82px; height: 30px; }
  .currency-pill b { font-size: 10px; }
  .top-actions { gap: 2px; }
  .top-actions .icon-btn { width: 27px; height: 27px; }
  .top-actions .icon-btn svg { width: 15px; height: 15px; }
  .lobby {
    width: calc(100% - 16px);
    padding: 7px 0 4px;
    margin-top: 0;
  }
  .profile-panel, .right-rail { display: none; }
  .hall-heading {
    align-items: center;
    margin-bottom: 6px;
    min-height: 32px;
  }
  .hall-heading .eyebrow,
  .heading-copy p,
  .heading-right .online-total,
  .heading-right .daily-btn { display: none; }
  .hall-heading h2 { font-size: clamp(24px, 3.8vw, 31px); letter-spacing: 1px; line-height: 1.1; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
  .game-card { display: block; min-height: 0; border-radius: 10px; }
  .game-card:hover { transform: none; }
  .game-art { height: 128px; min-height: 0; }
  .art-copy { left: 10px; top: 9px; }
  .art-copy small { font-size: 6px; margin-bottom: 2px; letter-spacing: 1px; }
  .art-logo { font-size: clamp(25px, 4.2vw, 34px); }
  .art-logo.numeric { font-size: clamp(34px, 5.6vw, 45px); }
  .art-logo.brush-small { font-size: clamp(22px, 3.4vw, 29px); }
  .art-seal { width: 26px; height: 26px; font-size: 7.5px; top: 8px; right: 8px; }
  .hot-badge { top: 38px; right: 8px; height: 15px; font-size: 6px; padding: 0 5px 0 4px; }
  .game-info {
    min-height: 0;
    padding: 7px 9px 8px;
  }
  .game-title-row h4 { font-size: 13px; }
  .online { display: none; }
  .game-info > p { font-size: 7.5px; margin-top: 2px; }
  .tag-row { display: none; }
  .game-cta { padding-top: 5px; }
  .room-hint { display: none; }
  .play-btn { width: 100%; height: 28px; min-width: 0; font-size: 9px; padding: 0 9px; justify-content: center; }
  .hall-quick, .lobby-extra, .lobby-footer { display: none; }
  .hall-bottom { display: flex; gap: 7px; margin-top: 7px; }
  .friend-room { display: flex; }
  .notice-bar { height: 35px; border-radius: 8px; }
  .notice-label { height: 21px; font-size: 7px; padding: 0 7px; }
  .notice-scroll span { font-size: 7.5px; }
  .friend-room { height: 35px; flex-basis: 180px; padding: 0 9px; border-radius: 8px; }
  .friend-room b { font-size: 9px; }
  .friend-room small { display: none; }
  .room-ico { width: 23px; height: 23px; font-size: 9px; }
  body { overflow-x: hidden; overflow-y: auto; }
}
