body {
  margin: 0;
  background: radial-gradient(#222, #000);
  color: #fff;
  font-family: 'DotGothic16', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  font-size: 3rem;
  margin-top: 20px;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

main {
  width: 90%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

button#generate {
  margin: 20px 0;
  padding: 15px 30px;
  font-size: 1.2rem;
  background: #ff8300;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,131,0,0.7);
}

button#generate:hover {
  filter: brightness(1.1);
}

button#share-x {
  margin: 8px 0 20px;
  padding: 12px 24px;
  font-size: 1.1rem;
  background: #1d9bf0; /* X/Twitter blue */
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(29,155,240,0.5);
}

button#share-x:hover {
  filter: brightness(1.1);
}

#lineup {
  width: 100%;
  border-collapse: collapse;
  border: 4px solid transparent;
  background: rgba(0, 0, 0, 0.6);
  border-image: repeating-linear-gradient(135deg, #fff 0 2px, #777 2px 4px) 1;
}

:root {
  --slantW: 16px;
  --posW: 100px;
  --rowH: 48px; /* 行の高さ（調整可） */
}

#lineup td {
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  position: relative;
  height: var(--rowH); /* 行の高さを固定 */
}

.pos-box,
.name-box {
  display: flex;               /* flexで上下中央寄せ */
  align-items: center;
  justify-content: center;     /* 中央寄せ */
  height: 100%;                 /* 行の高さに合わせる */
  box-sizing: border-box;
  font-size: 1.2rem;
  text-shadow: 0 0 5px rgba(255,200,255,0.2);
}

/* 左：ポジション */
#lineup td:first-child {
  width: var(--posW);
}
#lineup td:first-child .pos-box {
  width: var(--posW);
  background: rgba(235, 239, 255, 0.9);
  color: #000;
  font-weight: bold;
  clip-path: polygon(
    0 0,
    calc(100% - var(--slantW)) 0,
    100% 100%,
    0 100%
  );
}

/* 右：選手名 */
#lineup td:last-child .name-box {
  background: rgba(16,16,16,0.85);
  color: #ffd6ff;
  padding-left: calc(10px + var(--slantW));
  letter-spacing: 0.3em;
  justify-content: center; /* 均等割りしないで中央寄せ */
}
