/* Approved elements A: scale the 1920 × 1080 composition with the game stage. */
#tribeSelect {
  --tsel-unit:min(.052083333cqw,.092592593cqh);
  font-family:var(--fs-ui-font,"Malgun Gothic","맑은 고딕","Apple SD Gothic Neo",Arial,sans-serif);
}
#tribeSelect.screen.active {
  position:relative;width:100%;padding:0;
  background:linear-gradient(#070b0ad1,#070908ab),url('../assets/img/lobby/sanctuary-4k.webp') center/cover;
  color:#e8d3a2;
}
#tribeSelect .tsel { position:absolute;inset:0;width:100%;display:block;text-align:center; }
#tribeSelect .tsel::before {
  content:'FANTASY SOUL';position:absolute;top:calc(74 * var(--tsel-unit));left:0;right:0;
  font-size:calc(15 * var(--tsel-unit));line-height:calc(20 * var(--tsel-unit));
  letter-spacing:calc(5 * var(--tsel-unit));color:#ba9959;
}
#tribeSelect .tsel-title {
  position:absolute;top:calc(114 * var(--tsel-unit));left:0;right:0;margin:0;
  font-family:inherit;font-size:calc(49 * var(--tsel-unit));font-weight:700;
  line-height:calc(70 * var(--tsel-unit));letter-spacing:calc(6 * var(--tsel-unit));
  color:#f5dca1;text-shadow:none;
}
#tribeSelect .tsel-sub {
  position:absolute;top:calc(200 * var(--tsel-unit));left:5%;right:5%;margin:0;
  font-size:calc(21 * var(--tsel-unit));line-height:calc(28 * var(--tsel-unit));color:#c3ad7d;
}
#tribeSelect .tsel-grid {
  position:absolute;top:calc(367 * var(--tsel-unit));left:50%;transform:translateX(-50%);
  display:flex;gap:calc(25 * var(--tsel-unit));margin:0;
}
#tribeSelect .tsel-card,#tribeSelect .tsel-card:hover {
  position:relative;isolation:isolate;display:block;flex:none;
  width:calc(250 * var(--tsel-unit));height:calc(326 * var(--tsel-unit));padding:0;
  border:0;border-radius:0;background:none;box-shadow:none;color:#f2dba6;
  font-family:inherit;overflow:visible;
  transition:filter .15s,transform .15s;
}
#tribeSelect .tsel-card[data-id=earth] { --tsel-book:url('../assets/img/lobby/books-22/earth.png');--tsel-glow:#a7893944; }
#tribeSelect .tsel-card[data-id=fire] { --tsel-book:url('../assets/img/lobby/books-22/fire.png');--tsel-glow:#d15b2744; }
#tribeSelect .tsel-card[data-id=wind] { --tsel-book:url('../assets/img/lobby/books-22/wind.png');--tsel-glow:#59baba44; }
#tribeSelect .tsel-card[data-id=water] { --tsel-book:url('../assets/img/lobby/books-22/water.png');--tsel-glow:#3d97d144; }
#tribeSelect .tsel-card[data-id=dark] { --tsel-book:url('../assets/img/lobby/books-22/dark.png');--tsel-glow:#8c4cb744; }
#tribeSelect .tsel-card[data-id=light] { --tsel-book:url('../assets/img/lobby/books-22/light.png');--tsel-glow:#d6bd6244; }
#tribeSelect .tsel-card::before {
  content:'';position:absolute;inset:0;z-index:-1;
  background:var(--tsel-book) center/100% 100% no-repeat;filter:brightness(.88);pointer-events:none;
}
#tribeSelect .tsel-card::after {
  content:'◆';position:absolute;top:calc(386 * var(--tsel-unit));left:0;right:0;
  font-size:calc(11 * var(--tsel-unit));line-height:calc(15 * var(--tsel-unit));
  letter-spacing:calc(2 * var(--tsel-unit));color:#cfa756;opacity:.65;pointer-events:none;
}
#tribeSelect .tsel-icon {
  position:absolute;left:calc(36 * var(--tsel-unit));top:calc(68 * var(--tsel-unit));
  width:calc(178 * var(--tsel-unit));height:calc(178 * var(--tsel-unit));margin:0;
  border-radius:50%;filter:drop-shadow(0 0 calc(20 * var(--tsel-unit)) var(--tsel-glow));pointer-events:none;
}
#tribeSelect .tsel-ko {
  position:absolute;top:calc(254 * var(--tsel-unit));left:calc(20 * var(--tsel-unit));right:calc(20 * var(--tsel-unit));
  margin:0;padding:calc(8 * var(--tsel-unit)) 0 calc(11 * var(--tsel-unit));background:#090c09;
  font-family:inherit;font-size:calc(26 * var(--tsel-unit));font-weight:700;
  line-height:calc(37 * var(--tsel-unit));color:#f2dba6;text-shadow:0 calc(2 * var(--tsel-unit)) calc(3 * var(--tsel-unit)) #000;
}
#tribeSelect .tsel-en {
  position:absolute;top:calc(349 * var(--tsel-unit));left:0;right:0;margin:0;
  font-family:inherit;font-size:calc(14 * var(--tsel-unit));font-weight:600;
  line-height:calc(16 * var(--tsel-unit));letter-spacing:calc(4 * var(--tsel-unit));text-transform:uppercase;color:#b5a07b;
}
#tribeSelect .tsel-badge {
  top:calc(12 * var(--tsel-unit));right:calc(12 * var(--tsel-unit));z-index:1;
  font-family:inherit;font-size:calc(15 * var(--tsel-unit));line-height:1.4;
  padding:calc(3 * var(--tsel-unit)) calc(9 * var(--tsel-unit));border-radius:calc(5 * var(--tsel-unit));background:#090c09ed;
}
#tribeSelect .tsel-card:not(.lock):not(:disabled):is(:hover,:focus-visible) {
  filter:brightness(1.23) drop-shadow(0 0 calc(12 * var(--tsel-unit)) var(--tsel-glow));transform:translateY(calc(-7 * var(--tsel-unit)));
}
#tribeSelect .tsel-card:not(.lock):not(:disabled):is(:hover,:focus-visible)::before { filter:brightness(.98); }
#tribeSelect .tsel-card:not(.lock):not(:disabled):active { transform:translateY(calc(-2 * var(--tsel-unit))); }
#tribeSelect .tsel-card:focus-visible { outline:2px solid #ffdd93;outline-offset:calc(4 * var(--tsel-unit)); }
#tribeSelect .tsel-card.lock,#tribeSelect .tsel-card:disabled { opacity:.42;filter:grayscale(.4);cursor:not-allowed;transform:none; }
#tribeSelect #btnTselBack {
  position:absolute;bottom:calc(57 * var(--tsel-unit));left:50%;transform:translateX(-50%);
  width:calc(280 * var(--tsel-unit));height:calc(67 * var(--tsel-unit));min-width:0;min-height:0;margin:0;padding:0;
  border:0;border-radius:0;box-shadow:none;opacity:1;
  background:transparent url('../assets/img/ui/selected-lobby/button-a-normal.png') center/100% 100% no-repeat;
  font-family:inherit;font-size:calc(20 * var(--tsel-unit));font-weight:700;letter-spacing:0;
  color:#e8d4a3;text-shadow:0 calc(2 * var(--tsel-unit)) calc(2 * var(--tsel-unit)) #000;
  transition:color .14s,filter .14s;
}
#tribeSelect #btnTselBack::before { content:'‹';margin-right:calc(16 * var(--tsel-unit)); }
#tribeSelect #btnTselBack:not(:disabled):is(:hover,:focus-visible) {
  color:#fff6ce;filter:drop-shadow(0 0 calc(6 * var(--tsel-unit)) #e7a74966);
  background-image:url('../assets/img/ui/selected-lobby/button-a-hover.png');
}
#tribeSelect #btnTselBack:not(:disabled):active { background-image:url('../assets/img/ui/selected-lobby/button-a-pressed.png'); }
#tribeSelect #btnTselBack:disabled { background-image:url('../assets/img/ui/selected-lobby/button-a-disabled.png');opacity:.68;cursor:default; }
#tribeSelect #btnTselBack:focus-visible { outline:2px solid #ffdd93;outline-offset:3px; }
