:root {
    --pane-background: #eee5e9;
    --component-base-color: #ffffff;
    --component-hover-background: rgb(250, 211, 252) !important;
    --component-hover-lighter-background: rgb(252, 231, 253) !important;
    --component-focus-background: rgb(244, 183, 247);
    --component-active-background: rgb(192, 58, 200);
    --component-border-radius: 0.5rem;

    font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;

    color: #222;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

* {
    outline: none;
}

html,
body {
    min-height: 100vh;
}

body,
body::backdrop,
body:fullscreen {
    margin: 0;
    background: linear-gradient(
        90deg,
        rgba(46, 46, 175, 1) 0%,
        rgba(37, 79, 191, 1) 42%,
        rgba(0, 170, 255, 1) 100%
    );
}

body::before {
    content: " ";
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.5;
    background: var(--scribble-background) repeat;
    background-size: 400px 400px;
    background-repeat: repeat;
    z-index: -1;
}

footer,
.help-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

footer {
    padding: 0.1rem;
    background-color: lightslategray;
    color: white;
}

.help-footer {
    flex-wrap: wrap;
}

a:link,
a:visited {
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

h1,
h2 {
    margin: 0;
    text-align: center;
    color: rgb(248, 148, 164);
}

h1 {
    font-size: 6rem;
}

h2 {
    font-size: 4rem;
}

ul {
    margin: 0;
}

select,
input,
button,
textarea {
    background-color: var(--component-base-color);
    color: inherit;
    border-radius: var(--component-border-radius);
    border: 2px hidden;
}

input:hover,
button:hover,
select:hover,
textarea:hover {
    background-color: var(--component-hover-background);
}

input:focus,
button:focus,
select:focus,
textarea:focus {
    background-color: var(--component-focus-background);
}

button:active {
    background-color: var(--component-active-background);
}

input,
select {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

textarea {
    padding-left: 0.4rem;
    padding-top: 0.2rem;
    min-width: 0;
    resize: none;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.noscript {
    display: flex;
    font-size: 2.5rem;
    font-weight: bold;
    justify-content: center;
    border-bottom: 1rem solid black;
    padding: 10px;
}

.game-signature {
    margin: 0.75rem auto 1rem;
    color: #fff;
    text-align: center;
}

.game-signature a {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    padding: 0.45rem 0.9rem;
    border: 1px solid #fff1bd;
    border-radius: 999px;
    background: #ffda80;
    color: #24154d;
    font-weight: 600;
    text-decoration: none;
}

.game-signature a:hover {
    background: #ffe9aa;
}

.game-signature a:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

.speedcopie-promo {
    box-sizing: border-box;
    width: min(100%, 44rem);
    margin: 0 auto;
    padding: 0.5rem 0.75rem 0.75rem;
}

.promo-controls:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.promo-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    min-height: 3.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.6rem;
    background: #f5f2ff;
    color: #251747;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.promo-card:focus-visible,
.promo-toggle:focus-visible {
    outline: 3px solid #ffc96e;
    outline-offset: 2px;
}

.promo-card small {
    display: block;
    margin-top: 0.1rem;
    color: #514468;
}

.promo-icon,
.promo-image {
    width: 3rem;
    height: 3rem;
    border-radius: 0.45rem;
    background: #e8dfff;
}

.promo-icon:not([hidden]) {
    display: grid;
    place-items: center;
    font-size: 1.45rem;
}

.promo-image {
    object-fit: cover;
}

.promo-toggle {
    min-height: 44px;
    padding-inline: 0.6rem;
    border: 1px solid #ded7ff;
    border-radius: 0.45rem;
    background: #31245d;
    color: white;
    cursor: pointer;
}

