:root {
  color-scheme: dark;
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  --background: #071015;
  --panel: #101a21;
  --panel-light: #17252d;
  --line: #2c3e47;
  --text: #eef8f3;
  --muted: #8fa69c;
  --accent: #8ce3ad;
  --accent-bright: #c5ffdb;
  --blue: #69cbea;
  --gold: #e7bd69;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, #17333a 0, transparent 42%),
    linear-gradient(145deg, #071015, #0a1419 55%, #081015);
  color: var(--text);
}

body {
  min-height: 100vh;
  font-size: 13px;
  line-height: 1.8;
}

a { font: inherit; }

.tut-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 7px 18px;
  border-bottom: 1px solid var(--line);
  background: #0c151bdc;
  backdrop-filter: blur(14px);
}

.tut-header a {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  padding: 0 11px;
  border: 1px solid #39505b;
  border-radius: 7px;
  background: #17242c;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}

.tut-header a:hover {
  border-color: var(--accent);
  background: #1b2d35;
}

.tut-header span {
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .18em;
}

.tut-header span::after {
  margin-left: 10px;
  color: var(--muted);
  content: "GAME GUIDE";
  font-size: 9px;
  letter-spacing: .12em;
}

.tut-main {
  width: min(1180px, calc(100% - 24px));
  min-height: calc(100vh - 84px);
  margin: 8px auto 16px;
  padding: 18px 20px 28px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d171de8;
  box-shadow: 0 18px 50px #0005;
}

.tut-main::before {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  content: "TACTICAL ARCHIVE";
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}

.tut-main .tut-index-back {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  margin: 4px 0 12px;
  padding: 0 10px;
  border: 1px solid #39505b;
  border-radius: 7px;
  background: var(--panel-light);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}

.tut-main .tut-index-back:hover {
  border-color: var(--accent);
  background: #1b2d35;
}

.tut-main h1 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 20px;
  letter-spacing: .04em;
}

.tut-main h2 {
  margin: 26px 0 9px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  color: var(--accent-bright);
  font-size: 15px;
}

.tut-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.tut-main p { margin: 8px 0; }
.tut-main ul { margin: 8px 0; padding-left: 22px; }
.tut-main li { margin: 4px 0; }
.tut-main a { color: var(--blue); }

a.term {
  padding: 1px 3px;
  border-bottom: 1px dashed #69cbea88;
  color: var(--blue);
  text-decoration: none;
}

a.term:hover { border-bottom-style: solid; }

.tut-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.tut-card {
  position: relative;
  display: grid;
  min-height: 82px;
  align-content: center;
  padding: 12px 42px 12px 14px;
  overflow: hidden;
  border: 1px solid #39505b;
  border-radius: 7px;
  background: linear-gradient(145deg, #17252d, #111d24);
  color: var(--text) !important;
  text-decoration: none;
  box-shadow: inset 0 1px #9be8bd0c;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.tut-card::after {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--accent);
  content: "›";
  font-size: 22px;
  transform: translateY(-52%);
}

.tut-card:hover {
  border-color: var(--accent);
  background: linear-gradient(145deg, #1b3035, #14241f);
  transform: translateY(-1px);
}

.tut-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 13px;
}

.tut-card small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
}

.tut-related {
  margin-top: 30px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-light);
}

.tut-related h2 {
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .1em;
}

.tut-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 800px) {
  .tut-header { padding-inline: 12px; }
  .tut-header span::after { display: none; }
  .tut-main {
    width: calc(100% - 16px);
    padding: 15px;
  }
  .tut-cards { grid-template-columns: 1fr; }
}
