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

:root {
    --primary-brand: #ee2a58; /* Nakit Pink/Red */
    --dark-brand: #b00f39;    /* Darker shade */
    --accent-dark: #4a0518;   /* Deep contrast */
    --bg-dark: #1a0e11;       /* Dark reddish-black */
    --bg-darker: #0d0507;     /* Almost black */
    --text-light: #ffebf0;    /* Pale pinkish white */
    --shadow-brand: 0 0 20px rgba(238, 42, 88, 0.35);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-brand) var(--bg-darker);
}

body {
    font-family: 'Press Start 2P', cursive;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    /* SVG Cursor updated to #ee2a58 */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 16 16"><rect x="0" y="0" width="2" height="2" fill="%23ee2a58"/><rect x="0" y="2" width="2" height="2" fill="%23ee2a58"/><rect x="0" y="4" width="2" height="2" fill="%23ee2a58"/><rect x="0" y="6" width="2" height="2" fill="%23ee2a58"/><rect x="0" y="8" width="2" height="2" fill="%23ee2a58"/><rect x="2" y="2" width="2" height="2" fill="%23ee2a58"/><rect x="2" y="8" width="2" height="2" fill="%23ee2a58"/><rect x="4" y="4" width="2" height="2" fill="%23ee2a58"/><rect x="4" y="8" width="2" height="2" fill="%23ee2a58"/><rect x="6" y="6" width="2" height="2" fill="%23ee2a58"/><rect x="6" y="8" width="2" height="2" fill="%23ee2a58"/><rect x="8" y="8" width="2" height="2" fill="%23ee2a58"/></svg>') 0 0, auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-left: 2px solid var(--accent-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-brand);
    border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-brand);
}

::-webkit-scrollbar-thumb:active {
    background: var(--dark-brand);
}

a, button, input[type="text"] {
    /* SVG Pointer updated to #ee2a58 */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 16 16"><rect x="3" y="3" width="2" height="2" fill="%23ee2a58"/><rect x="5" y="3" width="2" height="2" fill="%23ee2a58"/><rect x="7" y="3" width="2" height="2" fill="%23ee2a58"/><rect x="9" y="3" width="2" height="2" fill="%23ee2a58"/><rect x="3" y="5" width="2" height="2" fill="%23ee2a58"/><rect x="9" y="5" width="2" height="2" fill="%23ee2a58"/><rect x="3" y="7" width="2" height="2" fill="%23ee2a58"/><rect x="9" y="7" width="2" height="2" fill="%23ee2a58"/><rect x="3" y="9" width="2" height="2" fill="%23ee2a58"/><rect x="5" y="9" width="2" height="2" fill="%23ee2a58"/><rect x="7" y="9" width="2" height="2" fill="%23ee2a58"/><rect x="9" y="9" width="2" height="2" fill="%23ee2a58"/></svg>') 16 16, pointer;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--bg-darker);
    padding: 20px 0;
    border-bottom: 3px solid var(--primary-brand);
    box-shadow: var(--shadow-brand);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact {
    display: flex;
    align-items: center;
}

.contact-email {
    color: var(--primary-brand);
    text-decoration: none;
    font-size: 10px;
    transition: color 0.3s;
}

.contact-email:hover {
    color: var(--dark-brand);
}

.header-cta {
    background: var(--primary-brand);
    color: var(--text-light);
    padding: 10px 20px;
    font-size: 10px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
    border: 2px solid var(--primary-brand);
    font-weight: bold;
    text-shadow: 1px 1px var(--bg-darker);
}

.header-cta:hover {
    background: var(--dark-brand);
    border-color: var(--dark-brand);
    transform: scale(1.05);
}

.logo {
    max-width: 200px;
    height: auto;
    image-rendering: pixelated;
}

.game-section {
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-title {
    font-size: 24px;
    color: var(--primary-brand);
    margin-bottom: 30px;
    text-shadow: 3px 3px 0px var(--accent-dark);
    letter-spacing: 2px;
}

.dice-decoration {
    position: absolute;
    width: 120px;
    height: auto;
    opacity: 0.25;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 1;
    /* Adjust hue for pinkish red */
    filter: sepia(100%) saturate(500%) hue-rotate(300deg) brightness(0.9);
}

.dice-left-top {
    top: 40px;
    left: -40px;
}

.dice-right-top {
    top: 60px;
    right: -40px;
}

.dice-left-bottom {
    bottom: 40px;
    left: -50px;
}

.dice-right-bottom {
    bottom: 60px;
    right: -50px;
}

.dice-rules-left {
    bottom: -30px;
    left: 10%;
    width: 100px;
}

.dice-rules-center {
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
}

.dice-rules-right {
    bottom: -30px;
    right: 10%;
    width: 100px;
}

#gameCanvas {
    display: block;
    margin: 0 auto;
    background: #000;
    border: 4px solid var(--primary-brand);
    box-shadow: var(--shadow-brand);
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    position: relative;
    z-index: 10;
}

.pills-section {
    padding: 60px 0;
}

.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.pill {
    background: linear-gradient(to right, var(--bg-darker), var(--accent-dark));
    border: 2px solid var(--primary-brand);
    color: var(--text-light);
    border-radius: 20px; /* Slight rounded for Nakit style */
    padding: 15px 30px;
    font-size: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    image-rendering: pixelated;
}

.pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-brand);
    background: var(--primary-brand);
    color: var(--bg-darker);
    font-weight: bold;
}

.slider-section {
    padding: 60px 0;
    background: var(--bg-darker);
    border-top: 3px solid var(--primary-brand);
}

.slider-title {
    text-align: center;
    font-size: 20px;
    color: var(--primary-brand);
    margin-bottom: 40px;
}

.slider {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: calc(100% - 40px);
    background: var(--bg-dark);
    border: 2px solid var(--primary-brand);
    padding: 40px;
    margin: 0 20px;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.slide-title {
    font-size: 16px;
    color: var(--primary-brand);
    margin-bottom: 20px;
}

.slide-text {
    font-size: 10px;
    line-height: 1.8;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.slider-btn {
    background: var(--accent-dark);
    color: var(--primary-brand);
    border: 2px solid var(--primary-brand);
    padding: 15px 30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--primary-brand);
    color: var(--bg-darker);
}

.cta-section {
    padding: 80px 0;
    background: var(--bg-darker);
    text-align: center;
    background-image: linear-gradient(45deg, var(--bg-darker) 25%, var(--bg-dark) 25%, var(--bg-dark) 50%, var(--bg-darker) 50%, var(--bg-darker) 75%, var(--bg-dark) 75%, var(--bg-dark) 100%);
    background-size: 20px 20px;
}

.cta-title {
    font-size: 24px;
    color: var(--primary-brand);
    margin-bottom: 20px;
    text-shadow: 2px 2px var(--accent-dark);
}

.cta-text {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
    background: var(--bg-darker);
    display: inline-block;
    padding: 10px;
    border: 1px solid var(--accent-dark);
}

.cta-button {
    display: inline-block;
    background: var(--primary-brand);
    color: var(--text-light);
    border: none;
    padding: 20px 40px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    box-shadow: var(--shadow-brand);
    text-shadow: 1px 1px #000;
}

.cta-button:hover {
    background: var(--dark-brand);
    transform: scale(1.05);
}

.faq-section {
    padding: 60px 0;
    background: var(--bg-dark);
    border-top: 3px solid var(--primary-brand);
}

.faq-title {
    text-align: center;
    font-size: 20px;
    color: var(--primary-brand);
    margin-bottom: 40px;
    text-shadow: 2px 2px var(--accent-dark);
}

.faq-search-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.faq-search {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-darker);
    border: 3px solid var(--primary-brand);
    color: var(--primary-brand);
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    outline: none;
}

.faq-search::placeholder {
    color: var(--dark-brand);
    opacity: 0.7;
}

.faq-no-results {
    text-align: center;
    font-size: 12px;
    color: var(--primary-brand);
    padding: 40px 20px;
    background: var(--bg-darker);
    border: 3px solid var(--primary-brand);
    margin: 0 auto 20px;
    max-width: 600px;
}

.faq-no-results.hidden {
    display: none;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-darker);
    border-left: 5px solid var(--primary-brand);
    border-bottom: 1px solid var(--accent-dark);
    margin-bottom: 20px;
    padding: 20px;
    transition: transform 0.2s;
}

.faq-item:hover {
    transform: translateX(10px);
    background: var(--accent-dark);
}

.faq-item.hidden {
    display: none;
}

.faq-question {
    font-size: 12px;
    color: var(--primary-brand);
    margin-bottom: 15px;
    cursor: pointer;
}

.faq-answer {
    font-size: 10px;
    color: var(--text-light);
    line-height: 1.8;
    display: block;
}

footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 3px solid var(--primary-brand);
}

.footer-text {
    font-size: 10px;
    line-height: 2;
    margin-bottom: 40px;
    text-align: center;
    color: #bbb;
}

.footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-icon {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-icon:hover {
    opacity: 1;
}

.footer-links {
    text-align: center;
    font-size: 10px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--primary-brand);
    text-decoration: none;
    margin: 0 15px;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    background-color: var(--bg-dark);
    margin: 5% auto;
    padding: 40px;
    border: 3px solid var(--primary-brand);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-brand);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 18px;
    color: var(--primary-brand);
}

.close {
    color: var(--primary-brand);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
}

.close:hover {
    color: var(--dark-brand);
}

.modal-text {
    font-size: 10px;
    line-height: 2;
}

.rules-section {
    padding: 60px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.rules-title {
    text-align: center;
    font-size: 20px;
    color: var(--primary-brand);
    margin-bottom: 30px;
}

.rules-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 10px;
    line-height: 2;
    padding: 30px;
    background: var(--bg-darker);
    border: 3px solid var(--primary-brand);
    box-shadow: inset 0 0 20px rgba(238, 42, 88, 0.1);
}

.rules-content ul {
    list-style: none;
    padding-left: 0;
}

.rules-content li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.rules-content li:before {
    content: "$";
    position: absolute;
    left: 0;
    color: var(--primary-brand);
    font-weight: bold;
}

/* Fake fullscreen overlay for iPhone */
.game-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Overridden by JS with window.innerHeight */
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.game-fullscreen-overlay canvas {
    border: none;
    box-shadow: none;
    max-width: 100vw;
    max-height: 100vh;
}

body.game-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

@media (max-width: 768px) {
    .header-contact {
        display: none;
    }

    .header-cta {
        font-size: 8px;
        padding: 8px 16px;
    }

    .logo {
        max-width: 150px;
    }

    .game-title {
        font-size: 14px;
    }

    .pill {
        font-size: 8px;
        padding: 10px 16px;
    }

    .slider-title {
        font-size: 14px;
    }

    .slide-title {
        font-size: 12px;
    }

    .slide-text {
        font-size: 8px;
    }

    .slider-btn {
        font-size: 10px;
        padding: 12px 24px;
    }

    .footer-text {
        font-size: 8px;
    }

    .footer-icon {
        height: 40px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 12px;
    }

    .modal-text {
        font-size: 8px;
    }

    .rules-title {
        font-size: 14px;
    }

    .rules-content {
        font-size: 8px;
        padding: 20px;
    }

    .cta-title {
        font-size: 16px;
    }

    .cta-text {
        font-size: 10px;
    }

    .cta-button {
        font-size: 12px;
        padding: 16px 32px;
    }

    .contact-email {
        font-size: 8px;
    }

    .faq-title {
        font-size: 14px;
    }

    .faq-search {
        font-size: 8px;
        padding: 12px 16px;
    }

    .faq-question {
        font-size: 10px;
    }

    .faq-answer {
        font-size: 8px;
    }

    .faq-item {
        padding: 15px;
    }

    .faq-no-results {
        font-size: 10px;
        padding: 30px 15px;
    }

    .dice-decoration {
        width: 60px;
        opacity: 0.15;
    }
}

h2 {
    text-shadow: 2px 2px var(--accent-dark);
}