@font-face {
  font-family: "CPUMETA Hibiya Latin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/KH-Dot-Hibiya-24.ttf") format("truetype"),
    local("KH Dot Hibiya 24"),
    local("KH-Dot-Hibiya-24");
  unicode-range: U+0020-007E;
}

@font-face {
  font-family: "KH Dot Kodenmachou 16";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/KH-Dot-Kodenmachou-16.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #000000;
  --surface-strong: #000000;
  --text: #b8ffbf;
  --muted: #6fa977;
  --line: #1f8f38;
  --line-soft: #174f25;
  --accent: #42ff6b;
  --accent-dim: #1ec646;
  --cyan: #00d1ff;
  --amber: #ffd84d;
  --magenta: #ff3fb4;
  --panel-alpha: 0.9;
  --ok: #42ff6b;
  --warn: #ffd84d;
  --bad: #ff4d5f;
  --unknown: #77817a;
  --font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    repeating-linear-gradient(90deg, rgba(66, 255, 107, 0.028) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(0, 209, 255, 0.018) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #000000 0%, #020705 100%);
  color: var(--text);
  font-family: "CPUMETA Hibiya Latin", "KH Dot Kodenmachou 16", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: var(--font-size);
  line-height: 1.58;
  letter-spacing: 0;
  font-synthesis: none;
  text-rendering: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(184, 255, 191, 0.05) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.38;
}

.silicon-field,
.bitstream-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.bitstream-field {
  opacity: 0.9;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  letter-spacing: 0;
}

.terminal-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 24px));
  margin: 22px auto 64px;
}

.terminal-shell::after {
  content: "";
  display: block;
  height: max(96px, calc(50vh - 210px));
}

.terminal-window {
  --visual-pulse: 0;
  position: relative;
  border: 1px solid rgba(31, 143, 56, 0.7);
  background:
    repeating-linear-gradient(135deg, rgba(66, 255, 107, 0.04) 0 1px, transparent 1px 14px),
    rgba(0, 0, 0, var(--panel-alpha));
}

.terminal-window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(66, 255, 107, 0.12), transparent 96px),
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(66, 255, 107, 0.045) 6px 7px);
  opacity: calc(0.24 + var(--visual-pulse) * 0.42);
}

.terminal-window[data-visual-overclock="1"] {
  border-color: var(--amber);
}

.terminal-window > * {
  position: relative;
  z-index: 1;
}

.terminal-titlebar {
  --titlebar-control-height: 31px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(66, 255, 107, 0.12), transparent 45%, rgba(0, 209, 255, 0.1)),
    var(--surface-strong);
  overflow: visible;
  z-index: 40;
}

.terminal-logo {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  min-width: 0;
}

.terminal-logo__text {
  display: flex;
  align-items: center;
  height: var(--titlebar-control-height);
  padding: 0 8px;
  background: var(--accent);
  color: var(--bg);
  font-size: 1.42rem;
  line-height: 1;
  white-space: nowrap;
}

.terminal-titlebar__rule {
  height: var(--titlebar-control-height);
  min-width: 40px;
  background:
    repeating-linear-gradient(90deg, var(--accent), var(--accent) 2px, transparent 2px, transparent 10px),
    repeating-linear-gradient(90deg, transparent 0 34px, var(--magenta) 34px 36px, transparent 36px 54px);
  opacity: 0.82;
}

.terminal-language {
  position: relative;
  justify-self: end;
  min-width: 104px;
  z-index: 60;
}

.terminal-language__button,
.terminal-language__menu button {
  width: 100%;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(0, 209, 255, 0.08) 0 1px, transparent 1px 9px),
    var(--bg);
  color: var(--accent);
  cursor: pointer;
  text-align: left;
}

.terminal-language__button {
  min-height: var(--titlebar-control-height);
  padding: 5px 4px 4px 9px;
  white-space: nowrap;
}

.terminal-language__button:hover,
.terminal-language__button:focus-visible,
.terminal-language__menu button:hover,
.terminal-language__menu button:focus-visible {
  background: var(--accent);
  color: var(--bg);
  outline: none;
}

.terminal-language__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  z-index: 70;
}

.terminal-language__menu button {
  display: block;
  min-height: 30px;
  padding: 5px 9px 4px;
  border-width: 0 0 1px;
}

.terminal-language__menu button:last-child {
  border-bottom: 0;
}

.terminal-tabs {
  --tabs-pad-x: 20px;
  --tab-w: 142px;
  --tab-overlap: 16px;
  --tab-svg-outset: 18px;
  --tab-rail-height: 44px;
  --tab-rail-width: 430px;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0;
  overflow: hidden;
  min-height: 62px;
  padding: 18px var(--tabs-pad-x) 0;
  background:
    repeating-linear-gradient(90deg, rgba(66, 255, 107, 0.035) 0 1px, transparent 1px 22px),
    var(--surface-strong);
  isolation: isolate;
}

.terminal-tabs::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(var(--tabs-pad-x) - var(--tab-svg-outset));
  width: var(--tab-rail-width);
  height: var(--tab-rail-height);
  background-image: url("../img/tabs-evaluation.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}

.terminal-tabs[data-active-tab="price"]::before {
  background-image: url("../img/tabs-price.svg");
}

.terminal-tabs[data-active-tab="ranking"]::before {
  background-image: url("../img/tabs-ranking.svg");
}

.terminal-tabs::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--tab-rail-height);
  background-image: url("../img/tab-line.svg");
  background-repeat: repeat-x;
  background-size: 12px var(--tab-rail-height);
  pointer-events: none;
  z-index: 0;
}

.terminal-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--tab-w);
  min-width: var(--tab-w);
  min-height: 40px;
  margin-left: calc(-1 * var(--tab-overlap));
  padding: 8px 18px 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  z-index: 3;
  text-shadow: 0 0 10px rgba(0, 209, 255, 0.15);
}

.terminal-tab:first-child {
  margin-left: 0;
}

.terminal-tab:nth-child(2) {
  z-index: 2;
}

.terminal-tab:nth-child(3) {
  z-index: 1;
}

.terminal-tab:hover,
.terminal-tab:focus-visible {
  color: var(--accent);
  outline: none;
}

.terminal-tab[aria-selected="true"] {
  color: var(--accent);
  z-index: 5;
}

.terminal-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 7px;
  left: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent);
}

.terminal-panel {
  position: relative;
  min-width: 0;
  padding: 24px;
}

.terminal-panel[hidden] {
  display: none;
}

.terminal-prompt {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 400;
}

.terminal-prompt::before {
  content: "> ";
  color: var(--accent);
}

.top-panel {
  display: grid;
  gap: 18px;
}

.top-heading__art {
  margin: 0;
  font-size: clamp(0.34rem, 1.08vw, 0.78rem);
  line-height: 1.05;
  text-align: center;
  overflow: hidden;
}

.top-concept {
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(90deg, rgba(66, 255, 107, 0.035) 0 1px, transparent 1px 26px),
    var(--bg);
}

.top-concept p {
  margin: 0;
  color: var(--text);
}

.top-concept p + p {
  margin-top: 0.55em;
}

.top-concept__catchcopy {
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 700;
  text-align: center;
  transform: skewX(-6deg);
}

.top-task-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line-soft);
  background: var(--bg);
}

.top-task-links__group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-content: start;
  min-width: 0;
}

.top-task-links__group + .top-task-links__group {
  border-top: 1px solid rgba(31, 143, 56, 0.28);
}

.top-task-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(31, 143, 56, 0.36);
  color: var(--text);
  text-align: center;
  text-decoration: none;
}

.top-task-link:last-child {
  border-bottom: 0;
}

.top-task-link + .top-task-link {
  border-left: 1px solid rgba(31, 143, 56, 0.28);
}

.top-task-link:hover,
.top-task-link:focus-visible {
  background: var(--accent);
  color: var(--bg);
  outline: none;
}

.top-ranking-heading {
  margin: 10px 0 -4px;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.task-ranking-panel {
  display: block;
}

.task-ranking-panel > * + * {
  margin-top: 18px;
}

.task-ranking-title {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.85rem, 3.7vw, 3rem);
  line-height: 1.16;
  text-align: center;
}

.task-ranking-description,
.task-ranking-notes {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(90deg, rgba(66, 255, 107, 0.035) 0 1px, transparent 1px 26px),
    var(--bg);
  color: var(--text);
}

.task-ranking-notes {
  border-style: dotted;
}

.task-ranking-description__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  float: right;
  max-width: min(42%, 360px);
  margin: 0 0 10px 16px;
}

.task-ranking-description p {
  margin: 0;
}

.task-ranking-description p + p {
  margin-top: 0.55em;
}

.task-ranking-description__notes-heading {
  color: var(--muted);
}

.task-ranking-description__assumption {
  color: var(--amber);
}

.task-ranking-notes ul {
  margin: 0.55em 0 0;
  padding-left: 1.2em;
}

.task-ranking-notes li + li {
  margin-top: 0.35em;
}

.cpu-hero {
  min-width: 0;
  padding-bottom: 0;
}

.cpu-hero h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.85rem, 3.7vw, 3rem);
  line-height: 1.16;
  text-align: center;
}

.cpu-hero__title-link {
  color: inherit;
  text-decoration: none;
}

.cpu-hero__title-link:hover,
.cpu-hero__title-link:focus-visible {
  color: var(--amber);
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.cpu-hero__visual {
  position: relative;
  min-height: 88px;
  margin-top: 0;
  border: 1px solid rgba(31, 143, 56, 0.46);
  background:
    linear-gradient(90deg, rgba(0, 209, 255, 0.1), transparent 34%, rgba(255, 216, 77, 0.07)),
    rgba(0, 0, 0, 0.7);
}

.cpu-hero__visual::before,
.cpu-hero__visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cpu-hero__visual::before {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(66, 255, 107, 0.12) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(66, 255, 107, 0.08) 0 1px, transparent 1px 20px);
}

.cpu-hero__visual::after {
  top: 8px;
  right: 10px;
  width: 48px;
  height: 12px;
  border-top: 1px solid var(--amber);
  border-bottom: 1px solid var(--cyan);
}

.cpu-hero__visual canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 88px;
}

.cpu-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  grid-template-areas:
    "hero ."
    "visual specs"
    "main specs";
  gap: 18px;
  align-items: start;
}

.cpu-hero {
  grid-area: hero;
}

.cpu-dashboard__main,
.cpu-dashboard__visual,
.cpu-dashboard__specs {
  min-width: 0;
}

.cpu-dashboard__visual {
  grid-area: visual;
}

.cpu-dashboard__main {
  grid-area: main;
}

.cpu-dashboard__specs {
  grid-area: specs;
  position: sticky;
  top: 16px;
}

.cpu-hero__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 0;
}

.cpu-dashboard__summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.cpu-hero__summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(66, 255, 107, 0.085), transparent 56%, rgba(0, 209, 255, 0.05)),
    var(--bg);
  font-weight: 400;
  text-decoration: none;
}

.cpu-dashboard__summary .cpu-hero__summary-item {
  min-height: 36px;
  padding: 6px 8px;
  gap: 8px;
}

.cpu-hero__summary-item:hover,
.cpu-hero__summary-item:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.cpu-hero__summary-label {
  min-width: 0;
  color: var(--text);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.cpu-dashboard__summary .cpu-hero__summary-label {
  font-size: 0.86rem;
}

.cpu-hero__summary-symbol {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 1.05rem;
}

.cpu-spec-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 216, 77, 0.045) 0 1px, transparent 1px 21px),
    var(--bg);
}

.cpu-spec-strip div {
  display: grid;
  grid-template-columns: minmax(100px, 44%) minmax(0, 1fr);
  min-height: 38px;
  border-bottom: 1px solid rgba(31, 143, 56, 0.28);
}

.cpu-spec-strip dt {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-right: 1px solid rgba(31, 143, 56, 0.5);
  color: var(--text);
  font-size: 0.88rem;
}

.cpu-spec-strip dd {
  display: flex;
  align-items: center;
  margin: 0;
  min-width: 0;
  padding: 7px 10px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.cpu-spec-notes {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dotted var(--line-soft);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cpu-spec-notes p {
  margin: 0;
}

.task-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 14px;
}

.task-list-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.task-section {
  position: relative;
  min-width: 0;
  padding: 18px 0 20px;
  border: 0;
  scroll-margin-top: 18px;
}

.task-section + .task-section {
  padding-top: 20px;
  border-top: 1px dotted var(--line);
}

.task-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.task-section__title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.task-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.06rem;
}

.task-section__icons {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.task-section__icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: auto;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(31, 143, 56, 0.42);
}

.task-section__evaluation {
  margin: 0;
  flex: 0 0 auto;
  font-weight: 400;
}

.task-score-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0 0 13px;
  overflow: visible;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(255, 63, 180, 0.05), transparent 21%, rgba(0, 209, 255, 0.055)),
    var(--bg);
}

.task-score-compare__row {
  display: grid;
  grid-template-columns: minmax(112px, 166px) minmax(72px, 1fr) 106px;
  align-items: center;
  gap: 0;
  min-height: 38px;
  border-bottom: 1px solid rgba(31, 143, 56, 0.28);
  overflow: visible;
}

.task-score-compare__row:last-child {
  border-bottom: 0;
}

.task-score-compare__name,
.task-score-compare__score {
  color: var(--text);
  font-weight: 400;
}

.task-score-compare__name {
  padding: 7px 10px;
}

.task-score-compare__name-link,
.task-section__text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.task-score-compare__name-link {
  display: flex;
  align-items: center;
  min-width: 0;
}

.task-score-compare__name-link:hover,
.task-score-compare__name-link:focus-visible,
.task-section__text-link:hover,
.task-section__text-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.task-score-compare__score {
  padding: 7px 10px;
  border-left: 1px solid rgba(31, 143, 56, 0.5);
  display: grid;
  grid-template-columns: minmax(0, auto) 1.4em;
  gap: 6px;
  align-items: center;
  text-align: left;
  white-space: nowrap;
}

.task-score-compare__score-symbol {
  text-align: center;
}

.task-score-compare__bar {
  position: relative;
  height: 22px;
  overflow: visible;
  border-left: 1px solid rgba(31, 143, 56, 0.5);
  background:
    repeating-linear-gradient(90deg, rgba(66, 255, 107, 0.06) 0 1px, transparent 1px 12px),
    var(--bg);
}

.task-score-compare__bar > span {
  --bar-color: var(--accent-dim);
  position: relative;
  display: block;
  height: 100%;
  min-width: 3px;
  background:
    linear-gradient(90deg, rgba(0, 209, 255, 0.22), transparent 24%, rgba(255, 216, 77, 0.18)),
    repeating-linear-gradient(90deg, var(--bar-color) 0 11px, transparent 11px 15px);
}

.task-score-compare__row--current .task-score-compare__bar > span {
  --bar-color: var(--ok);
}

.task-score-compare__marker {
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  display: block;
  color: var(--ok);
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.task-score-compare__marker:empty {
  display: none;
}

.task-section__text,
.task-section__link {
  margin: 11px 0 0;
  overflow-wrap: anywhere;
}

.task-section__text {
  color: var(--text);
  word-break: normal;
}

.task-section__link a::before {
  content: "";
}

.price-search-list {
  display: grid;
  grid-template-columns: max-content minmax(84px, max-content);
  gap: 0;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  background:
    repeating-linear-gradient(90deg, rgba(66, 255, 107, 0.035) 0 1px, transparent 1px 26px),
    var(--bg);
}

.price-search-row {
  display: contents;
}

.price-search-row__service,
.price-search-row__button {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  border-bottom: 1px solid rgba(31, 143, 56, 0.36);
  color: var(--text);
  text-decoration: none;
}

.price-search-row__service {
  padding: 8px 12px;
  white-space: nowrap;
}

.price-search-row__button {
  justify-content: center;
  min-width: 84px;
  padding: 8px 12px;
  border-left: 1px solid rgba(31, 143, 56, 0.5);
  color: var(--accent);
  white-space: nowrap;
}

.price-search-row__service:hover,
.price-search-row__service:focus-visible,
.price-search-row__button:hover,
.price-search-row__button:focus-visible {
  background: var(--accent);
  color: var(--bg);
  outline: none;
}

.ranking-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.ranking-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(90deg, rgba(0, 209, 255, 0.06) 0 1px, transparent 1px 12px),
    var(--bg);
  color: var(--text);
  cursor: pointer;
}

.ranking-filter input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.ranking-affiliate-notice {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0.72;
  text-align: right;
}

.price-affiliate-notice {
  margin: -8px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0.72;
  text-align: right;
}

.ranking-list {
  --ranking-columns: 72px minmax(220px, 1fr) minmax(128px, 176px) 116px 84px;
  position: relative;
  display: block;
  max-height: min(68vh, 720px);
  overflow: auto;
  border: 1px solid var(--line-soft);
  background: var(--bg);
}

.ranking-list--top {
  --ranking-columns: 58px minmax(160px, 1fr) minmax(104px, 128px) 122px 118px 92px 78px 98px 76px;
  max-height: min(72vh, 860px);
}

.ranking-list__head,
.ranking-list__reminder,
.ranking-row {
  display: grid;
  grid-template-columns: var(--ranking-columns);
  align-items: stretch;
  min-width: 0;
}

.ranking-list__head {
  position: sticky;
  top: 0;
  z-index: 3;
}

.ranking-list__head,
.ranking-list__reminder {
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.ranking-list__reminder {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
}

.ranking-row {
  min-height: 42px;
  border-bottom: 1px solid rgba(31, 143, 56, 0.32);
  color: var(--text);
}

.ranking-row[hidden] {
  display: none;
}

.ranking-list__head span,
.ranking-list__reminder span,
.ranking-row > span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 7px 10px;
  border-left: 1px solid rgba(31, 143, 56, 0.42);
}

.ranking-list__head span,
.ranking-list__reminder span {
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.ranking-list__head span:first-child,
.ranking-list__reminder span:first-child,
.ranking-row > span:first-child {
  border-left: 0;
}

.ranking-row:hover,
.ranking-row:focus-within {
  background: var(--accent);
  color: var(--bg);
  outline: none;
}

.ranking-row:hover a,
.ranking-row:focus-within a {
  color: var(--bg);
}

.ranking-row--current {
  box-shadow: inset 3px 0 0 var(--amber);
  color: var(--accent);
}

.ranking-row--current .ranking-row__rank {
  color: var(--amber);
}

.ranking-row--current .ranking-row__rank::before {
  content: ">";
  margin-right: 5px;
}

.ranking-row__model {
  gap: 8px;
}

.ranking-row__model-link {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row__model-link:hover,
.ranking-row__model-link:focus-visible {
  color: var(--amber);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ranking-row__amazon-link {
  flex: 0 0 auto;
  display: inline-block;
  width: 38px;
  height: 16px;
  border: 1px solid currentColor;
  background: #fff url("../img/link-icons/amazon-external.png") center / contain no-repeat;
  color: var(--amber);
  text-decoration: none;
}

.ranking-row__amazon-link:hover,
.ranking-row__amazon-link:focus-visible {
  border-color: var(--amber);
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ranking-row__score {
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}

.ranking-row__score-bar {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  z-index: 0;
  display: block;
  max-width: 100%;
  background: rgba(66, 255, 107, 0.28);
  opacity: 0.62;
}

.ranking-row__score-value {
  position: relative;
  z-index: 1;
}

.ranking-row:hover .ranking-row__score-bar,
.ranking-row:focus-within .ranking-row__score-bar {
  background: rgba(0, 0, 0, 0.26);
  opacity: 1;
}

.ranking-row__spec,
.ranking-row__clock,
.ranking-row__socket,
.ranking-row__integrated-graphics,
.ranking-row__windows-11,
.ranking-row__year {
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .ranking-list {
    --ranking-columns: 42px minmax(0, 1fr) 86px;
    overflow-x: hidden;
  }

  .ranking-list__head span:nth-child(n+4),
  .ranking-list__reminder span:nth-child(n+4),
  .ranking-row > span:nth-child(n+4) {
    display: none;
  }

  .ranking-list__head span,
  .ranking-list__reminder span,
  .ranking-row > span {
    padding: 7px 6px;
  }

  .ranking-row {
    min-height: 38px;
  }

  .ranking-row--current .ranking-row__rank::before {
    content: "";
    margin-right: 0;
  }

  .ranking-row__model {
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ranking-row__score {
    font-size: 0.92rem;
  }
}

@media (max-width: 420px) {
  .ranking-list {
    --ranking-columns: 38px minmax(0, 1fr) 82px;
  }

  .ranking-list__head,
  .ranking-list__reminder {
    font-size: 0.8rem;
  }

  .ranking-list__head span,
  .ranking-list__reminder span,
  .ranking-row > span {
    padding-right: 5px;
    padding-left: 5px;
  }

  .ranking-row__rank {
    justify-content: center;
  }

  .ranking-row__score {
    font-size: 0.86rem;
  }

  .ranking-row__score-bar {
    top: 9px;
    bottom: 9px;
  }
}

.terminal-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-soft);
  background:
    repeating-linear-gradient(135deg, rgba(66, 255, 107, 0.07) 0 1px, transparent 1px 16px),
    var(--bg);
  color: var(--muted);
  text-align: center;
}

.terminal-empty p {
  margin: 0;
}

.terminal-footer {
  padding: 22px 24px 24px;
  border-top: 1px dotted var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(66, 255, 107, 0.035) 0 1px, transparent 1px 28px),
    var(--bg);
}

.terminal-footer__art {
  margin: 0;
  color: var(--accent);
  font: 400 0.72rem/1.05 "CPUMETA Hibiya Latin", "KH Dot Kodenmachou 16", monospace;
  white-space: pre;
}

.terminal-footer__powered {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 400;
}

.terminal-footer__powered a {
  display: inline-flex;
  align-items: center;
}

.terminal-footer__powered img {
  display: block;
  width: auto;
  height: 24px;
}

.terminal-footer__prompt {
  margin: 18px 0 0;
  color: var(--accent);
  font-weight: 400;
}

.external-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin: 8px 0 0 auto;
  padding: 0 24px;
  max-width: 280px;
  text-align: right;
  font-size: 0.82rem;
  line-height: 1.35;
}

.external-footer-links a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.external-footer-links a:hover,
.external-footer-links a:focus-visible {
  color: var(--accent);
  outline: none;
}

.evaluation--comfortable .cpu-hero__summary-symbol,
.evaluation--stable .cpu-hero__summary-symbol,
.evaluation--possible .cpu-hero__summary-symbol,
.evaluation--comfortable .task-section__evaluation,
.evaluation--stable .task-section__evaluation,
.evaluation--possible .task-section__evaluation {
  color: var(--ok);
}

.evaluation--comfortable .task-score-compare__row--current .task-score-compare__bar > span,
.evaluation--stable .task-score-compare__row--current .task-score-compare__bar > span,
.evaluation--possible .task-score-compare__row--current .task-score-compare__bar > span {
  --bar-color: var(--ok);
}

.evaluation--borderline .cpu-hero__summary-symbol,
.evaluation--borderline .task-section__evaluation {
  color: var(--warn);
}

.evaluation--borderline .task-score-compare__row--current .task-score-compare__bar > span {
  --bar-color: var(--warn);
}

.evaluation--hard .cpu-hero__summary-symbol,
.evaluation--hard .task-section__evaluation {
  color: var(--bad);
}

.evaluation--hard .task-score-compare__row--current .task-score-compare__bar > span {
  --bar-color: var(--bad);
}

.evaluation--unknown .cpu-hero__summary-symbol,
.evaluation--unknown .task-section__evaluation {
  color: var(--unknown);
}

.evaluation--unknown .task-score-compare__row--current .task-score-compare__bar > span {
  --bar-color: var(--unknown);
}

.spec-state {
  font-weight: 400;
}

.spec-state--supported {
  color: var(--ok);
}

.spec-state--unsupported {
  color: var(--bad);
}

.spec-state--integrated-graphics.spec-state--unsupported {
  color: var(--unknown);
}

.spec-state--unknown {
  color: var(--unknown);
}

@media (max-width: 760px) {
  :root {
    --font-size: 15px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .terminal-shell {
    width: calc(100% - 14px);
    max-width: calc(100% - 14px);
    margin-top: 8px;
  }

  .terminal-window {
    width: 100%;
    overflow: hidden;
  }

  .terminal-titlebar {
    grid-template-columns: auto minmax(24px, 1fr) auto;
    gap: 8px;
  }

  .terminal-titlebar__rule {
    min-width: 24px;
  }

  .terminal-language {
    min-width: 104px;
  }

  .terminal-panel {
    width: 100%;
    overflow: hidden;
    padding: 14px;
  }

  .top-task-links {
    grid-template-columns: 1fr;
  }

  .top-task-links__group {
    grid-template-columns: 1fr;
  }

  .top-task-link + .top-task-link {
    border-left: 0;
  }

  .terminal-tabs {
    --tabs-pad-x: 8px;
    --tab-w: calc((100% + 24px) / 3);
    --tab-overlap: 12px;
    --tab-rail-width: calc(100% + 36px);
    padding: 16px var(--tabs-pad-x) 0;
  }

  .terminal-tab {
    flex: 0 0 var(--tab-w);
    min-width: 0;
    margin-left: calc(-1 * var(--tab-overlap));
    padding: 8px 4px 7px;
    font-size: 0.92rem;
    text-align: center;
    white-space: nowrap;
  }

  .terminal-tab:first-child {
    margin-left: 0;
  }

  .cpu-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "visual"
      "specs"
      "main";
  }

  .cpu-hero__visual {
    min-height: 70px;
  }

  .cpu-hero__visual canvas {
    height: 70px;
  }

  .cpu-dashboard__specs {
    position: static;
  }

  .cpu-hero__summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .cpu-dashboard__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cpu-hero__summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .task-section {
    padding: 18px 0 20px;
    overflow: visible;
  }

  .task-section + .task-section {
    padding-top: 22px;
  }

  .task-section__header,
  .task-score-compare__row {
    display: block;
  }

  .task-section__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .task-section__icons {
    justify-content: flex-end;
    max-width: 118px;
  }

  .task-section__icon {
    width: 18px;
    height: 18px;
  }

  .task-section__evaluation {
    margin-top: 4px;
  }

  .task-score-compare__bar {
    width: min(72%, calc(100% - 20px));
    margin: 0 10px;
    border-left: 0;
  }

  .task-score-compare__score {
    border-left: 0;
  }

  .price-search-row__service {
    padding: 9px 10px;
  }

  .price-search-row__button {
    min-width: 82px;
    padding: 9px 10px;
  }

  .ranking-toolbar {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .ranking-affiliate-notice {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .ranking-filter {
    max-width: 100%;
    padding: 6px 9px;
  }

  .price-affiliate-notice {
    text-align: center;
  }

  .ranking-list {
    max-height: min(64vh, 620px);
  }

  .terminal-footer {
    padding: 18px 14px 20px;
  }

  .terminal-footer__art {
    font-size: 0.26rem;
    line-height: 1.08;
  }

  .terminal-footer__powered {
    gap: 8px;
    margin-top: 12px;
  }

  .terminal-footer__powered img {
    height: 20px;
  }

  .external-footer-links {
    align-items: flex-end;
    margin: 16px 0 0 auto;
    padding: 0 14px;
    max-width: 100%;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    opacity: 0.24;
  }

  .silicon-field,
  .bitstream-field {
    opacity: 0.72;
  }
}
