/* montserrat-latin-ext-wght-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../assets/fonts/montserrat-latin-ext-wght-normal.woff2)
    format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* montserrat-latin-wght-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../assets/fonts/montserrat-latin-wght-normal.woff2)
    format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --bg: #0e1119;
  --panel: #171c27;
  --line: #303747;
  --ink: #f2f3f6;
  --muted: #b0b7c7;
  --mint: #98f2c5;
  --gold: #ffd084;
  --violet: #ceb4ff;
  --accent: var(--mint);
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a8ddff;
  outline-offset: 4px;
}
header {
  border-bottom: 1px solid #282e3a;
  background: #10131b;
}
.bar,
main,
footer {
  width: min(1100px, calc(100% - 64px));
  margin: auto;
}
.bar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 24px;
  letter-spacing: -1.3px;
  font-weight: 800;
}
.brand img {
  margin-right: 10px;
}
.brand span,
.footer-logo {
  color: var(--mint);
}
nav {
  align-self: stretch;
  display: flex;
  gap: 24px;
}
.nav,
.sound,
.plain {
  border: none;
  background: none;
}
.nav {
  padding: 3px 0 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
}
.nav.active {
  color: var(--mint);
  border-bottom-color: var(--mint);
}
.sound {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 14px;
}
.line-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main {
  padding: 34px 0 30px;
  min-height: 72vh;
}
main:focus {
  outline: none;
}
.hero {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 240px;
  border: 1px solid #354449;
  border-radius: 17px;
  background: linear-gradient(110deg, #1b2a2d 0%, #17232b 48%, #211f33 100%);
  padding: 32px 40px;
}
.hero:after,
.mode:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(#95b9b30b 1px, transparent 1px),
    linear-gradient(90deg, #95b9b30b 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 59%;
}
.eyebrow,
.chip,
.tiny,
kbd,
.score-num,
.timer,
.tag {
  font-family: Consolas, 'Courier New', monospace;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
}
.eyebrow:before {
  content: '>_';
  font: bold 1.15em monospace;
  letter-spacing: -2px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 73px);
  margin: 10px 0;
  letter-spacing: -4px;
  line-height: 1.06;
}
.hero p,
.mode p,
.muted,
.intro p,
.hint p {
  color: var(--muted);
  line-height: 1.55;
}
.hero p {
  margin: 0;
  max-width: 475px;
}
.hero canvas {
  position: absolute;
  height: 105%;
  width: auto;
  right: 5%;
  top: -1%;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 12px #14151b);
}
.section-heading,
.row,
.mode-title,
.actions,
.status,
.players,
.chips {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading {
  justify-content: space-between;
  margin: 30px 0 16px;
}
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
  margin-bottom: 0;
}
.tiny,
.tag,
.chip {
  font-size: 12px;
}
.tiny {
  color: var(--muted);
}
.modes,
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.mode {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #54463a;
  border-radius: 15px;
  padding: 24px;
  background: linear-gradient(120deg, #252321, #201f21);
  --accent: var(--gold);
}
.mode.duel {
  border-color: #494155;
  background: linear-gradient(120deg, #25222e, #201f29);
  --accent: var(--violet);
}
.mode:after {
  background-size: 16px 16px;
  mask-image: linear-gradient(130deg, #0008, transparent 70%);
}
.mode-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.mode canvas {
  width: 66px;
  height: 62px;
  image-rendering: pixelated;
}
.tag {
  font-weight: 600;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 5px 9px;
  border-radius: 5px;
}
.mode h3 {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 12px 0 6px;
}
.mode p {
  margin: 0 0 18px;
}
.chips {
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10121860;
  border: 1px solid #ffffff15;
  border-radius: 5px;
  padding: 5px 8px;
  color: #d3d4db;
}
.primary,
.secondary,
.choice,
.tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 650;
  background: var(--panel);
}
.primary {
  border-color: transparent;
  background: var(--accent);
  color: #161b20;
}
.mode .primary {
  width: 100%;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary:hover,
.secondary:hover,
.tile:hover {
  filter: brightness(1.1);
}
.hint {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  background: #161b25;
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 22px;
}
.hint-icon {
  display: grid;
  place-items: center;
  color: var(--mint);
  background: #23352f;
  border-radius: 9px;
  width: 41px;
  height: 41px;
  flex: none;
}
.hint strong {
  display: block;
}
.hint p {
  font-size: 14px;
  margin: 3px 0 0;
}
.hint button {
  margin-left: auto;
  white-space: nowrap;
}
.plain {
  color: var(--mint);
  padding: 10px;
  font-weight: 600;
}
footer {
  border-top: 1px solid #282e3a;
  padding: 18px 0 28px;
  color: #9ca5b7;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.footer-logo {
  font-weight: bold;
  font-family: monospace;
}
.footer-right {
  margin-left: auto;
}
kbd {
  display: inline-block;
  background: #202632;
  border: 1px solid #454c5c;
  border-radius: 4px;
  padding: 1px 5px;
  color: #dce0e9;
}
.panel {
  max-width: 800px;
  margin: 15px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 42px);
  animation: appear 0.2s ease-out;
}
.panel h1,
dialog h2 {
  letter-spacing: -1.3px;
  font-size: clamp(27px, 4vw, 40px);
  margin: 14px 0;
}
.panel h2 {
  margin-bottom: 18px;
}
.panel p {
  line-height: 1.55;
}
.tile {
  text-align: left;
  display: grid;
  gap: 9px;
  min-height: 88px;
}
.tile strong {
  font-size: 20px;
}
.tile small {
  color: var(--muted);
}
label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-weight: 600;
}
select,
input {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10141c;
  padding: 12px;
}
.actions {
  margin-top: 20px;
  flex-wrap: wrap;
}
.players,
.status {
  justify-content: space-between;
  flex-wrap: wrap;
}
.player {
  border-left: 3px solid var(--accent);
  padding: 4px 12px;
}
.player small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.meter {
  height: 7px;
  border-radius: 10px;
  background: #303643;
  overflow: hidden;
  margin: 13px 0 22px;
}
.meter i {
  display: block;
  height: 100%;
  transition: width 0.15s linear;
}
.choices {
  display: grid;
  gap: 9px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  min-height: 48px;
  background: #202633;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.choice:hover:enabled {
  border-color: var(--accent);
}
.choice.ok {
  background: #1c4234;
  border-color: #77dcaa;
}
.choice.bad {
  background: #482934;
  border-color: #ef929e;
}
.feedback {
  min-height: 24px;
  margin-top: 14px;
  color: var(--muted);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #0d111a;
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 9px;
  line-height: 1.55;
  font-size: 15px;
}
.kw {
  color: #d9b7ff;
}
.lit {
  color: #9fe7bd;
}
.num {
  color: #ffc78f;
}
.timer {
  position: relative;
}
.bonus {
  position: absolute;
  right: 0;
  color: var(--mint);
  animation: rise 0.85s both;
  white-space: nowrap;
}
.urgent {
  color: #ff9eaf;
  animation: pulse 0.8s infinite alternate;
}
.score-num {
  color: var(--mint);
  font-size: 40px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.stat {
  padding: 12px;
  background: #111620;
  border-radius: 8px;
  color: var(--muted);
}
.stat b {
  display: block;
  color: var(--ink);
  font-size: 22px;
}
details {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.review {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.review p {
  margin: 6px 0;
}
.searching {
  display: inline-block;
  border: 3px solid #464250;
  border-top-color: var(--violet);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(30rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 14px;
  padding: clamp(16px, 4vw, 28px);
}
dialog::backdrop {
  background: #060810c9;
  backdrop-filter: blur(4px);
}
dialog li {
  margin: 10px 0;
  line-height: 1.55;
}
.confetti {
  position: fixed;
  pointer-events: none;
  top: -20px;
  width: 8px;
  height: 14px;
  animation: fall 2s ease-in forwards;
}
.notice {
  color: var(--gold);
}
@keyframes fall {
  to {
    transform: translateY(105vh) rotate(480deg);
  }
}
@keyframes appear {
  from {
    opacity: 0.4;
    transform: translateY(4px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rise {
  to {
    transform: translateY(-34px);
    opacity: 0;
  }
}
@keyframes pulse {
  to {
    transform: translateX(2px);
  }
}
@media (max-width: 720px) {
  .bar,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .bar {
    height: 64px;
    gap: 20px;
  }
  nav {
    gap: 14px;
  }
  .hero {
    padding: 24px;
    min-height: 202px;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
  .hero canvas {
    right: -4%;
    height: 76%;
    top: 15%;
  }
  .mode {
    padding: 18px;
  }
  .modes {
    gap: 12px;
  }
  .hint {
    padding: 15px;
  }
  .hero p,
  .mode p {
    font-size: 15px;
  }
  .sound span {
    display: none;
  }
}
@media (max-width: 540px) {
  .bar {
    gap: 13px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 29px;
    margin-right: 6px;
  }
  .nav {
    font-size: 13px;
  }
  nav {
    gap: 10px;
  }
  .sound {
    padding: 8px;
  }
  main {
    padding-top: 18px;
  }
  .hero {
    padding: 20px;
    min-height: 195px;
  }
  .hero-copy {
    width: 68%;
  }
  .hero canvas {
    height: 61%;
    right: -12%;
    top: 23%;
  }
  .eyebrow {
    font-size: 11px;
  }
  .hero h1 {
    font-size: 39px;
  }
  .modes,
  .tiles {
    grid-template-columns: 1fr;
  }
  .hint {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .hint > div:nth-child(2) {
    flex: 1;
  }
  .hint button {
    margin: 0;
  }
  .section-heading {
    margin-top: 21px;
  }
  .panel {
    margin: 0;
  }
  .status {
    gap: 8px;
  }
  .footer-right {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

.policy {
  line-height: 1.65;
}
.policy h2 {
  font-size: 1.3rem;
  margin-top: 1.7rem;
}
.policy #lost {
  float: right;
  width: min(45%, 220px);
  image-rendering: pixelated;
}
.return-link {
  display: inline-block;
  text-decoration: none;
  margin-top: 1rem;
}
.ranking {
  padding-left: 2rem;
}
.ranking li {
  padding: 0.45rem;
}
.ranking li b {
  float: right;
  margin-left: 1rem;
}
footer {
  flex-wrap: wrap;
}
footer a {
  margin-left: 10px;
}
.bar {
  gap: 24px;
}
#dialog[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
}
#dialog-body {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
  padding: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
#dialog-body > :is(p, h2, h3, ul, ol),
#dialog-body label {
  margin: 0;
}
#dialog-body #auth-form {
  display: grid;
  gap: 14px;
}
#auth-msg:empty {
  display: none;
}
#close-dialog {
  justify-self: end;
  min-height: 44px;
}
#google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #1f1f1f;
  min-height: 44px;
}
#google img {
  flex: none;
}
#auth-msg {
  color: var(--gold);
}
body:has(#dialog[open]) {
  overflow: hidden;
}
#dialog input {
  width: 100%;
  min-width: 0;
  font-size: 16px;
}
.hero, .panel {
  border-top: 2px solid var(--accent);
}
.hero {
  background: radial-gradient(ellipse at 85% 10%, #31314e 0%, transparent 52%),
    linear-gradient(115deg, #142828, #131925 75%);
}
pre {
  border-left: 3px solid var(--accent);
  tab-size: 2;
}
.mode {
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--accent) 55%, transparent);
}
@media (max-width: 600px) {
  #close-dialog { justify-self: stretch; }
  #dialog h2 { font-size: 1.55rem; }
  .bar nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  header .bar .nav { min-height: 48px; line-height: 1.25; }
}
@media (max-width: 740px) {
  header .bar {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 10px;
  }
  header nav {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 5px;
  }
  header .nav {
    padding: 12px 0;
    font-size: 13px;
  }
  header .sound {
    margin-left: auto;
  }
  footer .footer-right {
    flex-basis: 100%;
    margin-top: 5px;
  }
}

.language-logo {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  object-fit: contain;
  flex: none;
}
.tile strong {
  display: flex;
  align-items: center;
  gap: .55em;
}
.tile:hover, .tile:focus-visible {
  border-color: var(--accent);
  background-color: #202d33;
}
.language-select {
  position: relative;
  display: grid;
}
.language-select select {
  padding-inline-start: 2.8rem;
  width: 100%;
}
#selected-logo {
  position: absolute;
  inset-inline-start: .9rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  pointer-events: none;
}
.terminal-line {
  display: flex;
  align-items: baseline;
  gap: .6em;
  margin-top: 1rem;
  font: 600 .87rem/1.5 Consolas, monospace;
  color: var(--mint);
}
.terminal-line code {
  font: inherit;
  width: 12ch;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid currentColor;
}
.binary-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.binary-rain i {
  position: absolute;
  inset-inline-start: 48%;
  color: #98f2c5;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font: normal 12px/1 monospace;
  opacity: 0;
}
.binary-rain i:nth-child(2) { inset-inline-start: 64%; animation-delay: -5s; }
.binary-rain i:nth-child(3) { inset-inline-start: 93%; animation-delay: -9s; }
@media (prefers-reduced-motion: no-preference) {
  .terminal-line code { animation: type-command 1.5s steps(12, end) both; }
  .binary-rain i { animation-name: binary-drop; animation-duration: 14s; animation-iteration-count: infinite; }
}
@keyframes type-command { from { width: 0; } }
@keyframes binary-drop {
  0% { top: -7rem; opacity: 0; }
  7% { opacity: .25; }
  38%, 100% { top: 100%; opacity: 0; }
}

/* Cevap incelemesi sırasında saati ve seçenekleri görsel olarak sabitle. */
.panel:has(.round-review) .timer {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.panel:has(.round-review) .timer::after {
  content: 'Ⅱ';
  margin-inline-start: .5em;
}
.panel:has(.round-review) .urgent { animation: none; color: inherit; }
.round-review {
  --review-color: #9ef0c3;
  position: relative;
  overflow: hidden;
  padding: .95rem 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--review-color) 36%, transparent);
  border-radius: 10px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--review-color) 9%, #111620), #111620);
  color: var(--ink);
  line-height: 1.55;
}
.round-review.incorrect { --review-color: #ffabb9; }
.round-review::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--review-color);
  transform-origin: left;
}
.panel pre {
  position: relative;
  padding-top: 2.15rem;
  background: linear-gradient(#212936 0 1.45rem, #10151e 1.45rem);
}
.panel pre::before {
  content: '';
  position: absolute;
  inset: .55rem auto auto .85rem;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: #f69592;
  box-shadow: .68rem 0 #eac07d, 1.36rem 0 #84cfa6;
}
#leave-match { overflow: auto; }
#leave-match p { color: var(--muted); line-height: 1.55; }
body:has(#leave-match[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .round-review::after { animation: review-time 3s linear forwards; }
  .choice.ok { animation: answer-glow .55s ease-out; }
}
@keyframes review-time { to { transform: scaleX(0); } }
@keyframes answer-glow {
  from { box-shadow: 0 0 0 3px #80ebae77; }
  to { box-shadow: 0 0 0 8px transparent; }
}
@media (max-width: 460px) {
  #leave-match .actions { display: grid; }
}
.players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin-bottom: 1rem;
}
.players .player {
  --side: #94e7cb;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: .7rem .9rem;
  border: 1px solid color-mix(in srgb, var(--side) 28%, var(--line));
  border-inline-start: 3px solid var(--side);
  border-radius: 9px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--side) 9%, #131924), #131924);
  font-variant-numeric: tabular-nums;
}
.players .player + .player { --side: #c9afff; }
.players .player b { color: var(--side); }

/* Player panels */
#dialog[data-theme="records"] { --panel-glow: #f6c777; }
#dialog[data-theme="ranking"] { --panel-glow: #c6a7fa; }
#dialog[data-theme="account"] { --panel-glow: #91e6c8; }
#dialog[data-theme]:not([data-theme=""]) {
  --accent: var(--panel-glow);
  width: min(33rem, calc(100% - 1.5rem));
  border-color: color-mix(in srgb, var(--accent) 35%, #27303c);
  background: #141a24;
  box-shadow: 0 18px 65px #030610aa;
}
.dialog-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(72px, 18vw, 118px);
  align-items: center;
  gap: .6rem;
  min-height: 90px;
  padding: clamp(12px, 3vw, 20px);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, #202732);
  border-radius: 12px;
  background: radial-gradient(ellipse at right, color-mix(in srgb, var(--accent) 22%, #18202c), transparent 75%), #19202b;
}
#dialog .dialog-banner h2 { margin: 0; line-height: 1.12; }
.dialog-banner canvas { width: 100%; height: auto; image-rendering: pixelated; }
.score-card, .profile-card, .dialog-empty {
  display: grid;
  gap: .4rem;
  padding: 1rem;
  background: #101620;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.score-card strong { color: var(--accent); font: bold 1.5rem monospace; }
.profile-card small, .record-list small { color: var(--muted); }
.dialog-empty { line-height: 1.55; margin: 0; border-style: dashed; }
#dialog :is(.record-list,.ranking) { padding: 0; margin: 0; list-style: none; }
#dialog :is(.record-list,.ranking) li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  margin: 0;
  padding: .65rem .5rem;
  border-bottom: 1px solid var(--line);
}
#dialog .ranking li { grid-template-columns: 2rem minmax(0, 1fr) auto; }
.record-list small { display: block; }
#dialog :is(.record-list,.ranking) li b { margin: 0; font: 600 .88rem monospace; color: var(--accent); }
.rank-position {
  display: grid;
  place-items: center;
  height: 2rem;
  border-radius: 7px;
  background: #252c39;
  font: bold .92rem monospace;
}
.ranking li:first-child .rank-position { color: #141820; background: #efd090; }
.ranking li:nth-child(2) .rank-position { color: #141820; background: #cad5e3; }
.ranking li:nth-child(3) .rank-position { color: #141820; background: #dab19c; }
