:root {
    --bg-main: #0d0c0a;
    --bg-panel: rgba(22, 21, 18, 0.75);
    --bg-panel-strong: #1c1a17;
    --bg-panel-muted: rgba(28, 26, 23, 0.5);
    --border-soft: #474134;
    --border-strong: #574e3b;
    --text-main: #e1e1e6;
    --text-muted: #a8a8b3;
    --accent: #c5b382;
    --accent-contrast: #dfdfe5;
    --shadow-card: 0 15px 40px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(197, 179, 130, 0.3);
    --radius-card: 16px 4px 16px 4px;
    --radius-button: 4px 12px 4px 12px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle, #25231a 0%, var(--bg-main) 100%);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

img {
    display: block;
    max-width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 8%;
    background-color: rgba(18, 17, 14, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid #363227;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent-contrast);
    text-shadow: 0 0 10px rgba(223, 223, 229, 0.4);
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-grow: 1;
    min-height: 100vh;
}

.surface-card,
.portfolio-card,
.contact-card,
.privacy-container {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 2px solid var(--border-strong);
    box-shadow: var(--shadow-card);
}

.portfolio-card {
    border-radius: 24px 4px 24px 4px;
    padding: 40px 40px 50px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.brand-logo {
    width: 160px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.portfolio-card h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #ffffff;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.95rem;
    color: #a49e91;
    margin-bottom: 30px;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 5px;
}

.button-group--stacked {
    flex-direction: column;
    max-width: 300px;
}

.btn,
.btn-primary,
.btn-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-contrast);
    background: var(--bg-panel-strong);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn {
    flex: 1;
}

.btn-primary {
    border-color: #574e3b;
}

.btn:hover,
.btn-primary:hover,
.btn-store:hover {
    background: var(--accent);
    border-color: var(--accent-contrast);
    color: var(--bg-main);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(197, 179, 130, 0.5);
}

.btn:active,
.btn-primary:active,
.btn-store:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .button-group:not(.button-group--stacked) {
        flex-direction: column;
    }
}

.games-page {
    padding: 60px 8%;
}

.games-header {
    text-align: center;
    margin-bottom: 50px;
}

.games-header h1 {
    font-size: 3rem;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.games-header p {
    color: #a49e91;
    font-size: 1.1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: 10px;
    gap: 25px;
    align-items: start;
    width: 100%;
}

.portfolio-grid .game-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: rgba(22, 21, 18, 0.75);
    border: 2px solid #474134;
    border-radius: 16px 4px 16px 4px;
    overflow: hidden;
    padding: 24px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-grid .game-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(197, 179, 130, 0.25);
}

.game-thumb {
    width: 100%;
    height: 180px;
    border-radius: 8px 2px 8px 2px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.game-info {
    display: flex;
    flex-direction: column;
}

.game-card h3 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1.3rem;
}

.game-info p {
    color: #a8a8b3;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.game-action-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 5px;
}

.store-buttons {
    display: flex;
    gap: 10px;
}

.btn-store {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #dfdfe5;
    background: #1c1a17;
    border: 1px solid #474134;
    border-radius: 2px 6px 2px 6px;
    transition: all 0.2s ease;
}

.btn-store::before {    
    content: '';    
    display: inline-block;    
    width: 16px;    
    height: 16px;
    background-size: contain;    
    background-repeat: no-repeat;    
    background-position: center; 
} 

.btn-store.itch::before {    
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dfdfe5'%3E%3Cpath d='M3.064 3.4c-.456.012-.865.281-1.018.71-.163.46-.01 1.011.373 1.303L6.096 8.13 2.126 19.348c-.144.408-.013.864.316 1.134l8.835 7.227c.42.344.1.344.843 0l8.834-7.227c.33-.27.46-.726.317-1.134L17.3 8.13l3.677-2.717c.383-.292.536-.843.373-1.303-.153-.43-.562-.7-1.018-.71H3.064zm5.822 5.86c.645 0 1.168.523 1.168 1.168 0 .645-.523 1.168-1.168 1.168s-1.168-.523-1.168-1.168c0-.645.523-1.168 1.168-1.168zm6.228 0c.645 0 1.168.523 1.168 1.168 0 .645-.523 1.168-1.168 1.168s-1.168-.523-1.168-1.168c0-.645.523-1.168 1.168-1.168z'/%3E%3C/svg%3E");
}

.btn-store.steam::before {    
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dfdfe5'%3E%3Cpath d='M12 0C5.38 0 0 5.38 0 12s5.38 12 12 12c5.96 0 10.9-4.36 11.83-10.06l-4.14-1.7c-.24.58-.7.1-1.32.1h-.08c-.7-.34-1.2-.95-1.4-1.72l-4.22-6.13c-.04-.05-.08-.05-.12-.02l-2.4 1.18c-.05.03-.05.08-.02.13l1.83 4.14c-.6.44-1.03 1.12-1.16 1.9h-.03l-3.3 1.48c-.4-.14-.85-.17-1.27-.05l-2.13-2.12c.1-.4.07-.85-.1-1.25-.4-.95-1.46-1.4-2.42-1-.95.4-1.4 1.46-1 2.42.32.77 1.08 1.23 1.88 1.2h.04l2.12 2.13c-.15.48-.13 1 .07 1.48.4.95 1.47 1.4 2.42 1 .72-.3 1.16-.95 1.24-1.66l3.33-1.48c.2.22.46.4.74.52l1.6 4c.03.06.1.08.15.05l2.43-1.2c.05-.02.06-.08.03-.13l-1.65-3.8c.67-.5 1.12-1.26 1.2-2.12h.04l4.37 1.8c-.02.24 0 .48 0 .72 0 6.62-5.38 12-12 12zm-7.6 13.88c-.43.18-.92-.02-1.1-.45-.18-.43.02-.92.45-1.1.43-.18.92.02 1.1.45.18.43-.02.92-.45 1.1z'/%3E%3C/svg%3E");
}

.btn-store:hover {    
    background: #c5b382;    
    border-color: #dfdfe5;    
    color: #0d0c0a;
} 

.btn-store:hover::before {    
    filter: brightness(0) saturate(100%) invert(4%) sepia(13%) saturate(1352%) hue-rotate(356deg) brightness(94%) contrast(95%); 
}

.tag-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 6px;
}

.tag {
    display: inline-block;
    background-color: #1c1a17;
    border: 1px solid #363227;
    color: #c5b382;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer {
    text-align: center;
    padding: 40px;
    color: #737380;
    font-size: 0.9rem;
    border-top: 1px solid #363227;
    margin-top: 60px;
}

.image-avarice { 
    background-image: url('../images/games/avarice.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-wordhunt { 
    background-image: url('../images/games/wordhunt.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-minutediner { 
    background-image: url('../images/games/minutediner.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-zeven { 
    background-image: url('../images/games/zeven.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-freedom { 
    background-image: url('../images/games/freedom.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-eld { 
    background-image: url('../images/games/eld.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-blastdash { 
    background-image: url('../images/games/blastdash.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-nooneelse { 
    background-image: url('../images/games/nooneelse.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-balantro { 
    background-image: url('../images/games/balantro.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-avoidthebombs { 
    background-image: url('../images/games/avoidthebombs.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-ColorSwap { 
    background-image: url('../images/games/ColorSwap.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-cosmictrigger { 
    background-image: url('../images/games/cosmictrigger.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    padding: 140px 24px 80px;
}

.contact-title {
    text-align: center;
    margin-bottom: 10px;
}

.btn-back {
    display: inline-block;
    margin: 0 auto 40px;
    text-align: center;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.contact-card,
.thanks-box {
    width: 100%;
    padding: 30px 24px;
    text-align: center;
    position: relative;
}

.contact-card--support {
    padding-bottom: 50px;
}

.copy-status-msg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15px;
    color: #6c5ce7;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.privacy-page-body {
    height: 100vh;
    overflow: hidden;
}

.privacy-container {
    max-width: 750px;
    width: 95%;
    text-align: left;
    padding: 40px 40px 50px 40px;
}

.privacy-container h1, .privacy-container .subtitle {
    text-align: center;
}

.privacy-container .subtitle {
    margin-bottom: 20px;
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #474134, #c5b382, #474134, transparent);
    margin: 20px 0;
}

.privacy-content {
    max-height: 45vh;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 30px;
}

.privacy-content::-webkit-scrollbar {
    width: 6px;
}
.privacy-content::-webkit-scrollbar-track {
    background: #1c1a17;
    border-radius: 4px;
}
.privacy-content::-webkit-scrollbar-thumb {
    background: #474134;
    border-radius: 4px;
}
.privacy-content::-webkit-scrollbar-thumb:hover {
    background: #c5b382;
}

.privacy-content h3 {
    color: #c5b382;
    font-size: 1.15rem;
    margin: 25px 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.privacy-content p, .policy-list {
    color: #a8a8b3;
}

.privacy-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.policy-list {
    margin: 10px 0 20px 25px;
}

.policy-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    list-style-type: square;
}

.contact-highlight {
    background: #1c1a17;
    border: 1px dashed #474134;
    padding: 12px 20px;
    border-radius: 4px;
    display: inline-block;
}

.contact-highlight a {
    color: #c5b382;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.contact-highlight a:hover {
    color: #dfdfe5;
}

.pinned-footer {
    position: fixed;
    bottom: 20px;
    right: 30px;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0.8rem;
    color: #737380;
    background: transparent;
    z-index: 100;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.privacy-link {
    color: inherit;
    text-decoration: underline;
}
/* --- THEME FIX: FORCES YELLOW GOLD CORES & REMOVES VISITED PURPLE --- */
.social-icons a i,
.social-icons a:link i,
.social-icons a:visited i,
.store-buttons.social-icons a i,
.store-buttons.social-icons a:link i,
.store-buttons.social-icons a:visited i {
    color: #c5b382 !important; /* Locks down your main golden tone directly to the font */
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* --- THEME FIX: SMOOTH TRANSITION TO DARK GOLD ON HOVER --- */
.social-icons a:hover i,
.store-buttons.social-icons a:hover i {
    color: #72643c !important; /* Transitions to your secondary dark gold tone on hover */
}

