:root {
    --bg-color: #181818;
    --text-color: #A9B7C6;
    --accent-color: #4285F4;
    --card-bg: #2F2F2F;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(66, 133, 244, 0.1) 0%, transparent 100%);
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.25rem;
    color: #adb5bd;
    max-width: 600px;
    margin: 0 auto 30px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

.release-info {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.release-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.release-info p {
    font-size: 1.1rem;
    color: #adb5bd;
    max-width: 700px;
    margin: 0 auto 15px;
}

.release-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.release-info a:hover {
    text-decoration: underline;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--text-color);
}

.feature-card p {
    color: #adb5bd;
    font-size: 1rem;
}

/* Dice Sprite Container */
.die-container {
    position: relative;
    width: 128px; /* Render size - half of 256 for crispness */
    height: 128px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.die-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    /* Assuming 256px sprite cells. We scale the mask using mask-size */
    -webkit-mask-size: auto 128px; /* scale to match our container height */
    mask-size: auto 128px;
}

/* Field (Background layer) */
.die-field {
    background-color: var(--die-field-tint, #4285F4);
    -webkit-mask-image: url('../img/dicesprite_feild.png');
    mask-image: url('../img/dicesprite_feild.png');
}

/* Outline (Foreground layer) */
.die-outline {
    background-color: var(--die-outline-tint, #ffffff);
    -webkit-mask-image: url('../img/dicesprite_outline.png');
    mask-image: url('../img/dicesprite_outline.png');
}

/* Privacy Page specific */
.privacy-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    margin: 40px auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.privacy-content p {
    margin-bottom: 15px;
    color: #ced4da;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-color);
}

/* Screenshots Section */
.screenshots {
    margin-bottom: 60px;
}

.screenshots h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.screenshot-gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
