/* results.css: retained cascade position */ /* Match results: the winner's artwork and the viewer's own rank are independent. */
body[data-screen='results']:after {
  background: linear-gradient(90deg, #07111c18 20%, #070b123d 45%, #090a13a1 100%);
}
.screen-results {
  --result-line: #ba985b80;
  --result-serif: 'Noto Serif KR', Batang, serif;
}
.screen-results #main {
  max-width: none;
  min-height: 100dvh;
  padding: 24px 3.2vw 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.screen-results .results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  margin: 0 0 24px;
  min-height: 68px;
  position: relative;
  z-index: 2;
}
.screen-results .results-head h1 {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  font: 700 clamp(32px, 3vw, 54px) / 1.2 var(--result-serif);
  color: #f3d8a3;
  white-space: nowrap;
  letter-spacing: 1px;
  text-shadow: 0 3px 9px #0009;
}
.screen-results .results-head h1:after {
  content: '';
  height: 1px;
  width: min(28vw, 450px);
  background: linear-gradient(90deg, #bd975b, #bd975b00);
}
.results-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  --settings-size: 48px;
}
.results-tools .lobby-tools {
  position: static;
}
.result-mode {
  padding: 9px 20px;
  border: 1px solid #b19560;
  border-radius: 24px;
  color: #ecd3a1;
  background: #0b111bd9;
  font-size: 12px;
  white-space: nowrap;
}
.screen-results .results-layout {
  display: grid;
  grid-template-columns: 43% 57%;
  position: relative;
  flex: 1;
  gap: 0;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
}
.screen-results .result-character {
  position: absolute;
  top: -18px;
  bottom: -28px;
  left: -3.2vw;
  width: 47vw;
  height: auto;
  overflow: hidden;
  margin: 0;
  text-align: left;
  pointer-events: none;
}
.screen-results .result-art {
  position: absolute;
  height: 153dvh;
  max-height: none;
  width: auto;
  max-width: none;
  left: calc(58% - 56.1dvh);
  top: -2dvh;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px #0006);
}
.result-character figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 5vw, 96px);
  bottom: clamp(24px, 4vh, 48px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 75%;
  padding: 10px 20px;
  border-left: 2px solid #c9a464;
  background: linear-gradient(90deg, #080d15ec, #080d1500);
  color: #f2e4ca;
  text-shadow: 0 2px 4px #000;
}
.result-character figcaption > span:first-child {
  font-size: 12px;
  color: #d9b97c;
}
.result-character figcaption strong {
  font: 700 clamp(18px, 1.6vw, 27px) / 1.4 var(--result-serif);
  overflow-wrap: anywhere;
}
.result-character .image-fallback {
  position: absolute;
  top: 40%;
  left: 20%;
  max-width: 60%;
  padding: 20px;
  color: #d9c8a8;
  text-align: center;
  border: 1px solid #b69a6540;
  border-radius: 6px;
  background: #0b1219d9;
}
.no-winner-symbol {
  position: absolute;
  inset: 10% 15% 15%;
  display: grid;
  place-items: center;
  color: #838b94;
  opacity: 0.25;
}
.no-winner-symbol .ui-icon {
  width: min(24vw, 300px);
  height: auto;
  stroke-width: 0.7;
  rotate: -12deg;
}
.result-panel {
  grid-column: 2;
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 2vw, 36px);
  margin-left: 10px;
  border: 1px solid #c2a061;
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 8% 0%, #39434b29, transparent 65%),
    linear-gradient(135deg, #12181ef7, #080d13f5);
  box-shadow:
    inset 0 0 0 5px #d6b46e0a,
    0 18px 40px #0006;
  min-width: 0;
}
.result-panel:before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 6px;
  border: 1px solid #c2a06135;
  clip-path: polygon(
    0 0,
    36px 0,
    36px 2px,
    2px 2px,
    2px 36px,
    0 36px,
    0 0,
    100% 0,
    100% 36px,
    calc(100% - 2px) 36px,
    calc(100% - 2px) 2px,
    calc(100% - 36px) 2px,
    calc(100% - 36px) 0,
    100% 0,
    100% 100%,
    0 100%
  );
  pointer-events: none;
}
[data-metal='gold'] {
  --rank-color: #e8c67f;
  --rank-gradient: linear-gradient(180deg, #fff0c7 5%, #edcc88 43%, #b78b46 80%, #ffe3a2);
  --rank-filter: none;
  --rank-wash: #b48b3e16;
  --rank-line: #bca066;
}
[data-metal='silver'] {
  --rank-color: #ccd5df;
  --rank-gradient: linear-gradient(180deg, #ffffff 5%, #d2dae3 43%, #8b9bad 80%, #e7edf4);
  --rank-filter: grayscale(1) brightness(1.18);
  --rank-wash: #b2c6de14;
  --rank-line: #a0afc1;
}
[data-metal='bronze'] {
  --rank-color: #d4a17e;
  --rank-gradient: linear-gradient(180deg, #ffe1c9 5%, #d4a07b 43%, #996343 80%, #e6b088);
  --rank-filter: sepia(0.48) saturate(0.8) hue-rotate(340deg) brightness(0.82);
  --rank-wash: #b77e4d16;
  --rank-line: #b78664;
}
[data-metal='neutral'] {
  --rank-color: #b9bec5;
  --rank-gradient: linear-gradient(#c8cdd3, #929aa4);
  --rank-filter: grayscale(1) brightness(0.78);
  --rank-wash: #b3bac60b;
  --rank-line: #626d79;
}
.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: clamp(150px, 21vh, 215px);
}
.result-rank-group {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 30px);
  min-width: 0;
}
.result-medallion {
  position: relative;
  width: clamp(76px, 7.5vw, 140px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--rank-color);
}
.result-medallion > .ui-icon {
  width: 65%;
  height: 65%;
  padding: 14%;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.result-medallion > img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--rank-filter);
}
.result-medallion.art-ready > img {
  display: block;
}
.result-medallion.art-ready > .ui-icon {
  display: none;
}
.result-medallion .image-fallback {
  display: none;
}
.result-rank {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px;
  font: 700 clamp(77px, 7.4vw, 140px) / 1.1 var(--result-serif);
  letter-spacing: -4px;
  color: var(--rank-color);
  text-shadow: 0 3px 12px #0005;
}
.result-rank-number,
.result-rank-unit,
.result-total > strong {
  background: var(--rank-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.result-rank-unit {
  font-size: 0.68em;
  letter-spacing: -1px;
}
.result-rank .result-tie {
  flex-basis: 100%;
  font:
    600 13px/1.2 'Malgun Gothic',
    sans-serif;
  letter-spacing: 2px;
  margin-bottom: 4px;
  color: var(--rank-color);
}
.result-viewer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  line-height: 1.4;
  min-width: 0;
}
.result-viewer strong {
  font-size: clamp(17px, 1.5vw, 27px);
  overflow-wrap: anywhere;
  color: #e9e7df;
}
.screen-results .self-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--rank-line);
  border-radius: 3px;
  color: var(--rank-color);
  font:
    500 11px/1.5 'Malgun Gothic',
    sans-serif;
  flex-shrink: 0;
  background: var(--rank-wash);
}
.result-total {
  border-left: 1px solid var(--result-line);
  padding-left: clamp(18px, 2.4vw, 42px);
  text-align: right;
  white-space: nowrap;
  color: var(--rank-color);
}
.result-total-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: #b9b7af;
  line-height: 1.2;
  margin-bottom: 7px;
}
.result-total > strong {
  font:
    600 clamp(72px, 7.7vw, 144px) / 1.1 Georgia,
    var(--result-serif);
  letter-spacing: -3px;
}
.result-points-unit {
  font: 500 clamp(18px, 1.5vw, 28px) / 1.2 var(--result-serif);
  margin-left: 8px;
}
.result-rank .result-status {
  font: 700 clamp(23px, 2.6vw, 44px) / 1.4 var(--result-serif);
  letter-spacing: -1px;
  word-break: keep-all;
}
.result-hero.unranked .result-medallion {
  width: clamp(64px, 6vw, 100px);
}
.result-note {
  font-size: 12px;
  color: #c5bcae;
  margin: 8px 0 0;
}
.result-reward {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  font-size: 12px;
  color: #c7bdab;
  margin: 6px 0 0;
}
.result-reward .ui-icon {
  width: 19px;
  height: 19px;
  color: #d8b36d;
}
.result-reward strong {
  font-size: 18px;
  color: #e9c77d;
}
.result-divider {
  position: relative;
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(90deg, #90754d, #d3b16d 50%, #90754d);
}
.result-divider > span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  translate: -50% -50%;
  rotate: 45deg;
  border: 1px solid #d1b06c;
  box-shadow: 0 0 0 4px #10151c;
  background: #29251d;
}
.result-table-head,
.screen-results .result-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 95px;
  align-items: center;
  gap: 18px;
}
.result-table-head {
  padding: 0 17px 12px;
  color: #a9aaa8;
  font-size: 11px;
}
.result-table-head > :last-child {
  text-align: right;
}
.screen-results .result-row {
  min-height: clamp(66px, 9vh, 88px);
  padding: 12px 17px;
  border: 0;
  border-bottom: 1px solid #8e794237;
  color: #e3e3de;
  position: relative;
}
.screen-results .result-row.mine {
  border: 1px solid var(--rank-line);
  background: linear-gradient(90deg, var(--rank-wash), transparent);
  box-shadow: inset 3px 0 0 var(--rank-line);
}
.screen-results .result-row .result-row-rank {
  font:
    600 28px/1.1 Georgia,
    serif;
  color: var(--rank-color);
}
.screen-results .result-row .result-row-rank small {
  font:
    500 10px/1.3 'Malgun Gothic',
    sans-serif;
  color: var(--rank-color);
  margin: 0 0 3px;
}
.screen-results .result-row .result-person {
  display: flex;
  gap: 17px;
  align-items: center;
  min-width: 0;
}
.screen-results .result-row .avatar {
  width: clamp(42px, 3.6vw, 62px);
  height: clamp(42px, 3.6vw, 62px);
  border-width: 1px;
}
.result-person > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  min-width: 0;
}
.screen-results .result-row strong {
  font-size: clamp(14px, 1.3vw, 23px);
  color: #e8e3d8;
  overflow-wrap: anywhere;
}
.screen-results .result-row.mine strong {
  color: var(--rank-color);
}
.screen-results .result-row .result-row-score {
  font:
    600 clamp(23px, 2.1vw, 35px) / 1.2 Georgia,
    serif;
  color: var(--rank-color);
  text-align: right;
}
.screen-results .result-yacht-bonus {
  flex-basis: 100%;
  font-size: 10px;
  color: #c7bcaa;
  margin: 0;
}
.result-details {
  margin-top: 18px;
  border: 1px solid #9a80534d;
  background: #18212b35;
  border-radius: 3px;
}
.result-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  padding: 13px 18px;
  min-height: 48px;
  color: #dfd5c1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.result-details > summary::-webkit-details-marker {
  display: none;
}
.result-details > summary .ui-icon {
  width: 19px;
  height: 19px;
  rotate: 90deg;
  color: #dbc186;
}
.result-details[open] > summary .ui-icon {
  rotate: -90deg;
}
.result-details > summary:hover {
  background: #c4a25f0d;
}
.result-breakdown {
  max-height: 240px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border-top: 1px solid #9a80534d;
}
.result-breakdown table {
  border-collapse: collapse;
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
.result-breakdown th,
.result-breakdown td {
  padding: 8px 18px;
  border: 0;
  border-bottom: 1px solid #8f806629;
  background: transparent;
  height: auto;
}
.result-breakdown th {
  text-align: left;
  font-weight: 500;
  color: #c6c9c7;
}
.result-breakdown td {
  text-align: right;
  font-weight: 600;
  color: #e8e6dc;
}
.result-breakdown tfoot {
  background: #17242be6;
}
.result-breakdown tfoot tr:last-child > * {
  color: var(--rank-color);
  font-weight: 700;
  font-size: 15px;
}
.screen-results .result-actions {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  margin: 22px 0 0;
}
.result-actions button {
  position: relative;
  min-height: 66px;
  padding: 10px 16px;
  border: 1px solid #d4b174;
  border-radius: 2px;
  color: #f4e6c9;
  font: 700 clamp(18px, 1.55vw, 28px) / 1.4 var(--result-serif);
  box-shadow:
    inset 0 0 0 4px #14251c,
    inset 0 0 0 5px #b3965a80,
    0 4px 10px #0006;
  letter-spacing: 0.5px;
}
.result-actions .result-return {
  background:
    linear-gradient(115deg, #063a32c9, #082722b3),
    var(--art-felt) center/cover;
}
.result-actions .result-leave {
  background: linear-gradient(130deg, #24272b, #11171c);
  box-shadow:
    inset 0 0 0 4px #10171b,
    inset 0 0 0 5px #a78c555e,
    0 4px 10px #0006;
  border-color: #a78c55;
}
.result-actions button:before,
.result-actions button:after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  rotate: 45deg;
  border: 1px solid #d4b174;
  background: #263027;
  top: -5px;
  left: 10px;
}
.result-actions button:after {
  top: auto;
  left: auto;
  bottom: -5px;
  right: 10px;
}
.result-pending {
  margin: auto;
  padding: 35px;
  border: 1px solid #a78950;
  background: #111922;
  text-align: center;
}
.result-pending p {
  margin-top: 12px;
  font-size: 13px;
}
/* Four-player ledgers still leave the details control visible above the actions. */
.screen-results .results-layout[data-player-count='4'] .result-hero {
  min-height: 145px;
}
.screen-results .results-layout[data-player-count='4'] .result-rank {
  font-size: clamp(76px, 6.5vw, 110px);
}
.screen-results .results-layout[data-player-count='4'] .result-total > strong {
  font-size: clamp(80px, 7vw, 118px);
}
.screen-results .results-layout[data-player-count='4'] .result-medallion {
  width: clamp(68px, 6.4vw, 110px);
}
.screen-results .results-layout[data-player-count='4'] .result-row {
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.screen-results .results-layout[data-player-count='4'] .result-row .avatar {
  width: 46px;
  height: 46px;
}
.screen-results .results-layout[data-player-count='4'] .result-divider {
  margin: 18px 0;
}
@media (min-width: 901px) {
  .result-panel {
    max-height: calc(100dvh - 144px);
    overflow: auto;
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }
  .screen-results .result-actions {
    position: sticky;
    bottom: -1px;
    z-index: 2;
    padding: 12px 0 2px;
    margin-top: 10px;
    background: linear-gradient(#0d1319d9, #0d1319 20%);
  }
}
@media (min-width: 901px) and (max-height: 820px) {
  .screen-results #main {
    padding-top: 15px;
    padding-bottom: 18px;
  }
  .screen-results .results-head {
    min-height: 48px;
    margin-bottom: 16px;
  }
  .screen-results .results-head h1 {
    font-size: 36px;
  }
  .results-tools {
    --settings-size: 42px;
  }
  .screen-results .result-character {
    bottom: -18px;
  }
  .result-panel {
    padding: 20px;
    max-height: calc(100dvh - 104px);
  }
  .result-hero {
    min-height: 116px;
    gap: 18px;
  }
  .result-medallion {
    width: 82px;
  }
  .result-rank {
    font-size: 86px;
  }
  .result-total > strong {
    font-size: 96px;
  }
  .result-total {
    padding-left: 18px;
  }
  .result-viewer {
    margin-top: 5px;
  }
  .result-viewer strong {
    font-size: 18px;
  }
  .result-divider {
    margin: 17px 0;
  }
  .result-table-head {
    padding-bottom: 8px;
  }
  .screen-results .result-row {
    min-height: 55px;
    padding: 7px 13px;
  }
  .screen-results .result-row .avatar {
    width: 41px;
    height: 41px;
  }
  .screen-results .result-row strong {
    font-size: 16px;
  }
  .screen-results .result-row .result-row-score {
    font-size: 27px;
  }
  .result-details {
    margin-top: 12px;
  }
  .result-details > summary {
    min-height: 44px;
    padding: 10px 15px;
  }
  .result-actions button {
    min-height: 53px;
    font-size: 21px;
  }
  .screen-results .result-actions {
    gap: 12px;
  }
  .result-reward {
    margin-top: 0;
  }
  .result-note {
    font-size: 11px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-hero {
    min-height: 102px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-rank {
    font-size: 72px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-total > strong {
    font-size: 82px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-medallion {
    width: 65px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-row {
    min-height: 48px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-row .avatar {
    width: 35px;
    height: 35px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-divider {
    margin: 13px 0;
  }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .screen-results .results-layout {
    grid-template-columns: 38% 62%;
  }
  .screen-results .result-character {
    width: 43vw;
  }
  .screen-results .result-art {
    height: 140dvh;
    left: calc(55% - 51.33dvh);
    top: 0;
  }
  .result-panel {
    padding: 20px;
  }
  .result-rank-group {
    gap: 10px;
  }
  .result-medallion {
    width: 68px;
  }
  .result-rank {
    font-size: 76px;
  }
  .result-total > strong {
    font-size: 82px;
  }
  .result-total {
    padding-left: 14px;
  }
  .result-hero {
    gap: 12px;
  }
  .result-table-head,
  .screen-results .result-row {
    grid-template-columns: 32px minmax(0, 1fr) 64px;
    gap: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .screen-results .result-row .result-person {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .screen-results #main {
    min-height: 100dvh;
    padding: 20px 20px 28px;
  }
  .screen-results .results-head {
    min-height: 48px;
    gap: 12px;
    margin: 0 0 14px;
  }
  .screen-results .results-head h1 {
    font-size: 30px;
  }
  .screen-results .results-head h1:after {
    display: none;
  }
  .results-tools {
    gap: 12px;
    --settings-size: 42px;
  }
  .result-mode {
    font-size: 10px;
    padding: 7px 12px;
  }
  .screen-results .results-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    flex: none;
  }
  .screen-results .result-character {
    position: relative;
    inset: auto;
    width: 100%;
    height: 250px;
    flex: none;
    border-bottom: 1px solid #bb985e4d;
  }
  .screen-results .result-art {
    height: 840px;
    top: -7px;
    left: calc(50% - 308px);
  }
  .result-character figcaption {
    left: 4%;
    bottom: 16px;
    max-width: 88%;
    padding: 8px 13px;
  }
  .result-character figcaption strong {
    font-size: 20px;
  }
  .result-panel {
    margin: 0;
    padding: 23px;
    max-height: none;
    overflow: visible;
  }
  .result-hero {
    min-height: 144px;
    gap: 18px;
  }
  .result-medallion {
    width: 86px;
  }
  .result-rank {
    font-size: 95px;
  }
  .result-total > strong {
    font-size: 104px;
  }
  .result-total {
    padding-left: 24px;
  }
  .result-viewer strong {
    font-size: 20px;
  }
  .result-divider {
    margin: 18px 0;
  }
  .screen-results .result-row {
    min-height: 70px;
  }
  .result-actions button {
    min-height: 60px;
    font-size: 23px;
  }
  .no-winner-symbol {
    inset: 10% 25% 15%;
  }
  .no-winner-symbol .ui-icon {
    width: 140px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-row {
    min-height: 65px;
  }
}
@media (max-width: 560px) {
  .screen-results #main {
    padding: 14px 12px 22px;
  }
  .screen-results .results-head {
    align-items: flex-start;
    min-height: 56px;
    margin-bottom: 6px;
  }
  .screen-results .results-head h1 {
    font-size: 27px;
    padding-top: 5px;
  }
  .results-tools {
    gap: 8px;
    --settings-size: 38px;
  }
  .result-mode {
    max-width: 128px;
    white-space: normal;
    word-break: keep-all;
    text-align: center;
    padding: 5px 9px;
    line-height: 1.4;
  }
  .screen-results .result-character {
    height: 206px;
  }
  .screen-results .result-art {
    height: 760px;
    left: calc(50% - 279px);
    top: -5px;
  }
  .result-character figcaption {
    bottom: 9px;
    padding: 7px 11px;
    gap: 7px;
    font-size: 11px;
  }
  .result-character figcaption strong {
    font-size: 18px;
  }
  .result-panel {
    padding: 17px 13px;
  }
  .result-hero {
    min-height: 112px;
    gap: 12px;
  }
  .result-rank-group {
    gap: 8px;
  }
  .result-medallion {
    width: 51px;
  }
  .result-rank {
    font-size: 65px;
    letter-spacing: -2px;
  }
  .result-total {
    padding-left: 12px;
  }
  .result-total > strong {
    font-size: 64px;
    letter-spacing: -2px;
  }
  .result-total-label {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .result-points-unit {
    font-size: 16px;
    margin-left: 4px;
  }
  .result-viewer {
    gap: 7px;
    margin-top: 7px;
  }
  .result-viewer strong {
    font-size: 15px;
  }
  .screen-results .self-tag {
    font-size: 9px;
    padding: 1px 5px;
  }
  .result-rank .result-tie {
    font-size: 10px;
    margin: 0;
  }
  .result-rank .result-status {
    font-size: 22px;
  }
  .result-hero.unranked .result-medallion {
    width: 42px;
  }
  .result-divider {
    margin: 16px 0;
  }
  .result-table-head,
  .screen-results .result-row {
    grid-template-columns: 26px minmax(0, 1fr) 52px;
    gap: 9px;
    padding: 10px 8px;
  }
  .result-table-head {
    font-size: 10px;
    padding-top: 0;
    padding-bottom: 9px;
  }
  .screen-results .result-row {
    min-height: 65px;
  }
  .screen-results .result-row .avatar {
    width: 37px;
    height: 37px;
  }
  .screen-results .result-row .result-person {
    gap: 9px;
  }
  .screen-results .result-row strong {
    font-size: 14px;
  }
  .screen-results .result-row .result-row-score {
    font-size: 25px;
  }
  .screen-results .result-row .result-row-rank {
    font-size: 24px;
  }
  .result-person > div {
    gap: 5px;
  }
  .screen-results .result-row .bot-badge {
    font-size: 8px;
    padding: 1px 4px;
  }
  .screen-results .result-yacht-bonus {
    font-size: 9px;
  }
  .result-reward {
    font-size: 11px;
  }
  .result-reward strong {
    font-size: 16px;
  }
  .result-note {
    font-size: 11px;
  }
  .result-details {
    margin-top: 14px;
  }
  .result-details > summary {
    font-size: 12px;
    padding: 11px 12px;
  }
  .screen-results .result-actions {
    gap: 10px;
    margin-top: 17px;
    grid-template-columns: 1.4fr 1fr;
  }
  .result-actions button {
    min-height: 55px;
    font-size: 19px;
    padding: 9px;
  }
  .result-breakdown {
    max-height: 260px;
  }
  .result-breakdown th,
  .result-breakdown td {
    padding: 9px 12px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-hero {
    min-height: 112px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-rank {
    font-size: 65px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-total > strong {
    font-size: 64px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-medallion {
    width: 51px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-row .avatar {
    width: 37px;
    height: 37px;
  }
}
@media (max-width: 360px) {
  .result-medallion {
    width: 42px;
  }
  .result-rank {
    font-size: 56px;
  }
  .result-total > strong {
    font-size: 55px;
  }
  .result-hero {
    gap: 9px;
  }
  .result-total {
    padding-left: 9px;
  }
  .result-viewer strong {
    font-size: 14px;
  }
  .screen-results .results-head h1 {
    font-size: 24px;
  }
  .result-mode {
    max-width: 110px;
  }
  .results-tools {
    gap: 6px;
    --settings-size: 34px;
  }
  .result-panel {
    padding: 14px 10px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-medallion {
    width: 42px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-rank {
    font-size: 56px;
  }
  .screen-results .results-layout[data-player-count='4'] .result-total > strong {
    font-size: 55px;
  }
}
