:root {
  --glass-border: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
  --text: #f0ece4;
  --text-dim: rgba(255, 255, 255, 0.75);
  --bg-dark: #0a0a0f;
  --radius: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg-dark); color: var(--text); overflow-x: hidden; }

.bg-orbs { position: fixed; inset: 0; z-index: -1; }
.orb-1 { width: 50vw; height: 50vw; background: #ffffff; top: -10%; left: -10%; border-radius: 50%; filter: blur(100px); opacity: 0.1; position: absolute;}

.top-nav { position: fixed; top: 0; width: 100%; height: 80px; z-index: 100; background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; padding: 0 5%; }
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 2px; }
.tab-btn { background: none; border: none; color: rgba(255, 255, 255, 0.4); padding: 10px 25px; cursor: pointer; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.tab-btn.active { color: var(--accent); border-bottom: 3px solid var(--accent); }

.page-wrapper { width: 95%; max-width: 1600px; margin: 120px auto 60px; }
.section-disclaimer { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--accent); border-left: 4px solid var(--accent); padding-left: 20px; margin-bottom: 40px; }

/* Review Cards */
.review-card { display: flex; background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 50px; }
.card-left { flex: 0 0 300px; background: rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; }
.card-left img { width: 75%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.card-right { flex: 1; padding: 50px 60px; display: grid; grid-template-columns: 1fr 450px; gap: 50px; align-items: center; }
.card-name { grid-column: 1 / -1; font-family: 'Bebas Neue', sans-serif; font-size: 88px; line-height: 0.9; color: var(--accent); }
.rating-container { display: flex; flex-direction: column; gap: 35px; }
.rating-header-row { display: grid; grid-template-columns: 140px 1fr 80px; align-items: center; gap: 20px; }
.attr-label { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--accent); }
.bar-container { height: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 10px; box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }
.score-num { font-weight: 700; font-size: 24px; }
.attr-note { font-size: 22px; line-height: 1.4; color: var(--text-dim); margin-top: 10px; }
.chart-box { width: 450px; height: 450px; background: rgba(255, 255, 255, 0.03); border-radius: 24px; padding: 10px; }

/* Tier List */
.tier-header-flex { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto 30px; }
.download-btn { background: var(--accent); color: #000; border: none; padding: 12px 24px; font-family: 'Bebas Neue', sans-serif; font-size: 20px; border-radius: 8px; cursor: pointer; }
.tier-container { display: flex; flex-direction: column; gap: 5px; max-width: 1000px; margin: 0 auto; background: #000; padding: 15px; border: 1px solid var(--glass-border); }
.tier-row { display: flex; min-height: 160px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255,255,255,0.05); }
.tier-row.drag-over { background: rgba(255, 255, 255, 0.1); }
.tier-label { flex: 0 0 160px; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 80px; color: #000; }
.tier-items { flex: 1; display: flex; flex-wrap: wrap; padding: 20px; gap: 25px; align-items: center; }
.tier-item-wrapper { display: flex; flex-direction: column; align-items: center; width: 90px; gap: 8px; cursor: grab; }
.tier-item-img { height: 100px; width: auto; pointer-events: none; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); }
.tier-item-name { font-family: 'Bebas Neue', sans-serif; font-size: 12px; opacity: 0.7; text-align: center; }

/* Tier Colors */
.tier-S { background: #ff7f7f; } .tier-A { background: #ffbf7f; } .tier-B { background: #ffff7f; }
.tier-C { background: #7fff7f; } .tier-D { background: #7fbfff; } .tier-E { background: #9b7fdf; }

/* Graph & Voting Overlay */
.graph-full-width { width: 100%; display: flex; justify-content: center; }
.graph-container {
  width: 100%;
  max-width: 1550px;
  height: 950px;
  background: rgba(255, 255, 255, 0.03);
  padding: 50px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  position: relative;
}

#input-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.chart-input-wrap {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 65px;
  pointer-events: auto;
}

.chart-input-wrap input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  color: white;
  border-radius: 6px;
  padding: 6px;
  font-size: 14px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
}

.chart-input-wrap button {
  background: white;
  color: black;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  border-radius: 6px;
  padding: 4px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-input-wrap button:hover {
  background: #ccc;
  transform: translateY(-2px);
}

@media (max-width: 1200px) { .card-right { grid-template-columns: 1fr; } .chart-box { width: 100%; height: auto; aspect-ratio: 1/1; } }