body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 56px;
    background-color: #3e2723;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4"%3E%3Cpath d="M1 1h2v2H1z" fill="%232b1a16" fill-opacity="0.5"/%3E%3C/svg%3E');
    color: #ffb6c1;
}

.container {
    text-align: center;
    background: #4e342e;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4"%3E%3Cpath d="M1 1h2v2H1z" fill="%233e2723" fill-opacity="0.5"/%3E%3C/svg%3E');
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
    color: #ffb6c1;
}

h1 {
    margin-top: 0;
    color: #ff69b4;
    text-shadow: 1px 1px 2px #2b1a16;
}

p {
    color: #ffb6c1;
}

a {
    color: #ff69b4;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ff69b4;
    color: #3e2723;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4"%3E%3Cpath d="M1 1h2v2H1z" fill="%23ff1493" fill-opacity="0.1"/%3E%3C/svg%3E');
}

button:hover {
    background-color: #ff1493;
    transform: scale(1.02);
}

#copyBtn {
    padding: 5px 10px;
    font-size: 12px;
}

.scoreboard {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 305px;
}

.cell {
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    background-color: #5d4037;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4"%3E%3Cpath d="M1 1h2v2H1z" fill="%234e342e" fill-opacity="0.5"/%3E%3C/svg%3E');
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(28px, 12vw, 50px);
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
    touch-action: manipulation;
}

.cell:hover {
    background-color: #6d4c41;
}

.cell.x {
    color: #ff69b4;
    text-shadow: 2px 2px 4px #2b1a16;
}

.cell.o {
    color: #ffb6c1;
    text-shadow: 2px 2px 4px #2b1a16;
}

#statusMessage {
    font-weight: bold;
    color: #ff69b4;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px #2b1a16;
}

#shareLink {
    word-break: break-all;
    font-family: monospace;
    background: #3e2723;
    color: #ffb6c1;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid #ff69b4;
}

.support-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #3e2723;
    border-top: 1px solid rgba(255, 105, 180, 0.3);
    backdrop-filter: blur(4px);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    box-sizing: border-box;
}

.footer-built-by {
    color: rgba(255, 182, 193, 0.8);
    font-weight: 500;
}

.footer-built-by a {
    color: #ff69b4;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-built-by a:hover {
    color: #ff1493;
    text-decoration: underline;
}

.footer-coffee-btn {
    background-color: #ffb6c1;
    color: #3e2723;
    padding: 6px 16px;
    border-radius: 9999px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #ff69b4;
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.footer-coffee-btn:hover {
    background-color: #ff69b4;
    transform: translateY(-2px);
}
