* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #10100f; color: #eee; font-family: "Meiryo", "Yu Gothic", sans-serif; }
a { color: inherit; }

.lobby {
  min-height: 100vh;
  min-width: 980px;
  position: relative;
  overflow: hidden;
  background-color: #161715;
  background-image:
    linear-gradient(to bottom, rgba(2,3,3,.48) 0, rgba(10,11,10,.12) 25%, rgba(9,10,10,.16) 67%, rgba(9,10,9,.75) 100%),
    var(--ava-background-image);
  background-size: cover;
  background-position: center;
}
.lobby:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 32%, transparent 68%, rgba(0,0,0,.18));
}
.top-bar, .lobby-main { position: relative; z-index: 1; }

.top-bar {
  height: 118px;
  display: flex;
  align-items: flex-start;
  padding: 18px 28px 0 22px;
  gap: 22px;
  background: linear-gradient(#090a0a9c, transparent);
}
.menu-mark { width: 27px; height: 27px; background: #1b1b1b; color: #818181; text-align: center; line-height: 23px; }
.ava-mark { padding-top: 7px; color: #f1b65e; font-size: 21px; letter-spacing: .3px; text-shadow: 1px 2px 4px #000; }
.top-menu {
  display: flex;
  align-self: flex-start;
  margin-left: auto;
  margin-top: 3px;
  height: 39px;
  border: 1px solid #111;
  background: linear-gradient(#3a3d3d 0%, #242729 50%, #111314 100%);
  box-shadow: inset 0 1px 0 #505253, 0 1px 4px #000;
}
.top-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 137px;
  padding: 0 15px;
  border-right: 1px solid #141718;
  border-left: 1px solid #434647;
  color: #c8cccd;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 0 1px #000;
  white-space: nowrap;
}
.top-menu a:first-child { border-left: 0; }
.top-menu a:last-child { border-right: 0; }
.top-menu a:hover { background: linear-gradient(#4b5052, #222526); color: #fff; }
.menu-icon { font-family: Arial, sans-serif; font-size: 19px; color: #adb7bb; line-height: 1; }

.lobby-main {
  display: grid;
  grid-template-columns: 27% 28% minmax(0, 45%);
  height: calc(100vh - 150px);
  min-height: 660px;
  padding: 0 22px 46px;
}
.left-column { padding-right: 18px; display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.image-box {
  display: flex; align-items: center; justify-content: center;
  background: rgba(17,19,19,.78);
  border: 1px solid #454646;
  color: #555955;
  font-size: 15px;
  letter-spacing: 1px;
  text-shadow: 1px 1px #000;
  overflow: hidden;
}
.image-box img { display: block; max-width: 100%; }
.large-banner { height: 74%; min-height: 390px; border: 5px solid #23272b; }
.main-banner-content { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; transform: translateY(-12px); }
.rebirth-logo { width: 77%; height: auto; max-height: 62%; object-fit: contain; }
/* RE:BIRTH バナー全体がリンク */
.rebirth-link { text-decoration: none; }
.rebirth-link:hover { border-color: #686e72; }
.discord-banner { height: 24%; min-height: 128px; border: 0; background: rgba(31,34,40,.85); }

.character-area { position: relative; min-width: 0; }
.character-placeholder {
  position: absolute;
  inset: -30px -10px 8px -30px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid #333;
}
.character-placeholder img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.player-info { position: absolute; left: 12%; bottom: 8px; font-size: 14px; text-shadow: 1px 2px 3px #000; }
.player-line, .clan-line { display: flex; align-items: center; }
.rank { width: 32px; height: 32px; object-fit: contain; }
.player-name { color: #edac54; margin-left: 10px; white-space: nowrap; font-size: 19px; }
.clan-line { margin-top: 4px; margin-left: 32px; gap: 6px; width: fit-content; text-decoration: none; }
.clan-line:hover .player-clan { text-decoration: underline; }
.clan-icon { width: 20px; height: 20px; object-fit: contain; }
.player-clan { color: #b8b8b8; font-size: 12px; }

.right-column { padding-left: 4px; min-width: 0; display: flex; flex-direction: column; }
.channel-list { margin: 0 0 14px; background: rgba(8,9,9,.12); }
.channel {
  min-height: 51px;
  margin: 3px 0;
  padding: 5px 17px 5px 23px;
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none;
  background: rgba(26,28,29,.81);
  font-size: 17px;
  font-weight: bold;
  letter-spacing: .03em;
  text-shadow: 1px 2px 3px #000;
}
.channel:nth-child(2n) { background: rgba(37,39,38,.76); }
.channel-list .channel { border-left: 4px solid #ff7a00; }
.channel-list a.channel:hover { background: rgba(85,90,81,.83); }
.channel small { font-size: 17px; color: #d0d0d0; white-space: nowrap; margin-left: 10px; }
.channel-disabled {
  color: #777b7b;
  font-size: 17px;
  letter-spacing: 0;
  text-shadow: 1px 1px 2px #000;
  cursor: default;
}
.channel-disabled small { color: #707575; font-size: 17px; }
.channel-disabled span { min-width: 0; }
.right-banner { margin-top: auto; height: 24%; min-height: 130px; border: 0; background: rgba(42,39,34,.83); }

@media (max-width: 1050px) {
  .top-bar { padding-left: 15px; }
  .top-menu a { min-width: 110px; padding: 0 8px; font-size: 12px; }
  .lobby-main { padding-left: 15px; padding-right: 15px; }
  .channel { font-size: 17px; padding-left: 11px; }
}
