/* The share cards on /share: each is drawn at 1080x1350 and scaled down to fit the page. The size variables (--row,
   --picw, --pich, --name, --sub) are set on each card to suit how many rows it has. */

.sc-box {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 0 20px;
    border: 1px solid gold;
}

.sc-scaler {
    position: absolute;
    top: 0;
    left: 0;
    width: 1080px;
    height: 1350px;
    transform-origin: top left;
}

.sc-card,
.sc-card * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-shadow: none;
}

.sc-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 1080px;
    height: 1350px;
    padding: 56px 60px 40px;
    color: #fff;
    text-align: left;
    font-family: 'Noto Serif', Georgia, serif;
    font-weight: 400;
    line-height: normal;
    background: radial-gradient(circle at 85% -5%, #1c579a 0, #073970 45%, #031c3a 100%);
}

/* The glitterball sits behind everything, with just its top left quarter showing in the corner */
.sc-card::after {
    content: '';
    position: absolute;
    z-index: 0;
    right: -150px;
    bottom: -150px;
    width: 300px;
    height: 300px;
    background: url('/assets/images/glitterball_large.png') center / contain no-repeat;
}

.sc-card > * {
    position: relative;
    z-index: 1;
}

.sc-eyebrow {
    color: gold;
    font-size: 22px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.sc-card .sc-title {
    margin: 10px 0 8px;
    font-family: inherit;
    font-size: 58px;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
}

.sc-subtitle {
    color: #cfe0f5;
    font-size: 26px;
    line-height: 1.3;
}

.sc-foot {
    max-width: 790px;
    margin-top: 12px;
    color: #aac4e6;
}

.sc-foot b {
    display: block;
    margin-bottom: 4px;
    color: gold;
    font-size: 24px;
    font-weight: 600;
}

.sc-foot p {
    font-size: 15px;
    line-height: 1.38;
}

.sc-foot .sc-copy {
    margin-top: 5px;
    color: #7f9cc4;
    font-size: 13px;
}

.sc-pic {
    flex: none;
    border: 1px solid gold;
    border-radius: 4px;
    background: #0b2a52 center / cover no-repeat;
}

.sc-name {
    font-size: var(--name);
    font-weight: 600;
    line-height: 1.1;
}

.sc-dance {
    margin-top: 1px;
    color: gold;
    font-size: var(--sub);
}

.sc-avgs {
    color: #7f9cc4;
    font-size: calc(var(--sub) - 2px);
    line-height: 1.2;
}

/* The two list cards: a row for each dance */
.sc-list {
    flex: 1;
    margin-top: 14px;
}

.sc-row {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--row);
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.sc-who {
    flex: none;
    width: 260px;
}

.sc-chart {
    position: relative;
    flex: 1;
    height: 60px;
}

/* Difference card */
.sc-axis {
    display: flex;
    justify-content: space-between;
    margin: 26px 0 0 calc(var(--picw) + 20px + 260px + 20px);
    color: #cfe0f5;
    font-size: 20px;
}

.sc-mid {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, .55);
}

.sc-bar {
    position: absolute;
    top: 14px;
    height: 32px;
    border-radius: 5px;
}

.sc-neg { background: #ff8a8a; }
.sc-pos { background: #6fe08f; }

.sc-difflabel {
    position: absolute;
    top: 12px;
    font-size: 26px;
    font-weight: 600;
    line-height: 36px;
}

.sc-level {
    color: #aac4e6;
}

/* Dot plot card */
.sc-legend {
    display: flex;
    gap: 34px;
    margin-top: 24px;
    font-size: 22px;
}

.sc-legend i {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
    vertical-align: -3px;
}

.sc-judges { background: violet; }
.sc-viewers { background: gold; }

.sc-grid {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, .14);
}

.sc-line {
    position: absolute;
    top: 28px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .55);
}

.sc-dot {
    position: absolute;
    top: 19px;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border: 2px solid #031c3a;
    border-radius: 50%;
}

.sc-dotlabel {
    position: absolute;
    top: 17px;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    white-space: nowrap;
}

/* Rank change card */
.sc-shead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    color: #cfe0f5;
    font-size: 24px;
}

.sc-shead span {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sc-face {
    display: block;
    margin-left: -6px;
    border: 1px solid gold;
    border-radius: 4px;
}

.sc-face:first-of-type { margin-left: 4px; }

.sc-vicon {
    display: block;
    opacity: .95;
}

.sc-slope {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.sc-scol {
    position: relative;
    width: 430px;
}

.sc-slope svg {
    flex: none;
}

.sc-srow {
    position: absolute;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-stext {
    flex: 1;
    min-width: 0;
}

.sc-slope .sc-name { font-size: calc(var(--name) - 2px); }

.sc-right .sc-stext { text-align: right; }

.sc-sval {
    width: 68px;
    color: gold;
    font-size: 28px;
    font-weight: 600;
    text-align: right;
}

.sc-right .sc-sval { text-align: left; }

.sc-srank {
    width: 40px;
    color: #aac4e6;
    font-size: 22px;
}

/* The page around the cards */
.sc-cardhead {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 30px 0 10px;
}

.sc-cardhead h2 {
    margin: 0;
}

.sc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* The sharing requirements, in the same dark panel as the sidebar's but with a gold border to stand out */
.sc-callout {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid gold;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, .35);
}

.sc-callout h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.sc-callout p {
    margin: 0;
    font-size: .85rem;
}

@media (max-width: 700px) {
    .sc-box { max-width: 100%; }
}
