@font-face {
  font-family:Interface;
  src:local("Inter"),local("Arial");
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px;
}

body {
  margin:0;
  background:#f4f0e8;
  color:#272921;
  font-family:Interface,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

button {
  font:inherit;
  color:inherit;
  cursor:pointer;
}

button:disabled {
  cursor:default;
}

a {
  color:inherit;
  text-decoration:none;
}

button:focus-visible,a:focus-visible {
  outline:3px solid #b9432b;
  outline-offset:5px;
}

button {
  border:0;
}

h1,h2,p {
  margin:0;
}

button,a {
  touch-action:manipulation;
}

.site-header {
  height:100px;
  max-width:1440px;
  margin:auto;
  padding:0 5.55%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #d8d5cb;
}

.brand {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:27px;
  font-weight:700;
  letter-spacing:-1.5px;
}

.brand-icon {
  width:36px;
  height:36px;
  border-radius:50%;
  background:#b9432b;
  color:#f4f0e8;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font:italic 29px/1 Georgia;
  letter-spacing:-8px;
  padding-right:7px;
}

.brand-icon span {
  font-size:19px;
  margin-top:13px;
}

.brand-dot {
  color:#b9432b;
}

nav {
  display:flex;
  gap:31px;
  font-size:13px;
}

nav a {
  padding:10px 0;
}

nav a:first-child {
  border-bottom:1px solid #272921;
}

nav a:hover {
  color:#b9432b;
}

#nav-count {
  display:inline-block;
  min-width:18px;
  padding:2px 5px;
  border-radius:12px;
  background:#e7e1d5;
  font-size:10px;
  text-align:center;
  margin-left:5px;
}

.header-tag {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:11px;
}

.header-tag i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#b9432b;
}

main {
  max-width:1440px;
  margin:auto;
}

.choice-section,.rating-section {
  padding:44px 10.4% 0;
}

.intro {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:38px;
}

.eyebrow {
  font-size:9px;
  letter-spacing:1.5px;
  font-weight:700;
  line-height:1.6;
}

.tiny-star {
  font-size:15px;
  margin-right:7px;
  color:#b9432b;
}

h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(48px,5.05vw,72px);
  font-weight:400;
  line-height:1.03;
  letter-spacing:-2.8px;
  margin-top:16px;
}

h1 em {
  color:#b9432b;
  font-weight:400;
}

.intro-aside {
  padding-bottom:3px;
  max-width:320px;
}

.intro-aside>p {
  font-size:13px;
  line-height:1.8;
}

.local-label {
  font-size:10px;
  color:#797a70;
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:19px;
}

.local-label>span {
  font-size:11px;
  color:#b9432b;
}

.match-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 0;
  border-top:1px solid #cbc9bf;
  font-size:8px;
  letter-spacing:1.25px;
  font-weight:700;
}

.match-heading p:first-child span {
  color:#b9432b;
  margin-left:6px;
}

.match-heading p:nth-child(2) {
  color:#7b7b71;
}

.match-heading>span {
  color:#7b7b71;
  letter-spacing:.4px;
  font-size:9px;
  font-weight:400;
}

.duel {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  position:relative;
}

.portrait-card {
  position:relative;
  width:100%;
  aspect-ratio:.88;
  border-radius:3px;
  overflow:hidden;
  padding:0;
  background:#d9d5cb;
  text-align:left;
  isolation:isolate;
}

.portrait-card img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 28%;
  transition:transform .6s cubic-bezier(.2,.65,.3,1),filter .3s;
}

.portrait-card:hover img {
  transform:scale(1.035);
}

.portrait-card:focus-visible {
  outline-offset:5px;
}

.portrait-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.12) 0%,transparent 45%,rgba(13,16,14,.12) 60%,rgba(13,16,14,.86) 100%);
  pointer-events:none;
}

.key-label {
  position:absolute;
  top:18px;
  left:20px;
  color:white;
  font-size:10px;
  letter-spacing:1.5px;
  border:1px solid #ffffff66;
  padding:6px 7px;
  border-radius:2px;
  line-height:1;
}

.portrait-info {
  position:absolute;
  bottom:29px;
  left:29px;
  right:27px;
  color:#fff;
}

.portrait-context {
  display:block;
  font-size:8px;
  line-height:1.6;
  letter-spacing:1.3px;
  text-transform:uppercase;
  color:#e2e1d9;
  margin-bottom:8px;
}

.portrait-name {
  display:block;
  font:400 clamp(25px,2.7vw,39px)/1.08 Georgia,"Times New Roman",serif;
  letter-spacing:-.9px;
  max-width:86%;
}

.portrait-action {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid #ffffff4a;
  margin-top:20px;
  padding-top:12px;
  font-size:10px;
  letter-spacing:.6px;
}

.portrait-action>span {
  font-size:21px;
  line-height:14px;
}

.versus {
  position:absolute;
  left:50%;
  top:45%;
  transform:translate(-50%,-50%);
  z-index:3;
  width:48px;
  height:48px;
  background:#f4f0e8;
  border-radius:50%;
  display:grid;
  place-items:center;
  font:italic 14px Georgia;
}

.winner-mark {
  position:absolute;
  left:20px;
  top:58px;
  color:#fff;
  background:#b9432b;
  padding:8px 10px;
  letter-spacing:1px;
  font-size:10px;
  opacity:0;
  transform:translateY(-5px);
  transition:.2s;
}

.portrait-card.chosen {
  box-shadow:inset 0 0 0 5px #b9432b;
}

.portrait-card.chosen .winner-mark {
  opacity:1;
  transform:none;
}

.portrait-card.chosen img {
  transform:scale(1.035);
}

.duel.has-choice .portrait-card:not(.chosen) img {
  filter:grayscale(.7) brightness(.7);
}

.match-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:21px;
}

.text-button {
  background:none;
  font-size:11px;
  padding:6px 0;
}

.text-button span {
  margin-right:4px;
}

.text-button:hover {
  color:#b9432b;
}

.text-button:disabled {
  color:#a5a69b;
}

.skip-button {
  background:#e5e1d6;
  font-size:11px;
  padding:12px 18px;
  border-radius:2px;
  min-height:40px;
}

.skip-button:hover {
  background:#d8d3c6;
}

.skip-button span {
  margin-left:20px;
}

.keyboard-hint {
  font-size:9px;
  color:#898a7e;
  display:flex;
  align-items:center;
  gap:5px;
}

kbd {
  font:10px Arial;
  border:1px solid #cccbbf;
  border-radius:2px;
  padding:3px 5px;
  background:#f8f5ee;
}

.live-status {
  font-size:10px;
  text-align:center;
  color:#85867a;
  padding:14px 0 0;
  min-height:35px;
}

.storage-warning {
  font-size:12px;
  color:#a13b25;
  background:#f5e3d5;
  padding:12px;
  margin-top:10px;
}

.rating-section {
  padding-top:76px;
  padding-bottom:70px;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:25px;
}

h2 {
  font:400 clamp(29px,3vw,42px)/1.12 Georgia,"Times New Roman",serif;
  letter-spacing:-1.1px;
  margin-top:12px;
}

.rating-counter {
  display:flex;
  align-items:center;
  gap:10px;
}

.rating-counter strong {
  font:42px/1 Georgia;
  font-weight:400;
  color:#b9432b;
}

.rating-counter>span {
  font-size:9px;
  line-height:1.6;
  color:#78796d;
}

.table-heading {
  display:grid;
  grid-template-columns:1fr 110px 95px;
  border-top:1px solid #bcbeb0;
  border-bottom:1px solid #d4d4c8;
  padding:13px 0;
  color:#7c7e70;
  letter-spacing:1.2px;
  font-size:8px;
  align-items:center;
}

.table-heading>span:not(:first-child) {
  text-align:right;
}

.info-button {
  background:none;
  border:1px solid #a9ac9c;
  color:#7c7e70;
  border-radius:50%;
  width:13px;
  height:13px;
  padding:0;
  font-size:9px;
  line-height:11px;
  margin-left:4px;
}

#ranking {
  list-style:none;
  padding:0;
  margin:0;
}

.rank-row {
  display:grid;
  grid-template-columns:1fr 110px 95px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid #dcdcd0;
  gap:0;
}

.rank-person {
  display:flex;
  align-items:center;
  gap:15px;
  min-width:0;
}

.rank-position {
  font-size:10px;
  color:#888b7d;
  width:18px;
  font-variant-numeric:tabular-nums;
}

.rank-row:first-child .rank-position.ranked {
  color:#b9432b;
  font-weight:700;
}

.rank-photo {
  width:39px;
  height:44px;
  object-fit:cover;
  object-position:center 25%;
  border-radius:2px;
  filter:saturate(.75);
}

.rank-name {
  font-size:12px;
}

.rank-english {
  display:block;
  font-size:9px;
  color:#8b8c7f;
  margin-top:4px;
}

.rank-wins,.rank-score {
  text-align:right;
  font-variant-numeric:tabular-nums;
}

.rank-wins {
  font-size:11px;
  color:#75796b;
}

.rank-wins small {
  display:block;
  font-size:8px;
  color:#96998b;
  margin-top:4px;
}

.rank-score {
  font:22px Georgia;
}

.rank-row.unplayed .rank-score {
  color:#96998b;
}

.rating-footnote {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-top:16px;
}

.rating-footnote p {
  font-size:9px;
  line-height:1.7;
  color:#7f8375;
  max-width:65%;
}

.rating-footnote button {
  white-space:nowrap;
}

.about-section {
  margin:0 5.55%;
  background:#2e362d;
  color:#f4f0e8;
  padding:49px 5.5%;
  display:grid;
  grid-template-columns:65px 1fr auto;
  gap:28px;
  position:relative;
}

.about-mark {
  color:#dbb886;
  font:72px/1 Georgia;
}

.about-section .eyebrow {
  color:#d7ba93;
}

.about-section h2 {
  font-size:35px;
  margin:12px 0 20px;
  line-height:1.08;
}

.about-section>div:nth-child(2)>p:not(.eyebrow) {
  max-width:500px;
  font-size:12px;
  line-height:1.8;
  color:#d6d9cc;
}

.about-section .about-small {
  margin-top:17px;
  font-size:9px!important;
  color:#a9b0a2!important;
}

.about-link {
  align-self:end;
  white-space:nowrap;
  font-size:11px;
  border-bottom:1px solid #d7ba9380;
  padding-bottom:10px;
  margin-bottom:3px;
}

.about-link span {
  margin-left:22px;
  font-size:19px;
  color:#d7ba93;
}

.site-footer {
  max-width:1440px;
  margin:auto;
  padding:34px 5.55% 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.footer-brand {
  font-size:20px;
  letter-spacing:-1px;
  font-weight:700;
}

.site-footer p {
  font-size:9px;
  color:#898b7c;
}

.site-footer button {
  font-size:9px;
  color:#797d6f;
}

dialog {
  border:0;
  padding:38px;
  max-width:500px;
  width:calc(100% - 32px);
  color:#272921;
  background:#f4f0e8;
  box-shadow:0 20px 100px #0004;
  border-radius:4px;
}

dialog::backdrop {
  background:#1b251dcc;
  backdrop-filter:blur(5px);
}

dialog h2 {
  margin-bottom:20px;
}

dialog p:not(.eyebrow) {
  font-size:13px;
  line-height:1.8;
  margin-bottom:16px;
}

.dialog-close {
  position:absolute;
  top:12px;
  right:15px;
  font:25px Arial;
  background:none;
  padding:4px;
}

.solid-button {
  background:#b9432b;
  color:white;
  padding:13px 19px;
  font-size:12px;
  border-radius:2px;
  margin-top:10px;
}

.solid-button:hover {
  background:#993522;
}

.dialog-actions {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}

.credits-dialog {
  max-width:650px;
}

#credits-list {
  margin:22px 0;
}

.credit-row {
  display:flex;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid #d9d6ca;
  font-size:11px;
  line-height:1.7;
}

.credit-row img {
  width:42px;
  height:52px;
  object-fit:cover;
  flex-shrink:0;
}

.credit-row strong {
  display:block;
}

.credit-row a {
  color:#a3422c;
  text-decoration:underline;
  text-underline-offset:3px;
}

.noscript {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#b9432b;
  color:white;
  padding:20px;
  text-align:center;
}

@media(min-width:1441px) {
  .portrait-card {
    aspect-ratio:.94;
  }
}

@media(max-width:1000px) {
  .site-header {
    height:85px;
  }
  .header-tag {
    display:none;
  }
  .choice-section,.rating-section {
    padding-left:7%;
    padding-right:7%;
  }
  .intro-aside {
    max-width:270px;
  }
  .intro-aside>p {
    font-size:12px;
  }
  .local-label {
    font-size:9px;
  }
  .portrait-info {
    left:23px;
    right:23px;
    bottom:23px;
  }
  .about-section {
    grid-template-columns:45px 1fr;
    gap:23px;
  }
  .about-mark {
    font-size:57px;
  }
  .about-link {
    grid-column:2;
    justify-self:start;
    margin-top:2px;
  }
  .about-section h2 {
    font-size:32px;
  }
}

@media(max-width:600px) {
  html {
    scroll-padding-top:18px;
  }
  .site-header {
    height:74px;
    padding:0 6%;
    gap:20px;
  }
  .brand {
    font-size:23px;
    gap:8px;
  }
  .brand-icon {
    width:30px;
    height:30px;
    font-size:25px;
  }
  .brand-icon span {
    font-size:16px;
  }
  nav {
    gap:17px;
    font-size:10px;
  }
  nav a:last-child {
    display:none;
  }
  #nav-count {
    font-size:8px;
    min-width:15px;
    margin-left:2px;
  }
  .choice-section {
    padding:30px 5% 0;
  }
  .intro {
    display:block;
    margin-bottom:25px;
  }
  .eyebrow {
    font-size:8px;
    letter-spacing:1.2px;
  }
  .tiny-star {
    font-size:12px;
  }
  h1 {
    font-size:54px;
    letter-spacing:-2.6px;
    margin-top:14px;
  }
  .intro-aside {
    margin-top:21px;
    max-width:none;
  }
  .intro-aside>p {
    font-size:12px;
    line-height:1.7;
  }
  .intro-aside>p br {
    display:none;
  }
  .local-label {
    margin-top:10px;
    font-size:8px;
  }
  .match-heading {
    font-size:7px;
    letter-spacing:.8px;
    padding:11px 0;
  }
  .match-heading p:nth-child(2) {
    display:none;
  }
  .match-heading>span {
    font-size:8px;
  }
  .duel {
    gap:12px;
  }
  .portrait-card {
    aspect-ratio:.59;
    border-radius:2px;
  }
  .portrait-card img {
    object-position:50% 20%;
  }
  .versus {
    width:31px;
    height:31px;
    top:42%;
    font-size:10px;
  }
  .key-label {
    top:11px;
    left:10px;
    font-size:8px;
    padding:5px;
  }
  .portrait-info {
    left:12px;
    right:12px;
    bottom:16px;
  }
  .portrait-context {
    font-size:6px;
    letter-spacing:.6px;
    line-height:1.5;
    margin-bottom:7px;
    max-width:110px;
  }
  .portrait-name {
    font-size:23px;
    line-height:1.05;
    letter-spacing:-.65px;
    max-width:100%;
  }
  .portrait-action {
    margin-top:13px;
    padding-top:10px;
    font-size:8px;
    letter-spacing:.3px;
  }
  .portrait-action>span {
    font-size:17px;
  }
  .winner-mark {
    left:10px;
    top:43px;
    font-size:7px;
    padding:6px 7px;
    letter-spacing:.4px;
  }
  .match-controls {
    padding-top:15px;
    gap:10px;
  }
  .match-controls .text-button {
    font-size:9px;
  }
  .skip-button {
    font-size:9px;
    padding:10px 12px;
    min-height:37px;
  }
  .skip-button span {
    margin-left:13px;
  }
  .keyboard-hint {
    display:none;
  }
  .live-status {
    font-size:9px;
    line-height:1.6;
    padding-top:13px;
    min-height:42px;
  }
  .rating-section {
    padding:43px 5% 42px;
  }
  .section-heading {
    gap:20px;
    margin-bottom:22px;
  }
  .section-heading h2 {
    font-size:30px;
    line-height:1.1;
    max-width:210px;
    margin-top:9px;
  }
  .rating-counter {
    gap:6px;
    align-self:flex-end;
  }
  .rating-counter strong {
    font-size:32px;
  }
  .rating-counter>span {
    font-size:7px;
    white-space:nowrap;
  }
  .table-heading,.rank-row {
    grid-template-columns:1fr 55px 60px;
  }
  .table-heading {
    font-size:7px;
  }
  .rank-person {
    gap:9px;
  }
  .rank-position {
    width:13px;
    font-size:9px;
  }
  .rank-photo {
    width:33px;
    height:39px;
  }
  .rank-name {
    font-size:11px;
  }
  .rank-english {
    font-size:8px;
  }
  .rank-score {
    font-size:19px;
  }
  .rank-wins {
    font-size:10px;
  }
  .rank-wins small {
    font-size:7px;
  }
  .rating-footnote {
    gap:10px;
    align-items:flex-start;
  }
  .rating-footnote p {
    font-size:8px;
    max-width:62%;
  }
  .rating-footnote button {
    font-size:9px;
  }
  .about-section {
    margin:0 5%;
    padding:30px 23px;
    grid-template-columns:1fr;
    gap:18px;
  }
  .about-mark {
    font-size:43px;
  }
  .about-section h2 {
    font-size:31px;
    margin-bottom:17px;
  }
  .about-section>div:nth-child(2)>p:not(.eyebrow) {
    font-size:11px;
  }
  .about-section .about-small {
    font-size:8px!important;
  }
  .about-link {
    grid-column:1;
    margin-top:3px;
  }
  .site-footer {
    padding:25px 6% 26px;
    flex-wrap:wrap;
    gap:13px;
  }
  .footer-brand {
    font-size:19px;
  }
  .site-footer p {
    font-size:8px;
  }
  .site-footer button {
    font-size:9px;
    flex-basis:100%;
    text-align:left;
  }
  dialog {
    padding:32px 24px;
  }
  .dialog-actions {
    gap:12px;
  }
  .dialog-actions .text-button {
    font-size:10px;
  }
  .dialog-actions .solid-button {
    font-size:10px;
    padding:12px;
  }
  .credits-dialog h2 {
    font-size:30px;
  }
  .credit-row {
    font-size:10px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*:before,*:after {
    transition:none!important;
    animation:none!important;
  }
}

/* Increase the reading and touch sizes on handheld screens. */
@media (max-width: 600px) {
  nav {
    font-size: 12px;
  }
  .portrait-name {
    overflow-wrap: anywhere;
  }
  .portrait-context {
    font-size: 8px;
  }
  .portrait-action,
  .local-label,
  .rating-counter > span,
  .rating-footnote p,
  .about-section .about-small {
    font-size: 10px !important;
  }
  .match-controls button {
    min-height: 44px;
    font-size: 11px;
  }
  .match-controls .text-button {
    font-size: 11px;
  }
  .live-status {
    font-size: 11px;
  }
  .site-footer button,
  .credit-row {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 10px;
  }
  nav {
    gap: 12px;
    font-size: 11px;
  }
  .portrait-name {
    font-size: 21px;
  }
}
