@font-face {
  font-family: "GTA Art Deco";
  src: url("../assets/fonts/gta-art-deco-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: "GTA Art Deco", system-ui, sans-serif;
  font-weight: 500;
  color: #fff1f3;
  background: #100c20;
  font-synthesis: none;
  --muted: #dbbfda;
  --line: #71506f;
  --focus: #9af7e3;
  --pink: #ffb1d5;
  --teal: #9af7e3;
  --peach: #ffd0aa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: #755269; color: white; }
body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
}
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.backdrop-image, .backdrop::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.backdrop-image {
  object-fit: cover;
  object-position: center 35%;
  opacity: 0;
  transition: opacity 900ms ease;
}
.backdrop-image.is-visible { opacity: 1; }
.backdrop::after {
  content: "";
  background: linear-gradient(180deg, #100c20b8, #100c206b 45%, #100c20bf 100%);
}
@media (prefers-reduced-motion: reduce) {
  .backdrop-image { transition: none; }
}
.wrap { width: min(900px, calc(100% - 48px)); margin-inline: auto; }
a { color: inherit; text-underline-offset: 4px; }
main { padding: clamp(38px, 7vh, 78px) 0 58px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
.title-logo {
  display: block;
  width: 144px;
  height: 104px;
  object-fit: cover;
  margin: -14px auto 2px;
}
h1 {
  font-family: inherit;
  font-weight: 500;
  -webkit-text-stroke: .3px currentColor;
  margin: 0 auto 33px;
  font-size: clamp(2.5rem, 6.7vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 18px #140513;
}
.title-accent { color: var(--pink); }
.checker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: 1px solid var(--line);
  border-radius: 44px;
  overflow: hidden;
  background: #181223a6;
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
}
.settings, .result {
  min-width: 0;
  padding: 26px clamp(18px, 3vw, 32px);
}
.settings {
  display: grid;
  align-content: start;
  gap: 17px;
}
.field { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: .875rem; }
.field input, .field select {
  display: block; width: 100%; min-width: 0; min-height: 43px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; background-color: #130f2266; color: #f3edf4;
  font: inherit; font-size: 1rem;
}
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c6b5c8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 17px center;
  background-repeat: no-repeat;
  background-size: 15px;
}
.field input:hover, .field select:hover { border-color: var(--teal); }
.field input::placeholder { color: var(--muted); opacity: 1; }
.ram-field { color: var(--muted); font-size: .875rem; }
.ram-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ram-value {
  display: inline-flex; flex: 0 0 auto; align-items: baseline; gap: 4px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #130f2266;
  transition: border-color 150ms ease;
}
.ram-value:hover, .ram-value:focus-within { border-color: var(--teal); }
.ram-value input {
  appearance: textfield; width: 5ch; min-width: 0; border: 0; padding: 1px;
  background: transparent; color: #f3edf4; font: inherit; font-size: 1rem; text-align: right;
}
.ram-value input:focus, .ram-value input:focus-visible { outline: none; }
.ram-value input::-webkit-inner-spin-button, .ram-value input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.ram-field input[type="range"] {
  --fill: 55.56%;
  display: block; width: 100%; height: 32px; margin: 0; padding: 0;
  appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer;
}
.ram-field input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) var(--fill), #4a3a4b var(--fill));
}
.ram-field input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin-top: -6px; border: 0; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px #9af7e31f, 0 0 12px #9af7e359;
  transition: transform 120ms ease;
}
.ram-field input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.ram-field input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #4a3a4b; }
.ram-field input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--teal); }
.ram-field input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px #9af7e31f, 0 0 12px #9af7e359;
}
.ram-field input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 999px; }
.ram-scale { display: flex; justify-content: space-between; margin-top: 2px; font-size: .8125rem; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.result {
  border-inline-start: 1px solid var(--line);
  background: #29192d33;
}
.verdict {
  color: #ffe1ea; font-size: clamp(1.7rem, 4vw, 2.55rem); letter-spacing: -.018em; line-height: 1.15;
}
.estimate-label, .verdict-reason { margin-top: 6px; color: #e9d7e4; font-size: .875rem; line-height: 1.45; }
.verdict-reason { overflow-wrap: anywhere; }
.comparison { margin: 14px 0 0; font-size: .875rem; }
.comparison div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0; border-top: 1px solid #463743;
}
.comparison dt { color: #f8e7ef; }
.comparison dt span { display: block; margin-top: 2px; color: #d8c3d2; }
.comparison dd { margin: 0; color: #e9d7e4; white-space: nowrap; }
.comparison dd[data-status="above"],
.comparison dd[data-status="near"] { color: var(--teal); }
.comparison dd[data-status="below"] { color: var(--peach); }
.comparison dd[data-status="uncertain"] { color: #f4d2a1; }
.vram-note { margin-top: 4px; }
.gameplay { margin-top: 13px; padding-top: 13px; border-top: 1px solid #534152; }
.vram-note, .gameplay p { color: #cfbac9; font-size: .875rem; line-height: 1.45; }
.gameplay p { margin-top: 4px; }

@media (max-width: 630px) {
  .wrap { width: calc(100% - 32px); }
  main { padding-top: 29px; }
  h1 { margin-bottom: 19px; }
  .checker { grid-template-columns: minmax(0, 1fr); }
  .checker { border-radius: 32px; }
  .settings, .result { padding: 24px 21px; }
  .settings { gap: 12px; }
  .result { border-inline-start: 0; border-top: 1px solid var(--line); }
  .backdrop-image { object-position: var(--mobile-position, 42%) top; }
  .ram-value { padding: 6px 12px; }
  .ram-field input[type="range"] { height: 36px; }
  .ram-field input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; }
  .ram-field input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; }
  .ram-scale { font-size: .75rem; }
}
@media (max-width: 355px) {
  .wrap { width: calc(100% - 24px); }
}

.field option, .field optgroup {
  color: #fff1f3;
  background: #261c33;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .checker { background: #181223ed; }
}

.menu-trigger {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 40px 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #f3edf4;
  background: #130f2266;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.menu-trigger::after {
  content: "";
  position: absolute;
  right: 19px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #dbcddd;
  border-bottom: 1.5px solid #dbcddd;
  transform: rotate(45deg);
}
.menu-trigger:hover, .menu-trigger[aria-expanded="true"] { border-color: var(--teal); }
.choice-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #ffffff38;
  border-radius: 24px;
  color: #fff1f3;
  background: #21162e85;
  -webkit-backdrop-filter: blur(40px) saturate(145%);
  backdrop-filter: blur(40px) saturate(145%);
  box-shadow: 0 16px 50px #05020b66;
  scrollbar-width: thin;
  scrollbar-color: #c3a6c866 transparent;
}
.choice-group {
  padding: 12px 14px 6px;
  color: #d8bcd6;
  font-size: .75rem;
}
.choice-option {
  display: block;
  width: 100%;
  padding: 11px 34px 11px 14px;
  position: relative;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .9375rem;
  text-align: left;
  cursor: pointer;
}
.choice-option:hover, .choice-option:focus-visible { background: #ffffff13; outline: none; }
.choice-option.is-selected { background: #9af7e31a; color: var(--teal); }
.choice-option.is-selected::after { content: "✓"; position: absolute; right: 14px; }

.sources { margin-top: 14px; color: #cfbac9; font-size: .8125rem; line-height: 1.5; }
.sources summary { width: fit-content; padding: 5px 0; cursor: pointer; color: #f3edf4; }
.sources p { margin-top: 7px; }
.sources ul { padding-left: 18px; margin: 8px 0 0; }
.sources li { margin-top: 4px; }

.menu-search { position: sticky; top: 0; z-index: 1; width: 100%; min-height: 40px; margin-bottom: 8px; padding: 10px 14px; border: 1px solid #ffffff38; border-radius: 14px; background: #ffffff0b; -webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%); color: #fff1f3; font: inherit; font-size: .875rem; }

.menu-search::placeholder { color: #dbc8dc; opacity: 1; }
.menu-search:focus { border-color: #9af7e380; outline: none; box-shadow: 0 0 0 2px #9af7e318; }

@media (pointer: coarse) {
  .menu-search { font-size: 16px; }
  .choice-option { min-height: 44px; touch-action: manipulation; }
  .ram-field input[type="range"] { height: 44px; touch-action: manipulation; }
  .ram-field input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -8px; }
  .ram-field input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; }
}

@media (pointer: coarse) {
  .field select { min-height: 48px; font-size: 16px; -webkit-appearance: menulist; appearance: auto; background-image: none; padding-right: 18px; }
}
