:root{
  --bg0:#0f1220;
  --bg1:#121a33;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --text: #e9eefc;
  --muted:#a8b1c9;
  --accentA:#667eea;
  --accentB:#764ba2;
  --warn:#fbbf24;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --r: 16px;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 700px at 20% 10%, rgba(102,126,234,0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 30%, rgba(118,75,162,0.14), transparent 55%),
    linear-gradient(120deg, #0d1020, #0f1733);
  color: var(--text);
  padding: 28px 18px 64px;
}

.wrap{
  width: min(980px, 100%);
  margin: 0 auto;
}

.shell{
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

h1{
  margin:0 0 6px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--accentA), var(--accentB));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lead{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 70ch;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 10px rgba(251,191,36,0.45);
}

ul{
  list-style:none;
  padding:0;
  margin: 0;
  display:grid;
  gap: 12px;
}

li{
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

li.entry-item{
  background: var(--panel2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.item-line{
  display: inline;
}

.uid-link{
  font-weight: 800;
  color: #eef2ff;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(102,126,234,0.35), rgba(118,75,162,0.3));
  border: 1px solid rgba(174,126,255,0.7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  display: inline-block;
}

.uid-link:hover{
  color: #ffffff;
  border-color: rgba(200,160,255,0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    0 0 0 1px rgba(174,126,255,0.25),
    0 8px 18px rgba(118,75,162,0.25);
}

.separator{
  color: #9aa5b1;
  margin: 0 6px;
}

.section{
  color: #c9d2ff;
  font-weight: 700;
  margin-left: 6px;
  margin-right: 4px;
}

.none{
  color: var(--muted);
  font-style: italic;
}

a{
  text-decoration:none;
  color: #d8ddff;
  font-weight: 700;
}

a:hover{
  color: #ffffff;
}

.info-link{
  color: #4CBB17;
  font-weight: 700;
}

.info-link:hover{
  color: #6be72c;
}

.game-link{
  color: #BA0B3A;
  font-weight: 800;
}

.game-link:hover{
  color: #e11b54;
}

.note{
  font-size: 0.9em;
  color: rgba(255,255,255,0.55);
  text-align:center;
  margin-top: 30px;
}

details{
  margin-top: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.6rem 1rem;
  color: var(--text);
}

summary{
  cursor: pointer;
  font-weight: 700;
  color: #c9d2ff;
}

li.period-group{
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

details.period-block{
  margin-top: 0;
  background: transparent;
  border: none;
  padding: 0;
}

summary.period-header{
  list-style: none;
  display: block;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid rgba(102,126,234,0.35);
  background: linear-gradient(135deg, rgba(102,126,234,0.25), rgba(118,75,162,0.2));
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #d7dcff;
  position: relative;
  padding-right: 44px;
}

summary.period-header::-webkit-details-marker{
  color: #c9d2ff;
}

summary.period-header::after{
  content: "▸";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #c9d2ff;
  transition: transform 0.2s ease;
}

details[open] > summary.period-header::after{
  transform: translateY(-50%) rotate(90deg);
}

.period-list{
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}

.missing-entry{
  border: 1px solid rgba(186,11,58,0.35);
  background: rgba(186,11,58,0.08);
}

.missing-entry .uid-link{
  color: #ffd6d6;
}

.template-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 20px;
}

.template-card{
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  padding: 12px 14px;
}

.template-card h3{
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c9d2ff;
}

.template-links{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.template-links a{
  font-weight: 600;
}

.section-title{
  color: #d7dcff;
  letter-spacing: .04em;
}

.section-label{
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.missing-panel{
  margin-top: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r);
  padding: 0.6rem 1rem;
  color: var(--text);
}

.missing-summary{
  cursor: pointer;
  font-weight: 800;
  color: #ffd6d6;
}

.missing-header{
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.25);
  font-weight: 800;
  color: #ffe6a7;
}

.dl-btn{
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  font-size: 0.85em;
}

.dl-btn:hover{
  background: rgba(255,255,255,0.22);
}

.spacer{
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  height: 6px;
}
