/* build 2026-10-03T15:37:32Z */
/* Talos Toolkit — Industrial dark theme for Arknights: Endfield fan tools */
:root {
  --bg: #0d1117;
  --bg-2: #141b24;
  --panel: #1a2330;
  --panel-2: #212e3f;
  --border: #2d3b4e;
  --text: #e6edf3;
  --text-dim: #9aa8b8;
  --accent: #ffb02e;       /* Endfield industrial amber */
  --accent-2: #38d4c8;     /* teal for success */
  --danger: #ff5c5c;
  --rarity-6: #ff9d2e;
  --rarity-5: #c99bff;
  --rarity-4: #5cb3ff;
  --radius: 10px;
  --mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 58px;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo .hex { font-size: 1.2rem; }
.nav-links { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-dim);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav-links a.active { color: var(--accent); background: rgba(255, 176, 46, 0.1); }

/* ---------- Layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1rem; width: 100%; flex: 1; }

.hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.5rem; }
.hero h1 .amber { color: var(--accent); }
.hero p { color: var(--text-dim); max-width: 620px; margin: 0 auto; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .icon { font-size: 1.6rem; }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--text-dim); font-size: 0.88rem; flex: 1; }
.card .tag {
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(255, 176, 46, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
  font-family: var(--mono);
}
.card.coming { opacity: 0.55; }

/* ---------- Panels & forms ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.panel h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
label { display: block; font-size: 0.85rem; color: var(--text-dim); margin: 0.75rem 0 0.25rem; }
select, input[type="number"], input[type="text"] {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
}
select:focus, input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1206;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.1); }
.btn.secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.danger { background: var(--danger); color: #fff; }

.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }

/* ---------- Result table ---------- */
.result-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
.result-table th, .result-table td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.result-table th { color: var(--text-dim); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.result-table td.num { font-family: var(--mono); }
.rarity-6 { color: var(--rarity-6); font-weight: 700; }
.rarity-5 { color: var(--rarity-5); font-weight: 600; }
.rarity-4 { color: var(--rarity-4); }

.notice {
  background: rgba(255, 176, 46, 0.08);
  border: 1px solid rgba(255, 176, 46, 0.35);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 1rem 0;
}
.notice strong { color: var(--accent); }

/* ---------- Gacha ---------- */
.pull-stage {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
  min-height: 110px;
}
.pull-card {
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  min-height: 100px;
  animation: flipIn 0.4s ease both;
  font-family: var(--mono);
}
@keyframes flipIn { from { transform: rotateY(90deg); opacity: 0; } to { transform: rotateY(0); opacity: 1; } }
.pull-star-6 { background: linear-gradient(160deg, #4d2e00, #8a5200); color: var(--rarity-6); border: 2px solid var(--rarity-6); }
.pull-star-5 { background: linear-gradient(160deg, #241538, #3d2560); color: var(--rarity-5); border: 2px solid var(--rarity-5); }
.pull-star-3 { background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--border); }

.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.stat-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.1rem;
  flex: 1;
  min-width: 120px;
}
.stat-box .num { font-size: 1.5rem; font-weight: 800; font-family: var(--mono); color: var(--accent); }
.stat-box .lbl { font-size: 0.78rem; color: var(--text-dim); }

/* ---------- Daily checklist ---------- */
.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.check-item:last-child { border-bottom: none; }
.check-item input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); cursor: pointer; }
.check-item label { flex: 1; margin: 0; cursor: pointer; font-size: 0.95rem; color: var(--text); }
.check-item.done label { text-decoration: line-through; color: var(--text-dim); }
.progress-bar {
  height: 10px;
  background: var(--bg-2);
  border-radius: 5px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}
.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--text-dim); text-decoration: underline; }

@media (max-width: 640px) {
  .pull-stage { grid-template-columns: repeat(5, 1fr); gap: 0.35rem; }
  .pull-card { font-size: 0.75rem; min-height: 70px; }
  .nav-inner { gap: 0.6rem; }
  .logo { font-size: 1rem; }
}
