/* Shared service completion: character and guild consumers. */
body#ipboard_body .ez-service-result {
    --ez-service-result-success-border: #567448;
    --ez-service-result-success-surface: #1e2b1c;
    --ez-service-result-success-icon: #afd094;
    --ez-service-result-success-halo: #8bb76c;
    --ez-service-result-success-glow: #6fa152;
}

body#ipboard_body .ez-service-result__stage {
    position: relative;
    isolation: isolate;
    display: grid;
    box-sizing: border-box;
    min-height: 18rem;
    min-width: 0;
    align-content: center;
    justify-items: center;
    overflow: hidden;
    gap: .75rem;
    padding: 2.5rem 0 2rem;
    color: var(--ez-type-color-card-copy);
    text-align: center;
}

body#ipboard_body .ez-service-result__confetti {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
}

body#ipboard_body .ez-service-result__confetti > i {
    position: absolute;
    top: -.5rem;
    left: -.25rem;
    width: .5rem;
    height: 1rem;
    border-radius: .08rem;
    background: currentColor;
    box-shadow: 0 0 .75rem color-mix(in srgb, currentColor 44%, transparent);
    color: var(--ez-currency-token);
    opacity: 0;
    animation: ez-service-result-confetti 4s cubic-bezier(.18, .72, .28, 1) infinite;
}

body#ipboard_body .ez-service-result__confetti > i:nth-child(2n) { color: var(--ez-currency-bonus); }
body#ipboard_body .ez-service-result__confetti > i:nth-child(3n) { color: var(--ez-service-result-success-icon); }
body#ipboard_body .ez-service-result__confetti > i:nth-child(5n) { color: var(--ez-type-quality-4); }
body#ipboard_body .ez-service-result__confetti > i:nth-child(4n) { width: .7rem; height: .7rem; border-radius: 50%; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(7n) { width: .38rem; height: 1.15rem; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(1) { --ez-confetti-x: -29rem; --ez-confetti-y: -4rem; --ez-confetti-r: -230deg; animation-delay: .02s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(2) { --ez-confetti-x: -24rem; --ez-confetti-y: -9rem; --ez-confetti-r: 210deg; animation-delay: .08s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(3) { --ez-confetti-x: -19rem; --ez-confetti-y: -12rem; --ez-confetti-r: -175deg; animation-delay: .04s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(4) { --ez-confetti-x: -14rem; --ez-confetti-y: -7rem; --ez-confetti-r: 255deg; animation-delay: .1s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(5) { --ez-confetti-x: -9rem; --ez-confetti-y: -13rem; --ez-confetti-r: -215deg; animation-delay: .06s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(6) { --ez-confetti-x: -4rem; --ez-confetti-y: -9rem; --ez-confetti-r: 190deg; animation-delay: 0s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(7) { --ez-confetti-x: 2rem; --ez-confetti-y: -14rem; --ez-confetti-r: -240deg; animation-delay: .09s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(8) { --ez-confetti-x: 7rem; --ez-confetti-y: -10rem; --ez-confetti-r: 225deg; animation-delay: .03s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(9) { --ez-confetti-x: 12rem; --ez-confetti-y: -12rem; --ez-confetti-r: -200deg; animation-delay: .07s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(10) { --ez-confetti-x: 18rem; --ez-confetti-y: -8rem; --ez-confetti-r: 265deg; animation-delay: .01s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(11) { --ez-confetti-x: 24rem; --ez-confetti-y: -10rem; --ez-confetti-r: -225deg; animation-delay: .05s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(12) { --ez-confetti-x: 29rem; --ez-confetti-y: -4rem; --ez-confetti-r: 205deg; animation-delay: .11s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(13) { --ez-confetti-x: -26rem; --ez-confetti-y: 1rem; --ez-confetti-r: 280deg; animation-delay: .04s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(14) { --ez-confetti-x: -16rem; --ez-confetti-y: 5rem; --ez-confetti-r: -250deg; animation-delay: .1s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(15) { --ez-confetti-x: -6rem; --ez-confetti-y: 7rem; --ez-confetti-r: 235deg; animation-delay: .02s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(16) { --ez-confetti-x: 5rem; --ez-confetti-y: 6rem; --ez-confetti-r: -270deg; animation-delay: .08s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(17) { --ez-confetti-x: 15rem; --ez-confetti-y: 4rem; --ez-confetti-r: 245deg; animation-delay: .03s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(18) { --ez-confetti-x: 26rem; --ez-confetti-y: 1rem; --ez-confetti-r: -285deg; animation-delay: .09s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(19) { --ez-confetti-x: -11rem; --ez-confetti-y: -3rem; --ez-confetti-r: 260deg; animation-delay: .01s; }
body#ipboard_body .ez-service-result__confetti > i:nth-child(20) { --ez-confetti-x: 11rem; --ez-confetti-y: -2rem; --ez-confetti-r: -260deg; animation-delay: .06s; }

body#ipboard_body .ez-service-result__visual {
    position: relative;
    isolation: isolate;
    display: grid;
    width: fit-content;
    height: fit-content;
    margin: 1.375rem 0 1.625rem;
    place-items: center;
}

body#ipboard_body .ez-service-result__mark {
    position: relative;
    isolation: isolate;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0;
    display: grid;
    place-items: center;
    border: .0625rem solid var(--ez-service-result-success-border);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--ez-service-result-success-icon) 25%, transparent), transparent 54%), var(--ez-service-result-success-surface);
    box-shadow: inset 0 0 0 .25rem color-mix(in srgb, var(--ez-service-result-success-surface) 70%, #000), inset 0 0 0 .3125rem color-mix(in srgb, var(--ez-service-result-success-border) 32%, transparent), 0 0 0 .0625rem color-mix(in srgb, var(--ez-frame-surface) 62%, #000), 0 .5rem 1.5rem rgba(0, 0, 0, .48), 0 0 1.875rem color-mix(in srgb, var(--ez-service-result-success-glow) 13%, transparent);
    color: var(--ez-service-result-success-icon);
    font-size: var(--ez-type-size-h2);
    line-height: 1;
    text-shadow: 0 .125rem .125rem #000;
    animation: ez-service-result-mark 620ms cubic-bezier(.16, 1.24, .3, 1) both, ez-service-result-celebrate 3.2s 720ms ease-in-out infinite;
}

body#ipboard_body .ez-service-result__mark::before,
body#ipboard_body .ez-service-result__mark::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

body#ipboard_body .ez-service-result__mark::before {
    inset: -.75rem;
    border: .125rem solid color-mix(in srgb, var(--ez-service-result-success-halo) 38%, transparent);
    box-shadow: 0 0 1.125rem color-mix(in srgb, var(--ez-service-result-success-glow) 20%, transparent);
    animation: ez-service-result-ring 2.8s 520ms ease-out infinite;
}

body#ipboard_body .ez-service-result__mark::after {
    inset: -1.375rem;
    border: .0625rem solid color-mix(in srgb, var(--ez-service-result-success-halo) 30%, transparent);
    box-shadow: 0 0 1.125rem color-mix(in srgb, var(--ez-service-result-success-glow) 14%, transparent);
    animation: ez-service-result-ring 2.8s 1.05s ease-out infinite;
}

body#ipboard_body .ez-service-result__message {
    margin: 0;
    color: var(--ez-type-color-component-heading);
    font: var(--ez-type-weight-semibold) var(--ez-type-size-h1)/1.15 var(--ez-font-ui);
    text-wrap: balance;
}

body#ipboard_body .ez-service-result__lead {
    max-width: min(72rem, calc(100% - 2rem));
    margin: 0;
    color: var(--ez-type-color-content);
    font: var(--ez-type-weight-regular) var(--ez-type-size-body)/1.45 var(--ez-font-ui);
    text-wrap: balance;
}

body#ipboard_body .ez-service-result--modal .ez-service-result__stage {
    min-height: 15rem;
    padding: 2rem 1rem 1.5rem;
}

body#ipboard_body .ez-service-result--modal .ez-service-result__visual {
    margin: 1rem 0 1.25rem;
}

body#ipboard_body .ez-service-result__summary {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 18px 0 0;
    background: var(--ez-row-divider-soft) top / 100% 1px no-repeat;
}

body#ipboard_body .ez-service-result__icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

body#ipboard_body .ez-service-result__icons :is(.character-race, .character-class) {
    box-sizing: border-box;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    border: 1px solid var(--ez-component-border-soft);
    background: var(--ez-frame-surface);
    object-fit: cover;
}

body#ipboard_body .ez-service-result__copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

body#ipboard_body .ez-service-result__copy > strong {
    color: var(--ez-type-color-component-heading);
    font: var(--ez-type-weight-semibold) var(--ez-type-size-h4)/1.2 var(--ez-font-ui);
    overflow-wrap: anywhere;
}

body#ipboard_body .ez-service-result__copy > small {
    color: var(--ez-type-color-meta);
    font: var(--ez-type-weight-regular) var(--ez-type-size-small)/1.3 var(--ez-font-ui);
}

@keyframes ez-service-result-mark {
    0% { opacity: 0; transform: scale(.55) rotate(-12deg); }
    64% { opacity: 1; transform: scale(1.09) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes ez-service-result-celebrate {
    0%, 76%, 100% { transform: scale(1); }
    82% { transform: scale(1.08) rotate(-2deg); }
    89% { transform: scale(.98) rotate(1deg); }
    94% { transform: scale(1.035); }
}

@keyframes ez-service-result-ring {
    0%, 64%, 100% { opacity: .45; transform: scale(1); }
    78% { opacity: .08; transform: scale(1.16); }
}

@keyframes ez-service-result-confetti {
    0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.4) rotate(0); }
    5% { opacity: .82; }
    14% { opacity: 1; }
    46% { opacity: .88; }
    60% { opacity: .38; }
    70%, 100% { opacity: 0; transform: translate3d(var(--ez-confetti-x), var(--ez-confetti-y), 0) scale(1) rotate(var(--ez-confetti-r)); }
}

@media (max-width: 679px) {
    body#ipboard_body .ez-service-result--modal .ez-service-result__stage { min-height: 13rem; padding-inline: 0; }
    body#ipboard_body .ez-service-result__summary { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    body#ipboard_body .ez-service-result__mark,
    body#ipboard_body .ez-service-result__mark::before,
    body#ipboard_body .ez-service-result__mark::after,
    body#ipboard_body .ez-service-result__confetti > i { animation: none; }
    body#ipboard_body .ez-service-result__confetti { display: none; }
}

body#ipboard_body .ez-service-result__subject-icon { display: grid; width: 48px; height: 48px; border: 1px solid var(--ez-component-border-soft); color: var(--ez-service-result-success-icon); background: var(--ez-frame-surface); font-size: var(--ez-type-size-h3); place-items: center; }
body#ipboard_body .ez-service-result__mark > .fas,
body#ipboard_body .ez-service-result__subject-icon > .fas,
body#ipboard_body .ez-isengard-account-result__account-icon > .fas {
    font-family: "Font Awesome 7 Pro", "Font Awesome 5 Pro", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900;
}
body#ipboard_body .ez-service-result__character { --ez-link-color: var(--ez-type-color-component-heading); --ez-link-hover-color: var(--ez-type-color-link-hover); --ez-link-decoration: none; --ez-link-hover-decoration: none; display: grid; width: fit-content; max-width: 100%; min-width: 0; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-inline: auto; color: var(--ez-link-ink, var(--ez-link-color)); text-align: left; }
body#ipboard_body a.ez-service-result__character:is(:hover, :focus-visible) .ez-service-result__copy > strong { color: var(--ez-link-hover-color); }
@media (max-width: 420px) { body#ipboard_body .ez-service-result__character { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }
/* End shared service completion. */

body#ipboard_body .ez-character-dialog .ez-character-service-notice__icon {
    box-sizing: border-box;
    width: var(--ez-notice-icon-column);
    height: var(--ez-notice-icon-column);
    align-self: center;
    border: 1px solid color-mix(in srgb, var(--ez-notice-accent) 64%, #120d0b);
    background: color-mix(in srgb, var(--ez-notice-accent) 10%, #17120f);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .72);
    overflow: hidden;
}

body#ipboard_body .ez-character-dialog .ez-character-service-notice__icon > img {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    margin: 0;
    border: 0;
    object-fit: cover;
}
