.ol-lobby {
  display: block;
  padding: 0;
  overflow: hidden;
  color: #f0dfbf;
  background: #120c08;
  font-family: var(--font-body);
}

.ol-lobby::before,
.ol-lobby::after { display: none; }

.lobby-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 43%, rgba(198, 137, 63, .3), transparent 38%),
    radial-gradient(circle at 82% 84%, rgba(116, 35, 25, .38), transparent 46%),
    linear-gradient(105deg, #0b0806 0%, #1c120b 37%, #4a2c15 66%, #160d08 100%);
}

.lobby-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(246, 214, 155, .022) 46px 47px),
    radial-gradient(ellipse at 50% 108%, rgba(216, 155, 69, .16), transparent 55%);
  mix-blend-mode: screen;
}

.lobby-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 3, 2, .72), transparent 18%, transparent 70%, rgba(5, 3, 2, .8)),
    radial-gradient(ellipse at 50% 50%, transparent 38%, rgba(3, 2, 1, .42) 100%);
}

.lobby-hero {
  position: absolute;
  left: clamp(80px, 15.5vw, 260px);
  bottom: 0;
  height: 96%;
  z-index: 2;
  pointer-events: none;
}

.lobby-hero img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  filter: saturate(1.06) contrast(1.03) drop-shadow(0 18px 42px rgba(0, 0, 0, .55));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 92%, transparent 100%);
}

.lobby-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 12, 8, .16), transparent 32%, transparent 70%, rgba(10, 6, 3, .78));
}

.lobby-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 25%, rgba(6, 4, 2, .24) 70%, rgba(3, 2, 1, .6) 100%);
}

.lobby-top {
  position: relative;
  z-index: 20;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(16px, 2.4vw, 36px);
  background:
    linear-gradient(180deg, rgba(10, 7, 4, .92), rgba(10, 7, 4, .62) 74%, transparent);
}

.lobby-profile { display: flex; align-items: center; gap: 12px; min-width: 320px; }

.lobby-avatar {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 40% 30%, #9d7448, #4b2e1a 68%, #24150c);
  border: 1px solid rgba(241, 200, 118, .85);
  box-shadow: 0 0 0 3px rgba(24, 14, 7, .8), 0 0 0 4px rgba(201, 164, 92, .35), 0 8px 18px rgba(0, 0, 0, .45);
  transform: rotate(-2deg);
}
.lobby-avatar span {
  font-family: var(--font-display);
  font-size: 30px;
  color: #f8e5bd;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
button.lobby-avatar {
  font: inherit;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
button.lobby-avatar:hover {
  border-color: #f5d68f;
  box-shadow: 0 0 0 3px rgba(24, 14, 7, .8), 0 0 0 4px rgba(236, 202, 133, .55), 0 8px 22px rgba(0, 0, 0, .5);
}
.lobby-avatar .avatar-frame {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 231, 183, .24);
}

.lobby-profile-main { min-width: 0; }
.lobby-name-row { display: flex; align-items: center; gap: 8px; }
.lobby-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: #f6e7c9;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .8);
}
.member-chip, .level-chip {
  font-size: 9px;
  letter-spacing: 1px;
  padding: 2px 7px;
  border: 1px solid rgba(214, 183, 128, .36);
  color: #cdb68f;
  background: rgba(15, 10, 6, .42);
  border-radius: 2px;
}
.level-chip { color: #b99a68; border-color: rgba(185, 154, 104, .22); }

.lobby-rank-row { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.rank-badge {
  position: relative;
  padding: 3px 24px 3px 10px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #f1dcb0;
  background: linear-gradient(90deg, #563477, #38214f);
  border: 1px solid rgba(196, 159, 234, .38);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.rank-stars { color: #e8bd62; font-size: 9px; letter-spacing: 1px; }
.faction-mark {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  line-height: 1;
  border-radius: 3px;
  color: #fff4dc;
  border: 1px solid rgba(255, 238, 200, .5);
  background: #5d4c36;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, .5);
}
.faction-mark.wei { background: #2f5278; }
.faction-mark.shu { background: #8b3028; }
.faction-mark.wu { background: #2b654d; }
.faction-mark.qun { background: #6c5a42; }
.faction-mark.god { background: #7d6429; }

.lobby-currencies {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.currency-pill {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px 0 5px;
  min-width: 152px;
  background: linear-gradient(180deg, rgba(26, 18, 11, .9), rgba(10, 7, 4, .86));
  border: 1px solid rgba(207, 165, 94, .42);
  box-shadow: inset 0 1px 0 rgba(255, 233, 187, .08), 0 4px 12px rgba(0, 0, 0, .25);
}
.coin-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
  color: #3b240e;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff0bc, #d7a74d 58%, #8a5b1b);
  box-shadow: inset 0 0 0 2px rgba(74, 43, 10, .38);
}
.currency-pill.ingot .coin-icon {
  border-radius: 6px 6px 12px 12px;
  color: #40270f;
  background: radial-gradient(circle at 40% 25%, #fff8d7, #e1be67 52%, #9a6b21);
}
.currency-pill b {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #f4e6c8;
  font-variant-numeric: tabular-nums;
}
.currency-plus {
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  color: #201408;
  background: linear-gradient(180deg, #ffe5a5, #c99643);
  border: 1px solid #6b471c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  cursor: pointer;
}
.currency-plus:hover { filter: brightness(1.1); }

.lobby-shortcuts { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.lobby-shortcuts button {
  position: relative;
  width: 52px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #e5d2ad;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.shortcut-glyph {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  color: #f0d494;
  border: 1px solid rgba(217, 177, 101, .4);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, rgba(90, 61, 29, .8), rgba(16, 10, 6, .8));
}
.lobby-shortcuts em { font-style: normal; font-size: 10px; letter-spacing: 1px; color: #d7c19b; }
.dot-badge {
  position: absolute;
  top: 3px;
  right: 5px;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-style: normal;
  color: #fff;
  background: #b6342b;
  border-radius: 8px;
  border: 1px solid #f1c9a1;
}

.lobby-rail {
  position: absolute;
  z-index: 12;
  left: clamp(14px, 2vw, 30px);
  top: 118px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rail-btn {
  position: relative;
  width: 92px;
  min-height: 74px;
  padding: 7px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #e8d3ac;
  background: linear-gradient(180deg, rgba(19, 12, 7, .34), rgba(8, 5, 3, .5));
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.rail-btn:hover {
  background: linear-gradient(180deg, rgba(89, 59, 28, .62), rgba(21, 13, 7, .82));
  border-color: rgba(222, 181, 106, .36);
  transform: translateX(2px);
}
.rail-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: #ffdf9a;
  border: 1px solid rgba(232, 192, 116, .52);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 221, 150, .18), transparent 48%),
    linear-gradient(145deg, #6e4620, #2b190c);
  box-shadow: inset 0 0 0 2px rgba(24, 14, 7, .55), 0 4px 10px rgba(0, 0, 0, .35);
}
.rail-btn b { font-size: 12px; font-weight: 500; letter-spacing: 2px; color: #f0ddba; }
.rail-btn em { font-style: normal; font-size: 8px; letter-spacing: .5px; color: #b79c70; }
.rail-btn.festival .rail-icon { color: #ffe8b4; border-color: #d8af62; }
.rail-btn.festival::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(220, 175, 92, .2);
  pointer-events: none;
}
.rail-dot {
  position: absolute;
  top: 10px;
  right: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e3352d;
  box-shadow: 0 0 7px rgba(227, 53, 45, .8);
}

.lobby-showcase {
  position: absolute;
  z-index: 8;
  left: clamp(150px, 18vw, 290px);
  bottom: 92px;
  pointer-events: none;
  opacity: .82;
}
.showcase-kicker { font-size: 7px; letter-spacing: 4px; color: rgba(232, 206, 158, .45); }
.lobby-showcase h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 400;
  letter-spacing: 8px;
  color: rgba(249, 226, 175, .9);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .8), 0 0 30px rgba(205, 148, 63, .25);
}
.lobby-showcase p { margin: 3px 0 0; font-size: 9px; letter-spacing: 3px; color: #b99c70; }
.showcase-quote {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(226, 190, 128, .6);
}

.lobby-modes {
  position: absolute;
  z-index: 14;
  right: clamp(18px, 3.4vw, 54px);
  top: clamp(96px, 13.5vh, 128px);
  width: min(44vw, 620px);
  display: grid;
  grid-template-columns: 1.08fr .92fr 1fr;
  grid-template-rows: 208px 172px;
  gap: 13px;
}

.mode-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 15px;
  text-align: left;
  color: #3a1f0c;
  border: 1px solid rgba(255, 222, 156, .66);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 242, 201, .34), transparent 34%),
    linear-gradient(145deg, #e5b15b 0%, #c88737 46%, #8f4d1d 100%);
  box-shadow:
    inset 0 0 0 3px rgba(92, 49, 14, .2),
    inset 0 1px 0 rgba(255, 247, 219, .55),
    0 12px 28px rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .2), transparent 28%),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(68, 33, 8, .05) 22px 23px);
  pointer-events: none;
}
.mode-card::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(71, 36, 9, .45), transparent);
}
.mode-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 0 0 3px rgba(92, 49, 14, .2),
    inset 0 1px 0 rgba(255, 247, 219, .55),
    0 18px 38px rgba(0, 0, 0, .42),
    0 0 30px rgba(241, 190, 99, .16);
}
.mode-card:active { transform: translateY(-1px); }

.mode-doudizhu { grid-column: 1; grid-row: 1; }
.mode-rank { grid-column: 2; grid-row: 1 / span 2; }
.mode-classic { grid-column: 3; grid-row: 1; }
.mode-activity { grid-column: 3; grid-row: 2; }
.mode-classic {
  border-color: rgba(255, 235, 186, .92);
  box-shadow:
    inset 0 0 0 3px rgba(92, 49, 14, .2),
    inset 0 1px 0 rgba(255, 247, 219, .55),
    0 12px 28px rgba(0, 0, 0, .3),
    0 0 0 1px rgba(255, 216, 136, .22),
    0 0 34px rgba(224, 168, 72, .2);
}
.mode-classic:hover {
  box-shadow:
    inset 0 0 0 3px rgba(92, 49, 14, .2),
    inset 0 1px 0 rgba(255, 247, 219, .55),
    0 18px 38px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(255, 216, 136, .38),
    0 0 46px rgba(244, 187, 83, .34);
}

.mode-emblem {
  position: absolute;
  right: 6px;
  bottom: 0;
  font-family: var(--font-display);
  font-size: 104px;
  line-height: 1;
  color: rgba(74, 36, 9, .18);
  text-shadow: 0 1px 0 rgba(255, 240, 200, .18);
  pointer-events: none;
}
.mode-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mode-copy b {
  font-family: var(--font-display);
  font-size: clamp(25px, 2.1vw, 33px);
  font-weight: 500;
  letter-spacing: 3px;
  color: #3c200b;
  text-shadow: 0 1px 0 rgba(255, 237, 193, .4);
}
.mode-copy em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 2px;
  color: #6d3d14;
}
.mode-corner {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 2px 7px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #ffe6b4;
  background: rgba(77, 38, 10, .58);
  border: 1px solid rgba(255, 223, 157, .26);
}

.mode-rank {
  color: #f4ddb2;
  border-color: rgba(255, 210, 147, .54);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 231, 184, .28), transparent 34%),
    linear-gradient(160deg, #a9382d 0%, #7c211d 48%, #4c100f 100%);
  box-shadow:
    inset 0 0 0 3px rgba(45, 9, 7, .32),
    inset 0 1px 0 rgba(255, 233, 195, .26),
    0 12px 28px rgba(0, 0, 0, .38);
}
.mode-rank .mode-emblem { display: none; }
.mode-rank .mode-copy { margin-top: 6px; align-items: center; text-align: center; }
.mode-rank .mode-copy b {
  font-size: clamp(32px, 2.5vw, 40px);
  letter-spacing: 4px;
  color: #f8e4bd;
  text-shadow: 0 2px 0 rgba(49, 8, 5, .6), 0 0 20px rgba(255, 204, 131, .2);
}
.mode-rank .mode-copy em { color: #e8c793; letter-spacing: 3px; margin-top: 4px; }
.rank-crest {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 6px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(244, 226, 191, .65);
  background:
    radial-gradient(circle at 38% 30%, #f8edcf, #c6a469 46%, #6b4a21 78%, #3d2810);
  color: #4a2d10;
  font-family: var(--font-display);
  font-size: 54px;
  text-shadow: 0 1px 0 rgba(255, 248, 223, .7);
  box-shadow: 0 0 0 5px rgba(43, 11, 8, .5), 0 0 0 6px rgba(241, 214, 164, .28), 0 10px 24px rgba(0, 0, 0, .45);
}
.mode-reward {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 12px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #4b240c;
  background: linear-gradient(180deg, #f6d58e, #cc9342);
  border: 1px solid rgba(99, 52, 12, .55);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}

.lobby-banner {
  display: none;
  position: absolute;
  z-index: 13;
  right: clamp(240px, 27vw, 430px);
  top: 96px;
  width: 250px;
  height: 50px;
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  background: linear-gradient(90deg, rgba(56, 34, 16, .9), rgba(93, 45, 23, .7));
  border: 1px solid rgba(223, 176, 95, .35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.banner-figure {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 23px;
  color: #f5dca8;
  background: radial-gradient(circle at 40% 30%, #8f6136, #3b2110);
  border: 1px solid rgba(231, 194, 127, .4);
}
.banner-copy { display: flex; flex-direction: column; gap: 2px; }
.banner-copy b { font-family: var(--font-display); font-size: 17px; letter-spacing: 2px; color: #f4dca9; }
.banner-copy em { font-style: normal; font-size: 8px; color: #c5a579; }
.banner-arrow { margin-left: auto; color: #e3c182; font-size: 20px; }

.lobby-dots {
  position: absolute;
  z-index: 14;
  right: clamp(18px, 3.4vw, 54px);
  top: 520px;
  display: flex;
  gap: 5px;
}
.lobby-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(238, 213, 171, .26);
}
.lobby-dots i.active { background: #e4bd72; box-shadow: 0 0 6px rgba(228, 189, 114, .7); }

.lobby-dock {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 18px;
  background:
    linear-gradient(180deg, rgba(13, 8, 5, .22), rgba(9, 6, 3, .9) 44%, rgba(6, 4, 2, .96));
  border-top: 1px solid rgba(213, 170, 97, .2);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .24);
}
.lobby-dock button {
  position: relative;
  min-width: 84px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #e3cfab;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .18s, transform .18s;
}
.lobby-dock button:hover { color: #ffe6b5; transform: translateY(-2px); }
.dock-glyph {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.15;
  color: #e7c17d;
  text-shadow: 0 0 14px rgba(216, 157, 58, .22);
}
.lobby-dock b { font-size: 11px; font-weight: 400; letter-spacing: 2px; }
.dock-sep { width: 1px; height: 25px; background: linear-gradient(180deg, transparent, rgba(211, 170, 96, .28), transparent); }
.dock-dot {
  position: absolute;
  top: 8px;
  right: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c53b30;
  box-shadow: 0 0 7px rgba(197, 59, 48, .8);
}
.dock-rules { opacity: .72; }
.dock-rules:hover { opacity: 1; }

.lobby-chat {
  position: absolute;
  z-index: 30;
  left: 24px;
  bottom: 76px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #d9c09a;
  background: rgba(14, 9, 5, .72);
  border: 1px solid rgba(213, 171, 98, .32);
  border-radius: 50%;
  cursor: pointer;
}
.lobby-chat span { font-family: var(--font-display); font-size: 16px; }
.lobby-version {
  position: absolute;
  z-index: 31;
  right: 16px;
  bottom: 68px;
  font-size: 7px;
  letter-spacing: 2px;
  color: rgba(214, 183, 131, .34);
  pointer-events: none;
}


@media (max-width: 1100px) {
  .lobby-hero { left: 3%; height: 88%; opacity: .72; }
  .lobby-showcase { display: none; }
  .lobby-modes { width: min(57vw, 610px); right: 18px; top: 100px; }
  .lobby-banner { display: none; }
  .lobby-dots { top: 506px; }
  .lobby-rail { transform: scale(.9); transform-origin: left top; }
  .lobby-profile { min-width: 260px; }
  .lobby-name { font-size: 18px; }
  .currency-pill { min-width: 128px; height: 34px; }
  .currency-pill b { font-size: 15px; }
}

@media (max-width: 900px) {
  .lobby-rail { display: none; }
  .lobby-hero { left: -4%; height: 78%; opacity: .55; }
  .lobby-top { height: 64px; padding: 0 12px; gap: 8px; }
  .lobby-avatar { flex-basis: 42px; width: 42px; height: 42px; }
  .lobby-avatar span { font-size: 23px; }
  .lobby-profile { min-width: 0; flex: 1; }
  .lobby-name { font-size: 16px; }
  .member-chip, .level-chip { font-size: 8px; }
  .rank-stars, .faction-mark { display: none; }
  .lobby-currencies { gap: 6px; }
  .currency-pill { min-width: 98px; height: 30px; padding-right: 4px; }
  .currency-pill b { font-size: 13px; }
  .coin-icon { width: 20px; height: 20px; font-size: 8px; }
  .currency-plus { width: 17px; height: 17px; font-size: 13px; }
  .lobby-shortcuts { display: none; }
  .lobby-modes {
    top: auto;
    right: 14px;
    left: 14px;
    bottom: 76px;
    width: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 136px 136px;
    gap: 9px;
  }
  .mode-doudizhu { grid-column: 1; grid-row: 1; }
  .mode-rank { grid-column: 2; grid-row: 1 / span 2; }
  .mode-classic { grid-column: 1; grid-row: 2; }
  .mode-activity { display: none; }
  .mode-card { padding: 12px; }
  .mode-copy b { font-size: 24px; letter-spacing: 2px; }
  .mode-copy em { font-size: 9px; }
  .mode-emblem { font-size: 82px; }
  .mode-rank .mode-emblem { font-size: 120px; }
  .rank-crest { width: 64px; height: 64px; font-size: 36px; }
  .mode-rank .mode-copy { margin-top: 8px; }
  .mode-rank .mode-copy b { font-size: 28px; }
  .mode-reward { font-size: 8px; bottom: 8px; }
  .lobby-dots { display: none; }
  .lobby-dock { height: 58px; }
  .lobby-dock button { min-width: 54px; }
  .lobby-dock b { font-size: 9px; letter-spacing: 1px; }
  .dock-glyph { font-size: 20px; }
  .lobby-chat, .lobby-version { display: none; }
}

@media (max-width: 520px) {
  .ol-lobby { overflow-y: auto; }
  .lobby-hero { left: 50%; transform: translateX(-50%); height: 61%; opacity: .68; }
  .lobby-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, #0c0805 0, rgba(12, 8, 5, .88) 4%, transparent 13%);
  }
  .lobby-showcase {
    display: block;
    left: 18px;
    right: 18px;
    top: 86px;
    bottom: auto;
    text-align: center;
    opacity: .9;
  }
  .showcase-kicker { font-size: 7px; letter-spacing: 3px; }
  .lobby-showcase h2 { margin-top: 6px; font-size: 38px; letter-spacing: 9px; }
  .lobby-showcase p { font-size: 9px; letter-spacing: 2px; }
  .showcase-quote { display: none; }
  .lobby-top { height: 58px; padding: 0 8px; }
  .lobby-profile { gap: 7px; }
  .lobby-avatar { flex-basis: 36px; width: 36px; height: 36px; }
  .lobby-avatar span { font-size: 20px; }
  .lobby-name-row { gap: 4px; }
  .lobby-name { font-size: 14px; letter-spacing: 1px; }
  .member-chip { display: none; }
  .rank-badge { font-size: 8px; padding: 2px 15px 2px 6px; letter-spacing: 1px; }
  .lobby-currencies { gap: 3px; }
  .currency-pill { min-width: 62px; height: 26px; gap: 3px; padding: 0 3px; }
  .currency-pill b { font-size: 11px; letter-spacing: 0; }
  .currency-plus { display: none; }
  .coin-icon { width: 17px; height: 17px; font-size: 7px; }
  .lobby-modes {
    top: auto;
    bottom: 66px;
    right: 8px;
    left: 8px;
    grid-template-rows: 118px 118px;
    gap: 7px;
  }
  .mode-copy b { font-size: 21px; letter-spacing: 1px; }
  .mode-copy em { font-size: 8px; letter-spacing: 1px; }
  .mode-corner { display: none; }
  .rank-crest { width: 52px; height: 52px; font-size: 30px; }
  .mode-rank .mode-copy b { font-size: 24px; }
  .mode-reward { padding: 2px 6px; font-size: 7px; }
  .mode-emblem { font-size: 65px; }
  .mode-rank .mode-emblem { font-size: 90px; }
  .lobby-dock { height: 54px; gap: 0; padding: 0 4px; }
  .lobby-dock button { min-width: 0; flex: 1; height: 48px; }
  .lobby-dock b { font-size: 8px; letter-spacing: 0; }
  .dock-glyph { font-size: 17px; }
  .dock-sep { height: 18px; }
  .dock-rules { display: none; }
  .dock-dot { top: 4px; right: 50%; }
}


.expansion-link {
  position: absolute;
  right: 26px;
  bottom: 44px;
  z-index: 6;
  color: #a8946b;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 164, 92, .28);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.expansion-link:hover {
  color: #f0d18a;
  border-color: rgba(240, 209, 138, .8);
}

