:root {
    --ui-team-color: #0a2ecb;
    --ui-accent: white !important;
    --ui-background: var(--ui-team-color) !important;
    --base-background: #9c3938 !important;
    --accent-color: #ffbd29;
    --bg-color: black;
    --letters-color: white;
}

@font-face {
    font-family: 'formula';
    src: url('./assets/fonts/formula.otf') format('otf');
}

html {
    -ms-touch-action: none;
}

body,
canvas,
div {
    display: block;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    margin: 0;
    cursor: default;
    color: #000000;
    background-color: #000000;
    text-align: center;
    font-family: Helvetica, Verdana, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#game-div {
    background-size: cover;
    background-position: center;
}

#loading {
    position: fixed;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    max-width: 50%;
    max-height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

svg {
    width: 100%;
    height: 100%;
    position: absolute;
    max-width: 355px;
    max-height: 341px;
}

#letters-svg {
    fill: var(--letters-color);
}

#outline-svg path {
    stroke: var(--bg-color);
    stroke-width: 10;
    fill: none;
    transition: stroke-dashoffset 0.01s ease-in-out;
}

#letters-svg {
    transform-origin: center center;
    animation: scale 250ms ease-in-out forwards;
}

@keyframes scale {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

canvas {
    opacity: 0;
    animation: show 0.5s ease-in-out forwards;
}

@keyframes show {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Toast styles */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}
.toast {
    min-width: 220px;
    max-width: 320px;
    background: white;
    color: var(--ui-team-color);
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 12px;
    padding: 16px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: auto;
}
.toast.show {
    opacity: 1;
    transform: translateX(0);
}
