html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* 隐藏滚动条但保持可滚动 - Webkit浏览器 */
::-webkit-scrollbar {
    display: none;
}

/* 隐藏滚动条但保持可滚动 - Firefox */
* {
    scrollbar-width: none;
}

.center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.total-counter {
    text-align: center;
    position: relative;
    animation: float 4s ease-in-out infinite;
    padding: 40px;
    transform-style: preserve-3d;
}

/* 主光晕效果 */
.total-counter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle at center, 
        rgba(63, 94, 251, 0.12) 0%,
        rgba(98, 70, 234, 0.12) 15%,
        rgba(252, 70, 107, 0.12) 30%,
        rgba(108, 70, 234, 0) 50%
    );
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
    z-index: -1;
    filter: blur(20px);
}

/* 添加第二层光晕 */
.total-counter::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: radial-gradient(circle at center, 
        rgba(252, 70, 107, 0) 0%,
        rgba(252, 70, 107, 0.08) 30%,
        rgba(63, 94, 251, 0.08) 60%,
        rgba(63, 94, 251, 0) 80%
    );
    transform: translate(-50%, -50%);
    animation: rotateReverse 15s linear infinite;
    z-index: -2;
    filter: blur(15px);
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateReverse {
    0% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1) rotateX(0deg);
    }
    50% {
        transform: translateY(-15px) scale(1.02) rotateX(2deg);
    }
}

.total-counter .total-number {
    font-size: 140px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    letter-spacing: 4px;
    filter: drop-shadow(0 0 10px rgba(123, 167, 255, 0.4));
    transform-style: preserve-3d;
    perspective: 1000px;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #7aa7ff 20%,
        #4f6df5 40%,
        #fc466b 60%,
        #3f5efb 80%,
        #ffffff 100%
    );
    background-size: 1000% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: gradientFlow 60s linear infinite;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 添加渐变动画遮罩层 */
.total-counter .total-number::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #fc466b 0%,
        #3f5efb 30%,
        #7aa7ff 50%,
        #4f6df5 70%,
        #fc466b 100%
    );
    background-size: 1000% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: gradientFlow 30s linear infinite reverse;
    opacity: 0.7;
    mix-blend-mode: plus-lighter;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 1000% 50%;
    }
}

/* 修改动画状态 */
.total-counter .total-number.animate {
    animation: 
        gradientFlow 20s linear infinite,
        numberPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.total-counter .total-number.animate::before {
    animation: 
        gradientFlow 15s linear infinite reverse,
        numberPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes numberPop {
    0% {
        transform: scale(1) translateY(0);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.2) translateY(-10px);
        filter: brightness(1.5);
    }
    100% {
        transform: scale(1) translateY(0);
        filter: brightness(1);
    }
}

/* 添加数字变化时的闪光效果 */
.number-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(123, 167, 255, 0.3) 30%,
        rgba(255, 255, 255, 0) 70%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    animation: flash 1s ease-out forwards;
    filter: blur(10px);
}

@keyframes flash {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 添加数字投影效果 */
.total-counter .total-number::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background-image: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(123, 167, 255, 0.1) 50%,
        rgba(79, 109, 245, 0.1) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transform: translateZ(-10px);
    filter: blur(8px);
    opacity: 0.8;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 20px rgba(123, 167, 255, 0.5),
            0 0 40px rgba(123, 167, 255, 0.3),
            0 0 60px rgba(123, 167, 255, 0.2),
            0 0 80px rgba(252, 70, 107, 0.2);
        filter: brightness(1) contrast(1.2);
    }
    to {
        text-shadow: 
            0 0 40px rgba(123, 167, 255, 0.7),
            0 0 80px rgba(123, 167, 255, 0.5),
            0 0 120px rgba(123, 167, 255, 0.3),
            0 0 160px rgba(252, 70, 107, 0.3);
        filter: brightness(1.2) contrast(1.4);
    }
}

.total-counter .total-label {
    display: block;
    font-size: 32px;
    font-weight: 600;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 8px;
    /* margin-top: 20px; */
    position: relative;
    text-shadow: 
        0 0 20px rgba(123, 167, 255, 0.5),
        0 0 40px rgba(252, 70, 107, 0.3);
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(123,167,255,1) 50%,
        rgba(255,255,255,1) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: 
        labelPulse 3s ease-in-out infinite,
        labelMove 4s linear infinite;
    transform-style: preserve-3d;
}

@keyframes labelMove {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes labelPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1) translateZ(0px);
        letter-spacing: 8px;
        filter: blur(0px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateZ(20px);
        letter-spacing: 12px;
        filter: blur(0.5px);
    }
}

/* 数字变化时的动画 */
/* .total-counter .total-number.animate {
    animation: 
        glow 2s ease-in-out infinite alternate,
        numberChange 1.2s cubic-bezier(0.4, 0, 0.2, 1);
} */

@keyframes numberChange {
    0% {
        transform: perspective(1000px) rotateX(0deg) scale(1) translateZ(0);
        filter: brightness(1);
    }
    50% {
        transform: perspective(1000px) rotateX(-20deg) scale(0.95) translateZ(-50px);
        filter: brightness(1.5);
    }
    100% {
        transform: perspective(1000px) rotateX(0deg) scale(1) translateZ(0);
        filter: brightness(1);
    }
}

.user-avatars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    overflow: hidden;
}

.user-avatar-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.1s linear;
    will-change: transform, opacity;
}

.user-avatar-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: all 0.1s linear;
    will-change: width, height;
}

.user-avatar-item .nickname {
    margin-top: 5px;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
    white-space: nowrap;
    transition: all 0.1s linear;
    will-change: font-size;
}

body#home {
    position: relative;

}
div#download-button{
    display: none;

}




/*! Fonts */
@font-face
{
    font-family: 'Hellix';
    src:
        url('fonts/Hellix-Light%EF%B9%96.eot#iefix') format('embedded-opentype'),
        url('fonts/Hellix-Light.woff') format('woff'),
        url('fonts/Hellix-Light.woff2') format('woff2');
    font-display: fallback;
    font-style: normal;
    font-weight: 300;
}


@font-face
{
    font-family: 'Bungee';
    src:
        url('fonts/Bungee.woff') format('woff'),
        url('fonts/Bungee.woff2') format('woff2');
        font-weight: normal;
        font-style: normal;
}

@font-face
{
    font-family: 'Hellix';
    src:
        url('fonts/Hellix-Medium%EF%B9%96.eot#iefix') format('embedded-opentype'),
        url('fonts/Hellix-Medium.woff') format('woff'),
        url('fonts/Hellix-Medium.woff2') format('woff2');
    font-display: fallback;
    font-style: normal;
    font-weight: 500;
}

@font-face
{
    font-family: 'Hellix';
    src:
        url('fonts/Hellix-Bold%EF%B9%96.eot#iefix') format('embedded-opentype'),
        url('fonts/Hellix-Bold.woff') format('woff'),
        url('fonts/Hellix-Bold.woff2') format('woff2');
    font-display: fallback;
    font-style: normal;
    font-weight: 700;
}

@font-face
{
    font-family: "NotoSans";
    src:
        url('fonts/NotoSans/NotoSansCJKjp-Light-subset%EF%B9%96.eot#iefix') format('embedded-opentype'),
        url('fonts/NotoSans/NotoSansCJKjp-Light-subset.woff') format('woff');
    font-display: fallback;
    font-style: normal;
    font-weight: 200;
}

@font-face
{
    font-family: "NotoSans";
    src:
        url('fonts/NotoSans/NotoSansCJKjp-Bold-subset%EF%B9%96.eot#iefix') format('embedded-opentype'),
        url('fonts/NotoSans/NotoSansCJKjp-Bold-subset.woff') format('woff');
    font-display: fallback;
    font-style: normal;
    font-weight: 600;
}

@font-face
{
    font-family: "NotoSans";
    src:
        url('fonts/NotoSans/NotoSansCJKjp-Black-subset%EF%B9%96.eot#iefix') format('embedded-opentype'),
        url('fonts/NotoSans/NotoSansCJKjp-Black-subset.woff') format('woff');
    font-display: fallback;
    font-style: normal;
    font-weight: 800;
}

/*! Colors */
:root
{
    --foreground: #ffffff;
    --midforeground: #b2b2b2;
    --midground: #888888;
    --background: #080f24;
    --deepbackground: #060b1b;
    --red: #ea3329;
    --orange: #eb6a2c;
    --yellow: #f29c38;
    --lightyellow: #ffd321;
    --green: #75fb4c;
    --cyan: #00f0ff;
    --blue: #0C8CFE;
    --darkblue: #003b6e;
    --purple: #e532ad;
    --deeppurple: #970056;
    --darkpurple: #2b0c5c;
    --lightpurple: #3d147f;
    --brightpurple: #8400ff;
    --pink: #ff034a;
}

@supports (color: color(display-p3 1 1 1 / 1)) {
    :root
    {
        --foreground: color(display-p3 1.00 1.00 1.00 / 1.00);
        --midforeground: color(display-p3 0.70 0.70 0.70 / 1.00);
        --midground: color(display-p3 0.53 0.53 0.53 / 1.00);
        --deepbackground: color(display-p3 0.02 0.04 0.11 / 1.00);
        --red: color(display-p3 0.92 0.20 0.16 / 1.00);
        --orange: color(display-p3 0.93 0.42 0.17 / 1.00);
        --yellow: color(display-p3 0.94 0.60 0.22 / 1.00);
        --lightyellow: color(display-p3 1.00 0.83 0.13 / 1.00);
        --green: color(display-p3 0.46 0.98 0.30 / 1.00);
        --cyan: color(display-p3 0 0.95 1 / 1.00);
        --blue: color(display-p3 0.05 0.55 1.00 / 1.00);
        --darkblue:color(display-p3 0 0.24 0.43 / 1.00);
        --purple: color(display-p3 0.85 0.18 0.65 / 1.00);
        --purple: color(display-p3 0.90 0.20 0.68 / 1.00);
        --deeppurple: color(display-p3 0.59 0.00 0.34 / 1.00);
        --darkpurple: color(display-p3 0.17 0.05 0.36 / 1.00);
        --lightpurple: color(display-p3 0.24 0.08 0.50 / 1.00);
        --brightpurple: color(display-p3 0.47 0 1 / 1);
        --pink: color(display-p3 1 .012 .29 / 1);
    }
}

*,
*::before,
*::after
{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

header,footer,nav,main,section,figure,article,aside
{
    display: block;
}

html
{
    font-size: 3.2px;
    margin: 0;
    padding: 0;
}

body
{
    font-size: 2.6rem;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    font-family: "Hellix", Helvetica, sans-serif;
    font-weight: 400;
    background-color: var(--background);
    color: var(--foreground);
}

html[lang="ja"] header p
{
    font-family: "TazuganeGothicStdN-XBlack", "NotoSans", sans-serif;
}

html[lang="ja"] section h2
{
    font-family: "Hellix", "NotoSans", sans-serif;
}

html[lang="ja"] body
{
    font-weight: 200;
}

html[lang="ja"] header p,
html[lang="ja"] section h2
{
    font-weight: 600;
}

html[lang="ja"] section h2
{
    text-align: center;
}

header figure
{
    margin: 0 auto;
    max-width: 129.2rem;
}

a
{
    text-decoration: none;
    color: inherit;
}

canvas#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

section
{
    max-width: 88.6rem;
    margin: 4rem auto;
    clear: both;
}

form
{
    max-width: 93.4rem;
    margin: 0 auto;
    clear: both;
}

/* Rainbow divider before sections */
hr
{
    width: 88.6rem;
    border: 0;
    height: 0.35rem;
    margin: 3em auto;
    display: block;
    
    clear: both;
}

section h2
{
    font-size: 2.4em;
    line-height: 1em;
    text-align: center;
}

nav.top
{
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    transition-property: background-color;
    transition-timing-function: ease-in-out;
    transition-duration: 450ms;
}

/* Rainbow divider after navbar */
nav.top:after
{
    position: relative;
    content: "";
    width: 100%;
    height: 0.1em;
    display: block;
    background-image: -webkit-linear-gradient(0deg, var(--yellow), var(--red), var(--pink), var(--purple), var(--blue));
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: ease-in-out;
    transition-duration: 450ms;
}

nav.top.scrolled
{
    background-color: #080f24;
}

nav.top.scrolled:after
{
    opacity: 1;
}

body.reduce-motion nav.top,
body.reduce-motion nav.top:after
 {
     transition-property: none;
 }

@media screen and (prefers-reduced-motion)
{
    nav.top,
    nav.top:after
    {
        transition-property: none;
    }
}

nav.top ul
{
    display: flex;
    justify-content: space-between;
    align-content: center;
    list-style: none;
    padding: 0.5em 0em;
    margin: 0;
}

nav.top li
{
    margin: 0 0.15em;
    padding: 0;
    align-self: center;
    cursor: pointer;
}

nav.top li a
{
    display: block;
    position: relative;
    z-index: 10;
    color: var(--midground);
    font-size: 0.5875em;
    letter-spacing: -0.035em;
    padding: 0.375em 0.5em 0.5em 1.75em;
    line-height: 1;
    background-repeat: no-repeat;
    background-size: 1em;
    background-position: 0.5em 50%;
    border-radius: 1em;
}

nav.top li#help a { background-image: url("images/top-nav-help.svg"); }
nav.top li#extensions a { background-image: url("images/top-nav-extensions.svg"); }
nav.top li#future a { background-image: url("images/top-nav-future.svg"); }
nav.top li#about a { background-image: url("images/top-nav-future.svg"); }
nav.top li#api a { background-image: url("images/top-nav-api.svg"); }

nav.top li#api {margin-left: -0.25em;}

nav.top li#buy a
{
    color: var(--background);
    background-color: var(--green);
    background-image: url("images/top-nav-buy.svg");
}

nav.top li#download
{
    position: absolute;
    left: 0.15em;
}

#home nav.top li#download
{
    opacity: 0;
    pointer-events: none;
    transition-property: opacity;
    transition-timing-function: ease-in-out;
    transition-duration: 450ms;
    z-index: -1;
    visibility: hidden;
}

#home nav.top.scrolled li#download
{
    opacity: 1;
    pointer-events: all;
    z-index: unset;
    visibility: visible;
}

nav.top li#download a,
body#notfound main a
{
    color: var(--foreground);
    background-color: var(--blue);
    font-weight: 700;
    padding: 0.325em 0.75em 0.5em 0.75em;
}

nav.top li#download a:hover
{
    text-decoration: none;
}


nav.top li a:hover
{
    text-decoration: underline;
}

header
{
    text-align: center;
    margin: .65em auto 0 auto;
    position: relative;
}

header h1
{
    color: var(--pink);
    text-transform: lowercase;
    letter-spacing: -0.05em;
    font-size: 8em;
    margin: 0 auto;
    line-height: 1em;
    position: relative;
    display: inline-block;
    font-weight: 700;
    left: -0.1em;
    white-space: nowrap;
}

header h1:before
{
    display: inline-block;
    width: 0.65em;
    height: 0.65em;
    content: "";
    background-image: url(images/nova-app-icon.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50% 50%;
    position: relative;
    top: 0.075em;
    left: 0.1em;
}

header h1 sup
{
    font-size: 0.15em;
    display: inline-block;
    position: absolute;
    top: -0.25em;
    right: -0.65em;

}

header h2,
header p
{
    font-weight: 700;
    line-height: 0.9;
    margin: .65em auto;
    letter-spacing: -0.015em;
    max-width: 12em;
}

div#download-button
{
    display: inline-grid;
    /* align-items: center;
    border-radius: 1em;
    padding: 0.15em 0.5em 0.35em 0.5em;
    grid-gap: 0.25em;
    background-color: transparent; */
    color: var(--foreground);
    font-weight: 700;
    font-size: 1.75em;
    margin: 2rem auto;
    cursor: pointer;
    position: absolute;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
        background-color: transparent;
    transition: transform 150ms ease-in-out;
    grid-template-columns: auto 1fr;
    left: 50%;
    top: 30%;
}




div#download-button:hover
{
    transform: scale( 1.015 );
}

div.releasenotes
{
    font-size: 1em;
    font-weight: normal;
    margin: 2rem auto 4rem auto;
    position: relative;
    max-width: 65ch;
}

div.releasenotes li
{
    display: inline-flex;
    justify-content: center;
    align-content: center;
}

div.releasenotes ul::before
{
    width: 1.25em;
    height: 1.25em;
    content: "";
    background-color: var(--pink);
    -webkit-mask-image: url(images/starburst.svg);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    display: inline-flex;
    margin-right: 0.15em;
}

div.releasenotes a
{
    text-decoration: underline;
    color: var(--foreground);
    grid-column: 2;
    grid-row: 1;
}

div.releasenotes ul
{
    list-style: none;
    margin: 0;
    padding: 0;
}

/*
.feature
{
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 2rem;
    --highlight: rgb(161,59,255);
    margin: 2rem auto;
}

.feature-image
{
    grid-column: 1 / span 1;
    background: var(--background);
    height: 15rem;
    width: 22.5rem;
    margin: 0;
    position: relative;
    border-radius: 1em;
    place-self: center;
}

.feature-image img,
.feature-image video
{
    border-radius: 1em;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-image::before
{
    width: 100%;
    height: 100%;
    display: block;
    content: "";
    box-shadow: 0 0 2rem var(--highlight);
    border-radius: 1em;
    opacity: 0.275;
}

.feature-summary
{
    grid-column: 2 / span 1;
    align-self: center;
    text-align: left;
}

.feature-name
{
    font-size: inherit;
    text-align: left;
    margin: 0;
    color: var(--highlight);
    font-weight: 700;
    line-height: 1.5em;
}
*/

h2.subhead
{
    font-size: inherit;
    line-height: inherit;
    font-weight: 700;
}

h2.subhead,
h2.subhead+p
{
    display: inline;
}

main
{
    overflow: hidden;
    margin: -4rem auto;
  
}

figure#hero
{
    margin-bottom: -6rem;
}

body#home main
{
    margin: -4em auto -4rem auto;
    padding-top: 4em;
}

ul#feature-grid
{
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr 1fr;
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    line-height: 1;
}

ul#feature-grid li a
{
    display: block;
    text-align: center;
    font-weight: 700;
    position: relative;
}

ul#feature-grid li a:before
{
    position: relative;
    content: "";
    display: block;
    width: 100%;
    height: 16rem;
    background-size: 12rem;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: 3rem;
    transition: background-size 150ms ease-in-out;
}

ul#feature-grid li:hover a:before
{
    background-size: 12rem;
}

ul#feature-grid li a:after
{
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    content: "";
    display: block;
    opacity: 0;
    width: 100%;
    height: 16rem;
    border-radius: 100%;
    background-size: 12rem 12rem;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    transition-property: transform, opacity;
    transition-duration: 500ms;
    transition-timing-function: ease-in-out;
    transform: scale(5);
}

ul#feature-grid li:hover a:after
{
    transform: scale(2);
    opacity: .5;
}

ul#feature-grid li a em
{
    font-style: normal;
}

ul#feature-grid.loaded li#editor a:before { background-image: url("images/icon-editor.png"); }
ul#feature-grid.loaded li#workflows a:before { background-image: url("images/icon-workflows.png"); }
ul#feature-grid.loaded li#tools a:before { background-image: url("images/icon-tools.png"); }
ul#feature-grid.loaded li#debugging a:before { background-image: url("images/icon-theme.png");  }
ul#feature-grid.loaded li#extensions a:before { background-image: url("images/icon-extensions.png"); }
ul#feature-grid.loaded li#settings a:before { background-image: url("images/icon-settings.png"); }

ul#feature-grid.loaded li#editor a:after { background-image: radial-gradient(closest-side, var(--yellow), transparent) }
ul#feature-grid.loaded li#workflows a:after { background-image: radial-gradient(closest-side, var(--orange), transparent) }
ul#feature-grid.loaded li#debugging a:after { background-image: radial-gradient(closest-side, var(--red), transparent) }
ul#feature-grid.loaded li#tools a:after { background-image: radial-gradient(closest-side, var(--pink), transparent)  }
ul#feature-grid.loaded li#extensions a:after { background-image: radial-gradient(closest-side, var(--purple), transparent) }
ul#feature-grid.loaded li#settings a:after { background-image: radial-gradient(closest-side, var(--blue), transparent) }

ul#feature-grid li#editor em { color: var(--yellow); }
ul#feature-grid li#workflows em { color: var(--orange); }
ul#feature-grid li#debugging em { color: var(--red); }
ul#feature-grid li#tools em { color: var(--pink); }
ul#feature-grid li#extensions em { color: var(--purple); }
ul#feature-grid li#settings em { color: var(--blue); }

.big-checkbox ul,
.big-radio ul
{
    text-align: center;
    list-style-position: inside;
}

section#opening:before
{
    padding-top: 0;
    margin-top: 0;
}

figure.image,
figure.video
{
    display: grid;
    position: relative;
    margin: 2rem auto 4rem auto;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
}

figure.image img,
figure.video video
{
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    grid-row: 1 / span 1;
    grid-column: 1 / span 1;
    color: transparent;
}

section#the_editor figure.image
{
    width: 110rem;
    height: calc(.546914624 * 110rem);
    left: -10.7rem;
}

html[lang="en"] body[data-mode="dark"] section#the_editor img,
html[lang="en"] body[data-mode="dark"] section#the_editor figcaption.highlight span.loupe
{
    background-image: url(images/en/dark/editor.png);
}

html[lang="ja"] body[data-mode="dark"] section#the_editor img,
html[lang="ja"] body[data-mode="dark"] section#the_editor figcaption.highlight span.loupe
{
    background-image: url(images/ja/dark/editor.png);
}

html[lang="en"] body[data-mode="light"] section#the_editor img,
html[lang="en"] body[data-mode="light"] section#the_editor figcaption.highlight span.loupe
{
    background-image: url(images/en/light/editor.png);
}

html[lang="ja"] body[data-mode="light"] section#the_editor img,
html[lang="ja"] body[data-mode="light"] section#the_editor figcaption.highlight span.loupe
{
    background-image: url(images/ja/light/editor.png);
}

section#the_editor figcaption.highlight
{
    text-align: center;
    width: 100%;
}

section#the_editor figcaption.highlight span.loupe
{
    --animation-duration: 20s;
    --animation-segments: 5;

    --size: 30rem;
    --offset: calc( var(--size) / 4 );

    display: block;
    position: absolute;
    width: var(--size);
    height: var(--size);
    left: var(--left);
    top: var(--top);
    border: 1px solid var(--midground);
    border-radius: 100%;
    background-size: 165rem 90.24091296rem; /* 1.5x the dimensions of the main image. */
    background-repeat: no-repeat;
    background-position: calc(-1.5 * var(--left) - var(--offset)) calc(-1.5 * var(--top) - var( --offset));
    color: transparent;
    transform: scale(0);
    opacity: 0;
    transform-origin: center;

    box-shadow: 0 0 5rem rgba(0,0,0,0.5);

    animation-name: highlightLoupe;
    animation-duration: 20s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: calc( var( --animation-duration ) / var( --animation-segments ) * var( --animation-order ) );
}

section#the_editor figcaption.highlight span.caption
{
    --animation-duration: 20s;
    --animation-segments: 5;

    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 50%;
    font-size: 0.75em;

    background-color: var(--brightpurple);
    color: var(--foreground);
    border-radius: 3em;
    padding: 0.5em 1em 0.65em 1em;

    transform: scale(1) transformX(-50%);
    opacity: 0;
    transform-origin: 0;

    animation-name: highlightCaption;
    animation-duration: 20s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: calc( var( --animation-duration ) / var( --animation-segments ) * var( --animation-order ) );
}

body.reduce-motion section#the_editor figcaption.highlight span.loupe,
body.reduce-motion section#the_editor figcaption.highlight span.caption
{
    animation-play-state: paused;
}

@media screen and (prefers-reduced-motion) {

    section#the_editor figcaption.highlight span.loupe,
    section#the_editor figcaption.highlight span.caption
    {
        animation-play-state: paused;
    }

}

@keyframes highlightLoupe
{
    0%
    {
        transform: scale(0);
        opacity: 0;
    }
    2%
    {
        transform: scale(1);
    }
    3%,
    17%
    {
        opacity: 1;
        transform: scale(1);
    }
    18%
    {
        transform: scale(0);
    }
    20%,
    100%
    {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes highlightCaption
{
    0%
    {
        transform: scale(0) translateX(-50%);
        opacity: 0;
    }
    2%
    {
        transform: scale(1) translateX(-50%);
        opacity: 1;
    }
    3%,
    17%
    {
        opacity: 1;
        transform: scale(1) translateX(-50%);
    }
    18%
    {
        transform: scale(1) translateX(-50%);
        opacity: 0;
    }
    20%,
    100%
    {
        transform: scale(0) translateX(-50%);
        opacity: 0;
    }

}

/*  Background position is calculated using the multiplier used for the background-size above.
    Then we subtract a quarter of the highlight element's width/height.
    Here's the formula:

    background-position: ((-1.5 * left) - 7.5) ((-1.5 * top) - 7.5); */

/* Autocomplete */
section#the_editor figcaption.highlight#hl-autocomplete span.loupe,
section#the_editor figcaption.highlight#hl-autocomplete span.caption

{
    --animation-order: 0;
    --size: 32rem;
    --left: 26rem;
    --top: 2rem;
}

/* Minimap */
section#the_editor figcaption.highlight#hl-minimap span.loupe,
section#the_editor figcaption.highlight#hl-minimap span.caption
{
    --animation-order: 1;
    --size: 19rem;
    --left: 70rem;
    --top: 4.125rem;
}

/* Issues */
section#the_editor figcaption.highlight#hl-issues1 span.loupe,
section#the_editor figcaption.highlight#hl-issues1 span.caption
{
    --animation-order: 2;
    --size: 6rem;
    --left: 26.875rem;
    --top: 42.0rem;
}
section#the_editor figcaption.highlight#hl-issues2 span.loupe,
section#the_editor figcaption.highlight#hl-issues2 span.caption
{
    --animation-order: 2;
    --size: 28rem;
    --left: 78rem;
    --top: 32rem;
}

/* Multiple Cursors */
section#the_editor figcaption.highlight#hl-multiplecursors1 span.loupe,
section#the_editor figcaption.highlight#hl-multiplecursors1 span.caption
{
    --animation-order: 3;
    --size: 10rem;
    --left: 34rem;
    --top: 10.5rem;
}
section#the_editor figcaption.highlight#hl-multiplecursors2 span.loupe,
section#the_editor figcaption.highlight#hl-multiplecursors2 span.caption
{
    --animation-order: 3;
    --size: 10rem;
    --left: 36.675rem;
    --top: 25.125rem;
}
section#the_editor figcaption.highlight#hl-multiplecursors3 span.loupe,
section#the_editor figcaption.highlight#hl-multiplecursors3 span.caption
{
    --animation-order: 3;
    --size: 10rem;
    --left: 36.675rem;
    --top: 43.25rem;
}

/* Git Status */
section#the_editor figcaption.highlight#hl-git1 span.loupe,
section#the_editor figcaption.highlight#hl-git1 span.caption
{
    --animation-order: 4;
    --size: 6rem;
    --left: 24.75rem;
    --top: 12.5rem;
}
section#the_editor figcaption.highlight#hl-git2 span.loupe,
section#the_editor figcaption.highlight#hl-git2 span.caption
{
    --animation-order: 4;
    --size: 6rem;
    --left: 21.625rem;
    --top: 37.125rem;
}
section#the_editor figcaption.highlight#hl-git3 span.loupe,
section#the_editor figcaption.highlight#hl-git3 span.caption
{
    --animation-order: 4;
    --size: 6rem;
    --left: 99.825rem;
    --top: 28.875rem;
}

section#the_interface figure.image
{
    width: 88.6rem;
    height: calc(.731543624 * 88.6rem);
    margin: 5rem auto;
    color: transparent;
    box-shadow: 0 0 5rem rgba(0,0,0,0.8);
}

section#the_interface figure.image img
{
    position: relative;
}

@keyframes wipe
{
    0% { clip-path: polygon(-50% 0%, 0% 0%, -50% 101%, -100% 101%) }
    100% { clip-path: polygon(150% 0%, 200% 0%, 150% 101%, 100% 101%) }
}

section#the_interface figure.image.loaded img
{
    animation-name: wipe;
    animation-duration: 8s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
}

section#the_interface.running figure.image.loaded img
{
    animation-play-state: running;
}

img#interface1 { animation-delay: -17000ms; }
img#interface2 { animation-delay: -15000ms; }
img#interface3 { animation-delay: -13000ms; }
img#interface4 { animation-delay: -11000ms; }

body.reduce-motion section#the_interface.running figure.image.loaded img
 {
     animation-play-state: paused;
 }

@media screen and (prefers-reduced-motion) {
    section#the_interface.running figure.image.loaded img
    {
        animation-play-state: paused;
    }
}

html[lang="en"] figure.loaded img#interface1 { background-image: url(images/en/interface/1.png); }
html[lang="en"] figure.loaded img#interface2 { background-image: url(images/en/interface/2.png); }
html[lang="en"] figure.loaded img#interface3 { background-image: url(images/en/interface/3.png); }
html[lang="en"] figure.loaded img#interface4 { background-image: url(images/en/interface/4.png); }

html[lang="ja"] figure.loaded img#interface1 { background-image: url(images/ja/interface/1.png); }
html[lang="ja"] figure.loaded img#interface2 { background-image: url(images/ja/interface/2.png); }
html[lang="ja"] figure.loaded img#interface3 { background-image: url(images/ja/interface/3.png); }
html[lang="ja"] figure.loaded img#interface4 { background-image: url(images/ja/interface/4.png); }

section#the_interface figure.video
{
    width: 88.6rem;
    height: calc(.779047619 * 88.6rem);
}

section#the_workflows figure.video
{
    width: 88.6rem;
    height: calc(.754601227 * 88.6rem);
}

section#the_tools figure.image
{
    width: 88.6rem;
    -webkit-mask-image: -webkit-linear-gradient(-90deg, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
    mask-image: linear-gradient(rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
}

section#the_tools figure.image#new-tab
{
    width: 98.6rem;
    height: calc(.363003096 * 98.6rem);
    float: left;
    top: -3rem;
    right: 45.15rem;
    margin-right: -43.5rem;
    margin-bottom: -3rem;
}

section#the_tools figure.image#sidebar
{
    height: calc(.396449704 * 88.6rem);
    float: right;
    top: 1.25rem;
    left: 44.85rem;
    margin-left: -40.4rem;
}

section#the_tools figure.image#git
{
    width: 88.6rem;
    height: calc(.546914624 * 88.6rem);
    float: left;
    top: -1rem;
    right: 45.15rem;
    margin-right: -43.5rem;
    margin-bottom: -1rem;
}

section#the_tools figure.image#comparison
{
    height: calc(.546914624 * 88.6rem);
    float: right;
    top: -2rem;
    left: 45.15rem;
    margin-left: -43.15rem;
}

figure.image+p
{
    clear: right;
}

figure.image#sidebar+p,
figure.image#comparison+p
{
    clear: left;
}

section#the_tools span.icon
{
    padding-left: 1.35em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left 0.2rem;
}

.loaded span.icon.sidebar-local-browser { background-image: url("images/sidebar-files.png"); }
.loaded span.icon.sidebar-remote-browser { background-image: url("images/sidebar-remote.png"); }
.loaded span.icon.sidebar-find { background-image: url("images/sidebar-search.png"); }
.loaded span.icon.sidebar-symbols { background-image: url("images/sidebar-symbols.png"); }
.loaded span.icon.sidebar-clips { background-image: url("images/sidebar-clips.png"); }
.loaded span.icon.sidebar-git { background-image: url("images/sidebar-scm.png"); }
.loaded span.icon.sidebar-task-reports { background-image: url("images/sidebar-console.png"); }
.loaded span.icon.sidebar-issues { background-image: url("images/sidebar-issues.png"); }
.loaded span.icon.sidebar-publishing { background-image: url("images/sidebar-publish.png"); }


section#the_extensions figure.image
{
    width: 72rem;
    height: calc(.4609375 * 72rem);
}

#the_extensions figure {
    margin: 0;
}

.extensions, .extension {
    --gap: 2.5rem;
    display: grid;
    grid-column-gap: var( --gap );
    column-gap: var( --gap );
}
.extensions {
    max-width: 100%;
    overflow-x: scroll;
    grid-template-columns: repeat( 6, calc( 66% + var( --gap ) ) );
    grid-row-gap: var( --gap );
    row-gap: var( --gap );
    margin-top: var( --gap );
}
.extension {
    --font-size: 3.0rem;

    position: relative;
    top: 0;
    padding: var( --gap );
    padding-bottom: calc( var( --gap ) * 2 );
    background-color: #f2f2f2;
    border-radius: calc( 0.4 * var( --font-size ) );
    color: #080f24;
    font-size: var( --font-size );
    line-height: 1.4;

    grid-template-columns: 1fr 4fr;

    transition: box-shadow,margin 0.75s,0.25s ease;
}
.extension p {
    margin: 0;
}
.extension img {
    width: 100%;
}
.extension .extension-name {
    margin-bottom: 0.25rem;
    font-size: calc( var( --font-size ) + 0.5rem );
}
.extension .extension-vendor {
    margin-bottom: 0.75rem;
    opacity: 0.65;
}
html[lang="ja"] .extensions {
	font-weight: normal;
}

@media screen and (min-width: 620px)
{
    .extensions, .extension {
        --gap: 1.75rem;
    }
    .extensions {
        overflow-x: visible;
        grid-template-columns: repeat( 3, 1fr );
        box-shadow: none;
    }
    .extension {
        --font-size: 1.25rem;
    }
    .extension:hover {
        box-shadow: 0 0 5rem var( --darkpurple );
        margin-top: -0.2rem;
        margin-bottom: 0.2rem;
        z-index: 1;
    }
}

.feature-link {
    color: var( --green );
    text-align: right;
    display: block;
	text-decoration: none;
}
.feature-link:after {
    content: "\2192";
    padding-left: 0.25em;
}

section#the_settings
{
    padding-bottom: 1rem;
}

section#the_settings figure figcaption
{
    text-align: center;
    position: absolute;
    width: 100%;
    bottom: -3em;
    opacity: 0;
    transition: 300ms opacity ease-in-out;
}

figure#settings-screenshots::after
{
    position: absolute;
    width: 18rem;
    height: 18rem;
    content: "";
    bottom: -5rem;
    right: 0;
    background-color: var(--pink);
    -webkit-mask-image: url("images/drawn-arrow.svg");
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    transform: rotateY(180deg) rotate(30deg);
    opacity: 0;
    transition: 300ms opacity ease-in-out;
    pointer-events: none;
}

figure#settings-screenshots[data-pane="all"]::after,
figure#settings-screenshots[data-pane="all"] figcaption
{
    opacity: 1;
}

section#the_settings figure.image
{
    /* Retina settings screenshots are currently 1360px wide. 1360 divided by 2 (retina) divided by 10 = 68rem */
    width: 68rem;
    height: auto;
    transition-property: height;
    transition-delay: 0ms;
    transition-duration: 250ms;
    transition-timing-function: ease-in-out;
    transform-origin: top center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    border-radius: 0.9rem;
    box-shadow: 0 0 5rem rgba(0,0,0,0.8);
    margin: 6rem auto;
}

section#the_settings figure.image
{
    background-color: #2f3033;
}

@media (prefers-color-scheme: light)
{
    section#the_settings figure.image
    {
        background-color: #ececec;
    }
}

body.reduce-motion section#the_settings figure.image
 {
     transition-duration: 0ms;
 }

@media screen and (prefers-reduced-motion:reduce)
{
    section#the_settings figure.image
    {
        transition-duration: 0ms;
    }
}

section#the_settings figure.image img
{
    height: 5.5rem;
    width: 7rem;
    cursor: pointer;
    position: absolute;
    opacity: 0;

    /* Uncomment this to see the clickable areas */
    /*
    opacity: .5;
    outline: 1px solid red;
    */

}

section#the_settings figure.image img#settings-screenshot-all
{
    width: 12rem;
    left: 9rem;
}

section#the_settings figure.image img
{
    display: none;
}

section#the_settings figure.image img#settings-screenshot-all,
section#the_settings figure.image[data-pane="all"] img
{
    display: block;
}

/* Row 1 */
section#the_settings figure.image img#settings-screenshot-general,
section#the_settings figure.image img#settings-screenshot-git-accounts,
section#the_settings figure.image img#settings-screenshot-behaviors,
section#the_settings figure.image img#settings-screenshot-theme,
section#the_settings figure.image img#settings-screenshot-key-bindings,
section#the_settings figure.image img#settings-screenshot-tools
{
    top: 7rem;
}

/* Row 2 */
section#the_settings figure.image img#settings-screenshot-workspace,
section#the_settings figure.image img#settings-screenshot-files,
section#the_settings figure.image img#settings-screenshot-editor,
section#the_settings figure.image img#settings-screenshot-git,
section#the_settings figure.image img#settings-screenshot-terminal
{
    top: 16.5rem;
}

/* Row 3 */
section#the_settings figure.image img#settings-screenshot-sync,
section#the_settings figure.image img#settings-screenshot-servers,
section#the_settings figure.image img#settings-screenshot-keys,
section#the_settings figure.image img#settings-screenshot-transfers

{
    top: 26.25rem;
}

/* Column 1 */
section#the_settings figure.image img#settings-screenshot-general,
section#the_settings figure.image img#settings-screenshot-workspace,
section#the_settings figure.image img#settings-screenshot-sync
{
    left: 1rem;
}

/* Column 2 */
section#the_settings figure.image img#settings-screenshot-git-accounts,
section#the_settings figure.image img#settings-screenshot-files,
section#the_settings figure.image img#settings-screenshot-servers
{
    left: 9.5rem;
}

/* Column 3 */
section#the_settings figure.image img#settings-screenshot-behaviors,
section#the_settings figure.image img#settings-screenshot-editor,
section#the_settings figure.image img#settings-screenshot-keys
{
    left: 18rem;
}

/* Column 4 */
section#the_settings figure.image img#settings-screenshot-theme,
section#the_settings figure.image img#settings-screenshot-git,
section#the_settings figure.image img#settings-screenshot-transfers
{
    left: 26.5rem;
}

/* Column 5 */
section#the_settings figure.image img#settings-screenshot-key-bindings,
section#the_settings figure.image img#settings-screenshot-terminal
{
    left: 35rem;
}

/* Column 6 */
section#the_settings figure.image img#settings-screenshot-tools
{
    left: 43.5rem;
}

/* Full height of each pane */
/* Take the height in pixels, divide by 2 for retina, then divide by 10 and that's your value in rems. */

section#the_settings figure.image[data-pane="all"]
{
    height: 33.9rem;
}

section#the_settings figure.image[data-pane="general"]
{
    height: 57.8rem;
}

section#the_settings figure.image[data-pane="git-accounts"]
{
    height: 47.2rem;
}

section#the_settings figure.image[data-pane="sync"]
{
    height: 24.9rem;
}

section#the_settings figure.image[data-pane="workspace"]
{
    height: 57.0rem;
}

section#the_settings figure.image[data-pane="behaviors"]
{
    height: 53.2rem;
}

section#the_settings figure.image[data-pane="files"]
{
    height: 47.2rem;
}

section#the_settings figure.image[data-pane="editor"]
{
    height: 74rem;
}

section#the_settings figure.image[data-pane="git"]
{
    height: 30rem;
}

section#the_settings figure.image[data-pane="theme"]
{
    height: 71.9rem;
}

section#the_settings figure.image[data-pane="key-bindings"]
{
    height: 53.1rem;
}

section#the_settings figure.image[data-pane="terminal"]
{
    height: 52.9rem;
}

section#the_settings figure.image[data-pane="servers"]
{
    height: 47.2rem;
}

section#the_settings figure.image[data-pane="keys"]
{
    height: 41.2rem;
}

section#the_settings figure.image[data-pane="transfers"]
{
    height: 63.2rem;
}

section#the_settings figure.image[data-pane="tools"]
{
    height: 59.8rem;
}

/* English Dark Mode */
html[lang="en"] section#the_settings figure.image.loaded[data-pane="all"]
{ background-image: url("images/en/dark/settings/all.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-general:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="general"]
{ background-image: url("images/en/dark/settings/general.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-git-accounts:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="git-accounts"]
{ background-image: url("images/en/dark/settings/git-accounts.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-sync:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="sync"]
{ background-image: url("images/en/dark/settings/sync.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-workspace:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="workspace"]
{ background-image: url("images/en/dark/settings/workspace.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-behaviors:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="behaviors"]
{ background-image: url("images/en/dark/settings/behaviors.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-files:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="files"]
{ background-image: url("images/en/dark/settings/files.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-editor:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="editor"]
{ background-image: url("images/en/dark/settings/editor.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-git:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="git"]
{ background-image: url("images/en/dark/settings/git.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-theme:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="theme"]
{ background-image: url("images/en/dark/settings/theme.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-key-bindings:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="key-bindings"]
{ background-image: url("images/en/dark/settings/key-bindings.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-terminal:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="terminal"]
{ background-image: url("images/en/dark/settings/terminal.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-servers:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="servers"]
{ background-image: url("images/en/dark/settings/servers.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-keys:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="keys"]
{ background-image: url("images/en/dark/settings/keys.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-transfers:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="transfers"]
{ background-image: url("images/en/dark/settings/transfers.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-tools:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="tools"]
{ background-image: url("images/en/dark/settings/tools.png"); }

/* Japanese Dark Mode */
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="all"]
{ background-image: url("images/ja/dark/settings/all.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-general:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="general"]
{ background-image: url("images/ja/dark/settings/general.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-git-accounts:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="git-accounts"]
{ background-image: url("images/ja/dark/settings/git-accounts.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-sync:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="sync"]
{ background-image: url("images/ja/dark/settings/sync.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-workspace:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="workspace"]
{ background-image: url("images/ja/dark/settings/workspace.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-behaviors:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="behaviors"]
{ background-image: url("images/ja/dark/settings/behaviors.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-files:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="files"]
{ background-image: url("https://nova.app/images/ja/dark/settings/files.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-editor:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="editor"]
{ background-image: url("images/ja/dark/settings/editor.png"); }
html[lang="en"] section#the_settings figure.image img#settings-screenshot-git:hover,
html[lang="en"] section#the_settings figure.image.loaded[data-pane="git"]
{ background-image: url("images/ja/dark/settings/git.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-theme:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="theme"]
{ background-image: url("images/ja/dark/settings/theme.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-key-bindings:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="key-bindings"]
{ background-image: url("images/ja/dark/settings/key-bindings.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-terminal:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="terminal"]
{ background-image: url("images/ja/dark/settings/terminal.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-servers:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="servers"]
{ background-image: url("images/ja/dark/settings/servers.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-keys:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="keys"]
{ background-image: url("images/ja/dark/settings/keys.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-transfers:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="transfers"]
{ background-image: url("images/ja/dark/settings/transfers.png"); }
html[lang="ja"] section#the_settings figure.image img#settings-screenshot-tools:hover,
html[lang="ja"] section#the_settings figure.image.loaded[data-pane="tools"]
{ background-image: url("images/ja/dark/settings/tools.png"); }

@media (prefers-color-scheme: light)
{
    /* English Light Mode */
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="all"]
    { background-image: url("images/en/light/settings/all.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-general:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="general"]
    { background-image: url("images/en/light/settings/general.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-git-accounts:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="git-accounts"]
    { background-image: url("images/en/light/settings/git-accounts.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-sync:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="sync"]
    { background-image: url("images/en/light/settings/sync.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-workspace:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="workspace"]
    { background-image: url("images/en/light/settings/workspace.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-behaviors:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="behaviors"]
    { background-image: url("images/en/light/settings/behaviors.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-files:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="files"]
    { background-image: url("images/en/light/settings/files.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-editor:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="editor"]
    { background-image: url("images/en/light/settings/editor.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-git:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="git"]
    { background-image: url("images/en/light/settings/git.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-theme:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="theme"]
    { background-image: url("images/en/light/settings/theme.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-key-bindings:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="key-bindings"]
    { background-image: url("images/en/light/settings/key-bindings.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-terminal:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="terminal"]
    { background-image: url("images/en/light/settings/terminal.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-servers:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="servers"]
    { background-image: url("images/en/light/settings/servers.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-keys:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="keys"]
    { background-image: url("images/en/light/settings/keys.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-transfers:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="transfers"]
    { background-image: url("images/en/light/settings/transfers.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-tools:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="tools"]
    { background-image: url("images/en/light/settings/tools.png"); }

    /* Japanese Light Mode */
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="all"]
    { background-image: url("images/ja/light/settings/all.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-general:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="general"]
    { background-image: url("images/ja/light/settings/general.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-git-accounts:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="git-accounts"]
    { background-image: url("images/ja/light/settings/git-accounts.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-sync:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="sync"]
    { background-image: url("images/ja/light/settings/sync.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-workspace:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="workspace"]
    { background-image: url("images/ja/light/settings/workspace.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-behaviors:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="behaviors"]
    { background-image: url("images/ja/light/settings/behaviors.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-files:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="files"]
    { background-image: url("https://nova.app/images/ja/light/settings/files.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-editor:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="editor"]
    { background-image: url("images/ja/light/settings/editor.png"); }
    html[lang="en"] section#the_settings figure.image img#settings-screenshot-git:hover,
    html[lang="en"] section#the_settings figure.image.loaded[data-pane="git"]
    { background-image: url("images/ja/light/settings/git.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-theme:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="theme"]
    { background-image: url("images/ja/light/settings/theme.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-key-bindings:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="key-bindings"]
    { background-image: url("images/ja/light/settings/key-bindings.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-terminal:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="terminal"]
    { background-image: url("images/ja/light/settings/terminal.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-servers:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="servers"]
    { background-image: url("images/ja/light/settings/servers.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-keys:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="keys"]
    { background-image: url("images/ja/light/settings/keys.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-transfers:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="transfers"]
    { background-image: url("images/ja/light/settings/transfers.png"); }
    html[lang="ja"] section#the_settings figure.image img#settings-screenshot-tools:hover,
    html[lang="ja"] section#the_settings figure.image.loaded[data-pane="tools"]
    { background-image: url("images/ja/light/settings/tools.png"); }
}

section#debugging figure.image
{
    width: 110rem;
    height: calc(.766174 * 110rem);
    left: -10.7rem;
}

section#much_more
{
    position: relative;
    overflow: hidden;
    max-height: 50rem;
    transition: max-height 300ms ease-in-out;
}

input#moreList
{
    position: absolute;
    visibility: hidden;
    pointer-events: none;
}

input#moreList:checked+section#much_more
{
    max-height: 200vh;
}

section#much_more::after
{
    position: absolute;
    pointer-events: none;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(transparent 0%, transparent 75%, var(--background));
    transition: opacity 300ms ease-in-out;
}

input#moreList:checked+section#much_more::after
{
    opacity: 0;
}

section#much_more label#moreToggle
{
    position: absolute;
    left: 0;
    padding: 0.4em 1em 0.6em 1em;
    border-radius: 1em;
    display: inline-block;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--purple);
    transition: opacity 300ms ease-in-out;
    z-index: 10;
    cursor: pointer;
    font-weight: 600;
}

input#moreList:checked+section#much_more label#moreToggle
{
    opacity: 0;
    pointer-events: none;
}

section#much_more ul
{
    list-style: none;
    padding: 0;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    font-size: 1.1em;

}

section#much_more ul:nth-of-type(2)
{
    font-size: 0.8em;
}

section#much_more ul:nth-of-type(3)
{
    font-size: 0.7em;
}

section#much_more li
{
    display: inline;
}

section#much_more li:nth-of-type(odd)
{
    font-weight: 700;
}

section#much_more li:before
{
    content: "•";
    font-weight: 400 !important;
    display: inline;
    margin: 0 0.05em;
}

section#much_more li:first-child:before
{
    display: none;
}

footer
{
    text-align: center;
    font-weight: 400;
    font-size: 1em;
    margin: 3em auto;
}

footer p
{
    margin: 0 auto;
}

footer a
{
    display: inline-block;
    padding-top: 14rem;
    margin-top: -14rem;
}

footer:before
{
    display: block;
    content: "";
    height: 12rem;
    width: 100%;
    margin: 1rem auto;
    background-image: url("images/panic-logo.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}


/* Buy Page */

div.full-width
{
    background: var(--deepbackground);
    margin: 2rem 0;
    padding: 2rem 0;
    display: grid;
    place-items: center;
}

ul.misc-links
{
    font-size: 0.85em;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 0.5em;
}

ul.misc-links a
{
    text-decoration: underline;
}

li.misc-link#climate a
{
    text-decoration: none;
    color: var(--green);
}

li#climate
{
    margin-bottom: 1em;
    font-weight: 300;
    left: -0.45em;
    position: relative;
    text-indent: -0.45em;
    margin-left: 0.45em;
}

li#climate sub
{
    font-size: 0.55em;
}

li.misc-link
{
    display: grid;
    margin: 0.35em auto;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
}

li.misc-link h3,
li.misc-link p
{
    font-size: inherit;
    line-height: 1.2em;
    grid-row: 1 / span 1;
    margin: 0;
}

li.misc-link h3
{
    font-weight: 400;
}

li.misc-link strong
{
    font-weight: 500;
}

li.misc-link p
{
    padding-left: 0.35em;
    color: #b2b2b2;
}

li.misc-link strong:before
{
    margin-right: 0.35em;
}

li.misc-link h3:before,
li.misc-link strong:before
{
    content: "";
    display: inline-block;
    position: relative;
    top: 0.05em;
    height: 1em;
    width: 1.25em;
    background-repeat: no-repeat;
    background-position: 0% 50%;
    background-size: 1em;
}

li.misc-link strong:before
{
    background-size: contain;
    top: 0.4em;
    height: 1.5em;
    width: 1.5em;
}

li#climate strong:before { background-image: url("images/climate-animation.gif") }
li#volume-license h3:before { background-image: url("images/misc-volume-license.svg") }
li#free-upgrade h3:before { background-image: url("images/misc-free-upgrade.svg") }
li#manage-account h3:before { background-image: url("images/misc-manage-account.svg") }
li#questions h3:before { background-image: url("images/misc-questions.svg") }

form
{
    display: grid;
    grid-template-columns: repeat(9, 1fr);
}

fieldset
{
    display: contents;
    border: 0;
}

input,
textarea,
select
{
    border: 0.4rem solid transparent !important;
    outline: 0;
    border-radius: 0.6rem;
    -webkit-appearance: none;
    font-size: 0.525em;
    /* opacity: 0.8;
    transition-property: opacity;
    transition-duration: 200ms;
    transition-timing-function: ease-in-out; */
}

input:focus,
textarea:focus,
select:focus
{
    border-color: var(--brightpurple) !important;
    opacity: 1;
}

div.big-radio,
div.big-checkbox
{
    border-radius: 0.6rem;
    border: 0.5rem solid var(--lightpurple);
    background-color: transparent;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    opacity: 0.45;
    margin: 2rem 0 !important;
    transition-property: opacity;
    transition-duration: 250ms;
    transition-timing-function: linear;
    position: relative;
}

form#buy-form[data-selected="buy"] div.big-radio.buy,
form#buy-form[data-selected="upgrade"] div.big-radio.upgrade,
div.big-checkbox.selected
{
    background-color: var(--darkpurple);
    opacity: 1;
}

form input#quantity,
form input#promoCode
{
    display: none;
}

div#card-element
{
    border: 0.4rem solid transparent !important;
    outline: 0;
    border-radius: 0.6rem;
    -webkit-appearance: none;
    padding: 0.5em;
    background-color: white;
}

div.big-radio label.purchase-option,
div.big-checkbox label.purchase-option
{
    display: block;
    display: flex;
    align-items: center;
    font-size: 1.25em;
    cursor: pointer;
    font-weight: 700;
}

div.big-radio.upgrade label.purchase-option
{
    font-weight: 400;
}

div#upgrade-actions
{
    justify-self: center;
}

label.upgrade-serial
{
    display: flex;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

div.big-radio label.upgrade-serial input
{
    width: 17em;
    margin-left: 1rem;
    font-size: 1em;
    text-align: left;
    padding: 0.25em 0.25em;
    font-family: monospace;
    text-transform: uppercase;
    color: var(--background);
    display: block;
}

a.upgrade-serial
{
    text-align: center;
    display: block;
    font-size: 0.85em;
    text-decoration: underline;
}

label.upgrade-serial:after
{
    display: inline-block;
    content: "";
    background-position: 50% 50%;
    background-size: contain;
    background-repeat: no-repeat;
    width: 1em;
    height: 1em;
    opacity: 0;
    position: absolute;
    right: -1em;
}

span#serial-response
{
    margin: 1em auto;
    display: block;
    text-align: center;
    color: var(--yellow);
}

label.upgrade-serial.looking:after
{
    background-image: url("images/spinner-48.gif");
    opacity: 1;
}

label.upgrade-serial.success:after
{
    background-image: url("images/check-circle.svg");
    opacity: 1;
}

/* Promo code */
#promoLabel.valid:before,
#promoLabel.invalid:before
{
    display: inline-block;
    opacity: 1;
    content: "";
    background-position: 50% 50%;
    background-size: contain;
    background-repeat: no-repeat;
    width: 1em;
    height: 1em;
    position: relative;
    top: .1em;
    right: .3em;
}

#promoLabel.valid:before
{
    background-image: url("images/check-circle.svg");
}

#promoLabel.invalid:before
{
    opacity: 0;
    width: 0;
}

#promoLabel.invalid
{
    color: var(--yellow);
}

/* Form elements */

div.big-radio input,
div.big-checkbox input,
input#optout
{
    display: inline-block;
    margin-right: 0.25em;
    width: 3em;
    height: 3em;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain, 0;
    transition-property: background-size;
    transition-duration: 100ms;
    transition-timing-function: ease-in-out;
    /* align-self: stretch; */
}

div.big-radio input:checked,
div.big-radio.selected input
{
    background-size: contain, 1.25em;
}

div.big-checkbox input:checked,
div.big-checkbox.selected input,
input#optout:checked
{
    background-size: contain, 1.5em !important;
}

div.big-radio input
{
    background-image: url("images/form-radio.svg"), url("images/form-radio-dot.svg");
}

div.big-checkbox input,
input#optout
{
    background-image: url("images/form-checkbox.svg"), url("images/form-checkbox-check.svg")
}

div.big-radio p,
div.big-radio ul,
div.big-checkbox ul,
div.big-radio label.upgrade-serial
{
    font-size: 0.75em;
    margin: 0.5em 0;
}

div.big-radio ul,
div.big-checkbox ul
{
    padding: 0;
}


div.big-radio p,
div.big-radio ul,
div.big-checkbox ul,
div.big-radio label.upgrade-serial
{
    opacity: 0.77;
}

div.labeled-text,
div.big-radio,
div.big-checkbox,
div.file-attachment,
div.textarea,
div.submit-button,
div.labeled-select
{
    grid-column: 1 / span 9;
    margin: 0.25em 0;
}

div.labeled-text label,
div.labeled-text input,
div.textarea label,
div.textarea textarea,
div.file-attachment label,
div.file-attachment input,
div.labeled-select label,
div.labeled-select select
{
    display: block;
    width: 100%;
}

div.labeled-text label,
div.textarea label,
div.file-attachment label,
div.labeled-select label
{
    font-size: 0.85em;
    color: var(--midground);
    margin-bottom: .25em
}

div.labeled-text input,
div.textarea textarea,
div.labeled-select select
{
    font-size: 1em;
    padding: 0.5em;
    font-family: inherit;
}

div.textarea p,
div.textarea ul
{
    color: var(--cyan);
}

p.helper-text
{
    margin: 2rem 0 0 0;
    padding: 0;
    grid-column: 1 / span 4;
    align-self: center;
    text-align: left;
}

form.get-help,
div.triaged,
.visually-hidden
{
    visibility: hidden;
    z-index: -10;
    position: absolute;
    left: -100vw;
}

body[data-triage="issue"] form.get-help,
body[data-triage="serial"] div.triaged#serial-lookup,
body[data-triage="library"] div.triaged#visit-library,
body[data-triage="subscription"] div.triaged#subscription-chat
{
    visibility: visible;
    z-index: unset;
    position: relative;
    left: 0;
}

.hidden
{
    display: none;
}

div.textarea textarea
{
    height: 20em;
    padding: 0.5em;
}

#container-city
{
    grid-column: 1 / span 5;
    margin-right: 0.25em;
}

#container-state
{
    grid-column: 6 / span 4;
}

#container-country
{
    grid-column: 1 / span 6;
    margin-right: 0.25em;
}

#container-zip
{
    grid-column: 7 / span 3;
}

/* Apple Pay Button */
@supports (-webkit-appearance: -apple-pay-button) {
    .apple-pay-button-with-text {
        display: inline-block;
        -webkit-appearance: -apple-pay-button;
        -apple-pay-button-type: buy;
    }
    .apple-pay-button-with-text > * {
        display: none;
    }
    .apple-pay-button-black-with-text {
        -apple-pay-button-style: black;
    }
    .apple-pay-button-white-with-text {
        -apple-pay-button-style: white;
    }
    .apple-pay-button-white-with-line-with-text {
        -apple-pay-button-style: white-outline;
    }
}

@supports not (-webkit-appearance: -apple-pay-button) {
    .apple-pay-button-with-text {
        --apple-pay-scale: 1; /* (height / 32) */
        display: inline-flex;
        justify-content: center;
        font-size: 12px;
        border-radius: 5px;
        padding: 0px;
        box-sizing: border-box;
        min-width: 200px;
        min-height: 32px;
        max-height: 64px;
    }
    .apple-pay-button-black-with-text {
        background-color: black;
        color: white;
    }
    .apple-pay-button-white-with-text {
        background-color: white;
        color: black;
    }
    .apple-pay-button-white-with-line-with-text {
        background-color: white;
        color: black;
        border: .5px solid black;
    }
    .apple-pay-button-with-text.apple-pay-button-black-with-text > .logo {
        background-image: -webkit-named-image(apple-pay-logo-white);
        background-color: black;
    }
    .apple-pay-button-with-text.apple-pay-button-white-with-text > .logo {
        background-image: -webkit-named-image(apple-pay-logo-black);
        background-color: white;
    }
    .apple-pay-button-with-text.apple-pay-button-white-with-line-with-text > .logo {
        background-image: -webkit-named-image(apple-pay-logo-black);
        background-color: white;
    }
    .apple-pay-button-with-text > .text {
        font-family: -apple-system;
        font-size: calc(1em * var(--apple-pay-scale));
        font-weight: 300;
        align-self: center;
        margin-right: calc(2px * var(--apple-pay-scale));
    }
    .apple-pay-button-with-text > .logo {
        width: calc(35px * var(--scale));
        height: 100%;
        background-size: 100% 60%;
        background-repeat: no-repeat;
        background-position: 0 50%;
        margin-left: calc(2px * var(--apple-pay-scale));
        border: none;
    }
}
/* End Apple Pay Button */

div#payment-method,
div#form-messages,
div#submit-wrapper
{
    grid-column: 1 / span 9;
    display: grid;
    grid-template-rows: auto;
    justify-items: stretch;
    text-align: center;
}

div#paymentRequestButton {
    border: 0.3rem solid white;
    border-radius: 3em;
    margin: 1em auto;
}

div.payment-button
{
    display: inline-block;
    cursor: pointer;
    border: 0.3rem solid transparent;
    margin: 3rem auto;
    color: black;
    background: white;
    border: 0.3rem solid white;
    line-height: 1em;
    text-align: center;
    font-size: 1.5em;
    font-weight: 400;
    padding: 0 1.5em;
}

div.payment-button span.text
{
    position: relative;
    top: -0.075em;
}

div.payment-button span.text em
{
    font-style: normal;
}

div.apple-pay-button em
{
    font-weight: 400;
    font-size: 1.1em;
}

div.paypal-button em
{
    background-image: url("images/paypal-logo.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    color: transparent;
    position: relative;
    left: 0.5rem;
    width: 15rem;
    display: inline-block;
}

div.payment-button.apple-pay-button
{
    grid-row: 1;
    grid-column: 1 / span 4;
    font-family: -ui-sans-serif, -apple-system, sans-serif;
    line-height: 2em;
    box-shadow: 0 0 1em var(--brightpurple);
}

#browserpayLogo img
{
    height: 1.1em;
    margin-bottom: -.25em;
}

div.paypal-button
{
    grid-row: 2;
    grid-column: 1 / span 2;
}

div.credit-card-button
{
    grid-row: 2;
    grid-column: 3 / span 2;
}

#submit-wrapper input[type=submit],
div.submit-button input[type=submit],
a.button
{
    cursor: pointer;
    border: 0.3rem solid transparent;
    margin: 1em auto;
    color: black;
    background: white;
    border: 0.3rem solid white;
    border-radius: 3em;
    width: auto;
    display: inline-block;
    line-height: 1em;
    text-align: center;
    font-size: 1.5em;
    font-weight: 400;
    padding: 0.5em 1.5em;
}

a.button
{
    padding: 0.35em 1.5em 0.5em 1.5em;
    text-decoration: none !important;
    margin-bottom: 0;
}

#help-page a.button
{
    display: inline-block;
    width: intrinsic;
    font-size: 0.85em;
    margin: 0 auto;
    padding: 0.15em 0.5em 0.25em 0.5em;
    background-color: var(--deeppurple);
    border-color: var(--deeppurple);
    color: var(--foreground);
}

div.submit-button
{
    text-align: center;
}

div.submit-button input[type=submit]
{
    display: inline-block;
    justify-self: center;
    background-color: var(--purple);
    color: var(--foreground);
    font-family: inherit;
    font-weight: 600;
    padding: 0.25em 2em 0.5em 2em;
    width: intrinsic;
}

#help-page a.button,
#help-page div.submit-button input,
div.file-attachment label[for="files"],
nav.top li#download a,
nav.top li#buy a

{
    border: 0.3rem solid transparent !important;
}

#help-page a.button:hover,
#help-page div.submit-button input:hover,
div.file-attachment label[for="files"]:hover,
nav.top li#download a:hover,
nav.top li#buy a:hover
{
    border: 0.3rem solid var(--foreground) !important;
}


label#label-total
{
    font-size: 1.4em;
    color: var(--foreground);
    margin: 0.75em auto 0.5em auto;
    font-weight: 700;
}

#order-total em
{
    font-style: normal;
    color: var(--yellow);
    text-transform: uppercase;
}

#order-tax
{
    display: block;
    font-size: 0.5em;
    font-weight: normal;
    opacity: 0.75;
    margin: 0.25em 0;
}

#order-tax em
{
    font-style: normal;
    text-transform: uppercase;
}

div.popover
{
    padding: 0.5em 0.5em 0.75em 0.5em;
    border-radius: 0.8rem;
    display: inline-block;
    font-size: 0.65em;
    opacity: 0;
    transform: translateY(5rem) translateX(-50%);
    transition-property: transform, opacity;
    transition-duration: 250ms;
    transition-delay: 0;
    transition-timing-function: ease-in-out;
    position: absolute;
    left: 50%;
    visibility: hidden;
}

div.popover.revealed
{
    transform: translateY(0rem) translateX(-50%);
    opacity: 1;
    visibility: visible;
}

div.popover p
{
    position: relative;
    margin: 0;
    padding: 0;
    text-align: center;
    opacity: 1;
    font-size: inherit;
}

div.popover:after
{
    position: absolute;
    display: block;
    width: 1.25em;
    height: 1.25em;

    content: "";
    left: 50%;
    bottom: -1em;
    transform: rotate(45deg) translateX(-50%);
    /* border: 1px solid var(--red); */
    border-top-color: transparent;
    border-left-color: transparent;
    z-index: 20;
}

div.popover#upgrade-error
{
    background: var(--foreground);
    color: var(--red);
    top: -5em;
    box-shadow: 0 0 5rem var(--brightpurple);
}

div.popover#upgrade-error strong
{
    color: var(--red);
}

div.popover#upgrade-error:after
{
    background-image: -webkit-linear-gradient(-45deg, transparent 0%, transparent 50%, var(--blue) 50%, var(--blue) 100%);
    background: var(--foreground);
}

/*
canvas#starfield,
nav.top,
header,
hr,
main,
footer
{
    transition-property: filter;
    transition-duration: 125ms;
    transition-timing-function: ease;
}

body.modal canvas#starfield,
body.modal nav.top,
body.modal header,
body.modal hr,
body.modal main,
body.modal footer
{
    filter: blur(1rem);

}
*/

div.modal
{
    position: fixed;
    background: rgba(0,0,0,0.75);
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    display: block;
    visibility: hidden;
    z-index: -1;
}

body.modal div.modal
{
    display: block;
    visibility: visible;
    z-index: 1000;
}

div.modal div#downloaded
{
    padding: 0.5em;
    border-radius: 0.8rem;
    display: inline-block;
    position: relative;
    top: 30%;
    left: 50%;
    transform: translateX(-50%) translateY(-30%);
    background: var(--darkblue);
    color: var(--foreground);
    width: 20em;

    max-width: 100vw;
    font-size: 1em;

    transition-property: opacity;
    transition-duration: 250ms;
    transition-timing-function: ease-in-out;

    opacity: 0;
}

body.modal div.modal div#downloaded
{
    opacity: 1;
}

div#downloaded h3
{
    font-size: 1.8em;
    margin: 0.5em auto;
    text-align: center;
}

div#downloaded h3:before
{
    content: "";
    display: block;
    height: 2em;
    width: 100%;
    margin: 1rem auto;
    background-image: url("images/download.svg");
    background-position: 50% 0%;
    background-repeat: no-repeat;
    background-size: contain;
}

div#downloaded p,
div#downloaded ul
{
    font-weight: 400;
    margin: 1em auto;
    font-size: inherit;
    line-height: 1.2em;
}

div#downloaded p
{
    color: var(--cyan);
    font-weight: 600;
    text-align: center;
}

div#downloaded p.smallprint
{
    color: var(--foreground);
    font-weight: 400;
    font-size: 0.65em;
}

div#downloaded ul
{
    font-size: 0.625em;
    list-style: none;
    text-align: left;
    margin: 1em auto;
    padding: 0 0 0 4.25em;
    display: inline-block;
    background-image: url("images/macos.svg");
    background-position: 0% 0%;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#downloaded a
{
    text-decoration: underline;
}

section.bought
{
    text-align: center;
    padding: 0;
    margin: -1em auto;
    border-radius: 0.6rem;
    border: 0.5rem solid transparent;
    max-width: 68rem;
}

section.bought#unlock
{
    background: var(--deeppurple);
    border-color: var(--purple);
    padding: 1em;
    margin: 3em auto;
}

section.bought#unlock code
{
    display: block;
    margin: 1em auto;
    color: var(--lightyellow);
}

section.bought h3
{
    margin: 0;
}

section.bought h3:before
{
    content: "1";
    display: inline-block;
    padding: 0em 0.5em 0.25em 0.5em;
    background: var(--blue);
    color: var(--foreground);
    margin: 0 1rem 0 0;
    border-radius: 100%;
    font-size: 1.2em;
}

section.bought#unlock h3:before { content: "1"; }
section.bought#receipt h3:before { content: "2"; }
section.bought#autorenew h3:before,
section.bought#one-time-charge h3:before { content: "3"; }

section.bought p a,
section h3 a,
section p a
{
    text-decoration: underline;
}

button#pauseButton
{
    position: absolute;
    top: 1em;
    left: 1em;
    background-color: var(--midground);
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    z-index: 100;
    border-radius: 100%;
    display: block;
    background-image: url("images/pause.svg");
    background-position: center;
    background-repeat: no-repeat;
    padding: 1.5em;
    background-size: 0.85em;
    width: 2em;
    height: 2em;
    cursor: pointer;
    transition-property: transform;
    transition-duration: 250ms;
    transition-timing-function: ease-in-out;
    outline: none;
}

button#pauseButton:hover
{
    transform: scale(1.1);
}

button#pauseButton.paused
{
    background-image: url("images/resume.svg");
    background-size: 1.2em;
}



/* Start auto-resizing */
@media screen and (min-width: 240px)
{
    html { font-size: 1vw; }
    body { font-size: 4rem; }
    html[lang="ja"] body { font-size: 3.6rem; }

    header p, header h2 { font-size: 2em; }

    #downloaded { font-size: 0.4em; }

    nav.top, nav.top.scrolled { font-size: 1.05em; }
    nav.top ul { justify-content: center; }
    nav.top span.hideable { display: none; }
    nav.top li#download,
    nav.top.scrolled li#download { position: static; opacity: 1;}

    li.misc-link { display: block; }
    li.misc-link p { padding-left: 0; margin: 0.15em 0 1em 0; }
    li.misc-link#climate a { padding-left: 0; margin: 0.15em 0 1em 0; }
    li.misc-link#climate strong { display: block; }

}

/* Start auto-resizing */
@media screen and (min-width: 620px)
{
    body { font-size: 2.6rem; }
    html[lang="ja"] body { font-size: 2.4rem; }

    header p, header h2 { font-size: 3.2em; }

    #downloaded { font-size: 0.65em; }

    nav.top ul { justify-content: flex-end; }
    nav.top span.hideable { display: inline; }

    nav.top li#download { position: absolute; }
    nav.top, nav.top.scrolled { font-size: 1.35em; }
    nav.top.scrolled li#download { position: absolute; }

    li.misc-link { display: grid; }
    li.misc-link p { padding-left: 0.15em; margin: 0; }
    li.misc-link#climate a { padding-left: 0.15em; margin: 0; }
    li.misc-link#climate strong { display: inline; }

}

/* Stop auto-resizing */
@media screen and (min-width: 1000px)
{
    html { font-size: 10px; }
}

/* 添加闪光效果 */
/* .number-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0) 70%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    animation: flash 1s ease-out forwards;
} */

@keyframes flash {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes gradientPulse {
    0% {
        background-size: 200% 200%;
    }
    50% {
        background-size: 250% 250%;
    }
    100% {
        background-size: 200% 200%;
    }
}

/* Lottery Title Styles */
.lottery-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease;
}

.lottery-title.show {
    opacity: 1;
}

.lottery-title.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
}

.lottery-title .main-title {
    font-size: 48px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    letter-spacing: 4px;
    filter: drop-shadow(0 0 10px rgba(123, 167, 255, 0.4));
    transform-style: preserve-3d;
    perspective: 1000px;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #7aa7ff 20%,
        #4f6df5 40%,
        #fc466b 60%,
        #3f5efb 80%,
        #ffffff 100%
    );
    background-size: 1000% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: gradientFlow 60s linear infinite;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lottery-title .main-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #fc466b 0%,
        #3f5efb 30%,
        #7aa7ff 50%,
        #4f6df5 70%,
        #fc466b 100%
    );
    background-size: 1000% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: gradientFlow 30s linear infinite reverse;
    opacity: 0.7;
    mix-blend-mode: plus-lighter;
}

.lottery-title .main-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background-image: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(123, 167, 255, 0.1) 50%,
        rgba(79, 109, 245, 0.1) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transform: translateZ(-10px);
    filter: blur(8px);
    opacity: 0.8;
}

.lottery-title .sub-title {
    font-size: 24px;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 8px;
    position: relative;
    text-shadow: 
        0 0 20px rgba(123, 167, 255, 0.5),
        0 0 40px rgba(252, 70, 107, 0.3);
    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(123,167,255,1) 50%,
        rgba(255,255,255,1) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: 
        labelPulse 3s ease-in-out infinite,
        labelMove 4s linear infinite;
    transform-style: preserve-3d;
}

.winner-item {
    opacity: 0;
    transform: translateY(-200vh);
    perspective: 1000px;
}

.winner-item.show {
    opacity: 1;
    animation: dropAndBounce 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes dropAndBounce {
    0% { 
        transform: translateY(-200vh) scale(0) rotate(20deg);
        opacity: 0;
    }
    60% { 
        transform: translateY(0) scale(1.3) rotate(0deg);
        opacity: 1;
    }
    75% { 
        transform: translateY(-30px) scale(0.9) rotate(-5deg);
    }
    85% { 
        transform: translateY(0) scale(1.1) rotate(3deg);
    }
    92% { 
        transform: translateY(-15px) scale(0.95) rotate(-2deg);
    }
    100% { 
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.winner-card {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.winner-card.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.winner-card.shake {
    animation: impactShake 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

@keyframes impactShake {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-51%, -50%) scale(1.02); }
    50% { transform: translate(-49%, -50%) scale(0.99); }
    75% { transform: translate(-50%, -51%) scale(1.01); }
}

.winner-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    transform: translateZ(-100px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 30px rgba(123, 167, 255, 0.3),
        0 0 60px rgba(252, 70, 107, 0.2);
}

.winner-item.show .winner-avatar {
    transform: translateZ(0);
}

.winner-nickname {
    color: #fff;
    font-size: 16px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    transition-delay: 0.2s;
    text-shadow: 
        0 0 10px rgba(123, 167, 255, 0.5),
        0 0 20px rgba(252, 70, 107, 0.3);
}

.winner-item.show .winner-nickname {
    opacity: 1;
    transform: translateY(0);
}

.congrats-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #7aa7ff 25%,
        #fc466b 50%,
        #3f5efb 75%,
        #ffffff 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: gradientFlow 8s linear infinite;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    text-shadow: 
        0 0 20px rgba(123, 167, 255, 0.2),
        0 0 40px rgba(252, 70, 107, 0.1);
}

.winner-card.show .congrats-title {
    opacity: 1;
    transform: translateY(0);
}

.prize-level {
    font-size: 32px;
    color: #fff;
    margin: -20px 0 20px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    transition-delay: 0.1s;
    text-shadow: 
        0 0 15px rgba(123, 167, 255, 0.4),
        0 0 30px rgba(252, 70, 107, 0.2);
}

.winner-card.show .prize-level {
    opacity: 1;
    transform: translateY(0);
}

@keyframes flyIn {
    0% { 
        transform: translate3d(0, 0, -2000px) scale(0.1);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    80% { 
        transform: translate3d(0, 0, 100px) scale(1.2);
        opacity: 0.8;
    }
    90% { 
        transform: translate3d(0, 0, 50px) scale(0.9);
        opacity: 0.9;
    }
    100% { 
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
}

.winner-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    perspective: 2000px;
    transform-style: preserve-3d;
}

.winner-item {
    opacity: 0;
    transform: translate3d(0, 0, -2000px) scale(0.1);
    transform-style: preserve-3d;
}

.winner-item.show {
    animation: flyIn 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.winner-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 30px rgba(123, 167, 255, 0.3),
        0 0 60px rgba(252, 70, 107, 0.2);
    backface-visibility: hidden;
}

.winner-nickname {
    color: #fff;
    font-size: 16px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 
        0 0 10px rgba(123, 167, 255, 0.5),
        0 0 20px rgba(252, 70, 107, 0.3);
    backface-visibility: hidden;
}
