@font-face {
    font-family: "MOSKO MAPPA";
    src: url("fonts/MOSKOMAPPA.otf") format("opentype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

html, body {
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #c0ff00, #90f020);
    overflow: hidden;
    /* cursor: none; */ /* Commented so default cursor is visible */
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2em;
    z-index: 10;
    pointer-events: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "MOSKO MAPPA", sans-serif;
    font-size: 28px;
    pointer-events: all;
}

nav button {
    border: none;
    outline: none;
    color: #fff;
    background-color: #000;
    border-radius: 0.25em;
    padding: 0.65em 1em 0.25em 1em;
    text-transform: uppercase;
    font-family: "MOSKO MAPPA", sans-serif;
    font-size: 24px;
    pointer-events: all;
}

.board {
    width: 100vw;
    height: 100vh;
    padding: 0.25em;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.row {
    flex: 1;
    display: flex;
    gap: 0.25em;
}

.tile {
    flex: 1;
    position: relative;
    transform-style: preserve-3d;
    outline: none; /* ✅ Prevents focus outline */
}

.tile-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.5em;
    overflow: hidden;
}

.tile-front {
    background-color: darkslateblue;
    transform: rotateX(180deg);
}

.tile-front::before,
.tile-back::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 600% 600%;
    background-position: inherit;
    clip-path: inset(0 round 0.25em);
}

.tile-front::before {
    background-image: url("2.png");
}

.tile-back::before {
    background-image: url("1.png");
}

/* Circular cursor-following text */
.circle-text {
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: rotate 6s linear infinite;
    z-index: 1000;
}

svg text {
    font-family: sans-serif;
    font-size: 16px;
    fill: black;
    letter-spacing: 2px;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
