:root {
  --bg: #faf6f1;
  --surface: #fffdfa;
  --ink: #2a1b17;
  --muted: #7d6a64;
  --line: #e4dcd9;
  --accent: #bc3005;
  --accent-soft: #fcede8
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: auto
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line)
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px
}

.language-select select {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer
}

.language-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 0 0 .8rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  user-select: none
}

.theme-toggle {
  height: 46px
}

.language-select:hover {
  border-color: var(--accent)
}

.language-select:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

.language-select select:focus {
  outline: 0
}

.language-select .material-symbols-outlined {
  display: block;
  font-size: 1rem
}

.language-select .language-arrow {
  margin: 0 .55rem 0 .16rem;
  pointer-events: none
}

.language-current {
  margin-left: .38rem;
  font-size: .86rem;
  line-height: 1;
  pointer-events: none
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none
}

.theme-toggle,
#clear-filters {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 5px;
  padding: .55rem .8rem;
  font: inherit;
  cursor: pointer
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-size: 1.2rem;
  line-height: 1
}

.theme-toggle:hover,
#clear-filters:hover {
  border-color: var(--accent)
}

.hero {
  padding: 56px 0 38px
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .1em;
  font-weight: 800
}

.hero h1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  margin: .35rem 0 1rem;
  letter-spacing: -.04em
}

.youtube-channel-link {
  display: block;
  flex: 0 0 auto;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  line-height: 0;
  overflow: hidden
}

.youtube-channel-link img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover
}

.hero p:not(.eyebrow) {
  color: var(--muted);
  margin: 0
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  align-items: end
}

.filters label {
  font-size: .84rem;
  font-weight: 650
}

.filters input,.filters select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: .58rem .65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font: inherit
}

.filters select {
  padding-right: 2.2rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364707d'%3E%3Cpath d='m7 10 5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .72rem center;
  background-size: 1.15rem
}

.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 38px 0 12px
}

.results-heading h2 {
  font-size: 1.25rem;
  margin: 0
}

.results-heading p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0
}

.benchmark-list {
  display: grid;
  gap: 10px
}

.benchmark-card {
  display: block;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: inherit;
  text-decoration: none
}

.benchmark-card:hover {
  border-color: var(--accent)
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline
}

.benchmark-card h3 {
  margin: 0;
  font-size: 1.2rem
}

.card-game-detail {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: 0
}

.date,
.meta {
  color: var(--muted);
  font-size: .88rem
}

.benchmark-card .meta {
  margin-top: .75em;
  margin-bottom: .375em;
  white-space: pre-wrap
}

.specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 9px 0 0
}

.tag {
  background: var(--accent-soft);
  color: #8e2707;
  border-radius: 3px;
  padding: .18rem .46rem;
  font-size: .82rem;
  font-weight: 650
}

.tag-nvidia {
  background: #eef7dc;
  color: #4d7800
}

.tag-ryzen {
  background: #fff0e9;
  color: #aa3f10
}

.tag-radeon {
  background: #fdebed;
  color: #aa1119
}

.tag-intel {
  background: #e7f2fb;
  color: #005493
}

.tag-intel-arc {
  background: #f8eafd;
  color: #9131aa
}

.driver-version {
  color: var(--muted);
  font-size: .72em;
  font-weight: 500
}

.component-name.tag-nvidia {
  background: transparent;
  color: #5c9000
}

.component-name.tag-ryzen {
  background: transparent;
  color: #c44d17
}

.component-name.tag-radeon {
  background: transparent;
  color: #df1336
}

.component-name.tag-intel {
  background: transparent;
  color: #007ca6
}

.component-name.tag-intel-arc {
  background: transparent;
  color: #a33ac0
}

footer {
  margin-top: 64px;
  padding: 24px 0;
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--line)
}

.detail {
  padding-top: 38px
}

.back {
  color: var(--accent);
  font-size: .9rem
}

.detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px
}

.detail-share-actions {
  display: flex;
  gap: 8px
}

.back-button,.copy-link,.post-to-x {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 40px;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer
}

.back-button:hover,.copy-link:hover,.post-to-x:hover {
  border-color: var(--accent)
}

.post-to-x {
  background: #000;
  border-color: #000;
  color: #fff
}

.post-to-x:hover {
  background: #222;
  border-color: #222
}

.back-button .material-symbols-outlined,.copy-link .material-symbols-outlined {
  font-size: 1.15rem
}

.x-logo {
  width: .9rem;
  height: .9rem
}

.detail h1 {
  margin: .4rem 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.25
}

.detail-eyebrow {
  margin-top: 20px
}

.lead {
  color: var(--muted);
  margin-top: 0
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0
}

.info-box,
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px
}

.info-box h2,
.table-wrap h2 {
  font-size: 1rem;
  margin: 0 0 10px
}

.info-box dl {
  margin: 0
}

.info-box dt {
  color: var(--muted);
  font-size: .82rem
}

.info-box dd {
  margin: 0 0 10px;
  font-weight: 600
}

.youtube-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 4px
}

.video-label {
  margin-bottom:8px
}

.version-season-pair {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}

.table-wrap {
  margin: 14px 0;
  overflow-x: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .92rem
}

th,
td {
  padding: .7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap
}

th {
  background: var(--accent-soft);
  color: var(--muted);
  font-size: .8rem
}

tbody tr:nth-child(even) {
  background: var(--bg)
}

tbody tr:hover {
  background: var(--accent-soft)
}

.upscaling-dlss {
  color: #5c9000;
  font-weight: 700
}

.upscaling-fsr {
  color: #be3d45;
  font-weight: 700
}

.upscaling-xess {
  color: #008cb7;
  font-weight: 700
}

tbody tr:last-child td {
  border: 0
}

.note {
  white-space: pre-wrap
}

.error {
  padding: 20px;
  background: var(--surface);
  border: 1px solid #b3261e;
  border-radius: 7px
}

.detail-actions-bottom {
  justify-content: flex-start;
  margin-top: 16px
}

@media(max-width:700px) {
  .header-actions {
    gap: 4px
  }

  .theme-toggle {
    width: 46px;
    padding: 0;
    justify-content: center
  }

  .language-select {
    width: 58px;
    padding: 0;
    justify-content: center
  }

  .theme-toggle span:last-child,.language-current,.language-arrow {
    display: none
  }

  .filters {
    grid-template-columns: 1fr
  }

  .filters button {
    width: fit-content
  }

  .detail-grid {
    grid-template-columns: 1fr
  }

  .card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px
  }

  .hero {
    padding-top: 40px
  }
}

html[data-theme="dark"] {
  --bg: #181716;
  --surface: #211f1d;
  --ink: #f5f1ef;
  --muted: #b7b0ac;
  --line: #413e3b;
  --accent: #f3815e;
  --accent-soft: #38241e
}

html[data-theme="dark"] .tag {
  color: #ffc7b6
}

html[data-theme="dark"] .tag-nvidia {
  background: #29410a;
  color: #c7ec82
}

html[data-theme="dark"] .tag-ryzen {
  background: #4d2717;
  color: #ff925f
}

html[data-theme="dark"] .tag-radeon {
  background: #4d1c20;
  color: #ffb8bd
}

html[data-theme="dark"] .tag-intel {
  background: #123c59;
  color: #a9ddff
}

html[data-theme="dark"] .tag-intel-arc {
  background: #452052;
  color: #eca8fb
}

html[data-theme="dark"] .component-name.tag-nvidia {
  background: transparent;
  color: #a8d750
}

html[data-theme="dark"] .component-name.tag-ryzen {
  background: transparent;
  color: #ff925f
}

html[data-theme="dark"] .component-name.tag-radeon {
  background: transparent;
  color: #ff8298
}

html[data-theme="dark"] .component-name.tag-intel {
  background: transparent;
  color: #72d9ff
}

html[data-theme="dark"] .component-name.tag-intel-arc {
  background: transparent;
  color: #e59af7
}

html[data-theme="dark"] .upscaling-dlss {
  color: #a8d750
}

html[data-theme="dark"] .upscaling-fsr {
  color: #ff9ba0
}

html[data-theme="dark"] .upscaling-xess {
  color: #72d9ff
}

html[data-theme="dark"] .post-to-x {
  border-color: #77828d
}
