/* Quiet classic victory. Scoped to the result dialog; shared controls keep their states. */
dialog#victory_info.portal-dialog.victory-classic {
  width: min(448px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #e1e7e2;
  border-radius: 24px;
  background: #fcfaf5;
  color: #33473f;
  box-shadow: 0 20px 70px #001c2840;
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
  text-align: left;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
dialog#victory_info.victory-classic::backdrop {
  background: #052d24b3;
}
.victory-classic *,
.victory-classic *::before,
.victory-classic *::after {
  box-sizing: border-box;
}
.victory-classic :is(p, h2, h3, dl, dt, dd) {
  margin: 0;
}
.victory-classic [hidden] {
  display: none !important;
}
.victory-classic > form {
  position: absolute;
  right: 10px;
  top: 10px;
  margin: 0;
  z-index: 1;
}
.victory-classic .dialog-close {
  --bubna-button-normal-bg: transparent;
  --bubna-button-normal-fg: #68756e;
  --bubna-button-normal-border: transparent;
  --bubna-button-hover-bg: #e9eee8;
  --bubna-button-hover-fg: #203a30;
  --bubna-button-hover-border: transparent;
  --bubna-button-active-bg: #dce6dc;
  --bubna-button-active-fg: #203a30;
  --bubna-button-active-border: transparent;
  position: static;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-width: 0;
  line-height: 20px;
  font-size: 16px;
}
.victory-main {
  padding: 28px 32px 24px;
  text-align: center;
}
.victory-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #195e49;
  font-size: 21px;
  line-height: 30px;
  margin-bottom: 13px;
}
.victory-emblem::before,
.victory-emblem::after {
  content: '';
  width: 38px;
  height: 1px;
  background: #e1e7e2;
}
.victory-classic #victory-title {
  font:
    400 40px/1.15 Georgia,
    'Times New Roman',
    serif;
  padding-right: 0;
  letter-spacing: -0.9px;
  color: #203a30;
  margin-bottom: 8px;
}
.victory-classic .victory-subtitle {
  font-size: 13px;
  color: #68756e;
}
.victory-total {
  padding: 18px 0;
}
.victory-total-value {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
}
.victory-total-value > span {
  font-size: clamp(38px, 10vw, 62px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #203a30;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.victory-total-value > img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 6px 0 0;
}
.victory-classic .victory-total p {
  margin-top: 7px;
  font-size: 13px;
  color: #68756e;
}
.victory-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 17px 0;
  border-block: 1px solid #e1e7e2;
}
.victory-breakdown > div + div {
  border-left: 1px solid #e1e7e2;
}
.victory-classic .victory-breakdown dt {
  font-size: 12px;
  font-weight: 400;
  color: #68756e;
}
.victory-classic .victory-breakdown dd {
  font-size: 21px;
  font-weight: 500;
  color: #203a30;
  margin: 2px 0 0;
}
.victory-classic .victory-moves {
  margin: 14px 0 20px;
  font-size: 13px;
  color: #68756e;
}
.victory-moves b {
  font-weight: 600;
  color: #33473f;
}
.victory-dot {
  margin: 0 10px;
}
.victory-classic .victory_buttons {
  margin: 0;
  padding: 0;
}
.victory-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 10px;
}
.victory-classic
  :is(.victory-actions button, .victory-actions a, .victory-auth-button, .victory-delivery button) {
  --bubna-button-normal-bg: #fff;
  --bubna-button-normal-fg: #203a30;
  --bubna-button-normal-border: #dce4dd;
  --bubna-button-hover-bg: #edf3ec;
  --bubna-button-hover-fg: #203a30;
  --bubna-button-hover-border: #a5b8ab;
  --bubna-button-active-bg: #dce8dd;
  --bubna-button-active-fg: #203a30;
  --bubna-button-active-border: #7f9c87;
  --bubna-button-focus: #195e49;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 11px !important;
  font:
    600 14px/1.4 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
  margin: 0;
}
.victory-classic .victory-actions button {
  --bubna-button-normal-bg: #195e49;
  --bubna-button-normal-fg: #fff;
  --bubna-button-normal-border: #195e49;
  --bubna-button-hover-bg: #124c3b;
  --bubna-button-hover-fg: #fff;
  --bubna-button-hover-border: #124c3b;
  --bubna-button-active-bg: #0e3b2e;
  --bubna-button-active-fg: #fff;
  --bubna-button-active-border: #0e3b2e;
  --bubna-button-focus: #f1e4bc;
}
.victory-account {
  padding: 20px 32px;
  background: #f2f5f1;
  border-top: 1px solid #e1e7e2;
}
.victory-classic .victory-account h3 {
  font:
    600 14px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
  color: #203a30;
}
.victory-classic [data-victory-account-caption] {
  margin: 3px 0 13px;
  font-size: 12px;
  color: #5e6c64;
}
.victory-classic .bubna-auth {
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
}
.victory-classic .bubna-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.victory-classic .bubna-auth p {
  font-size: 13px;
  margin: 9px 0;
  line-height: 1.5;
}
.victory-classic .bubna-auth p:empty {
  display: none;
}
.victory-classic button.victory-login {
  --bubna-button-normal-bg: #272b28;
  --bubna-button-normal-fg: #fff;
  --bubna-button-normal-border: #272b28;
  --bubna-button-hover-bg: #3a423c;
  --bubna-button-hover-fg: #fff;
  --bubna-button-hover-border: #3a423c;
  --bubna-button-active-bg: #151c17;
  --bubna-button-active-fg: #fff;
  --bubna-button-active-border: #151c17;
  --bubna-button-focus: #f1e4bc;
  min-height: 44px;
  font-size: 13px;
}
.victory-details {
  margin-top: 10px;
  font-size: 12px;
  color: #5e6c64;
}
.victory-details summary {
  padding: 10px 0;
  min-height: 40px;
  width: fit-content;
  cursor: pointer;
  text-underline-offset: 3px;
}
.victory-details summary:hover {
  text-decoration: underline;
}
.victory-details > div {
  padding: 4px 0 7px;
}
.victory-classic .victory-details p {
  font:
    400 12px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
  color: #5e6c64;
  margin: 7px 0 0;
}
.victory-classic .victory-delivery {
  font-size: 12px;
}
.victory-classic .victory-delivery p {
  margin-top: 8px;
}
.victory-classic .victory-delivery button {
  min-height: 44px;
  margin-top: 8px;
}
.victory-classic .bubna-auth-warning {
  color: #8b292f;
}
.victory-classic:not(.victory-auth-ready) .victory-account-intro {
  display: none;
}
.victory-auth-unavailable {
  font-size: 13px;
}
@media (max-width: 380px) {
  dialog#victory_info.portal-dialog.victory-classic {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .victory-main {
    padding: 28px 20px 22px;
  }
  .victory-classic #victory-title {
    font-size: 34px;
  }
  .victory-account {
    padding: 18px 20px;
  }
  .victory-classic .victory-actions :is(button, a) {
    font-size: 13px;
    padding-inline: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .victory-classic :is(button, a) {
    transition: none !important;
  }
}
