@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --portuguese-green: #006600;
    --portuguese-red: #FF0000;
    --portuguese-gold: #FFD700;
    --light-green: #e6f7e6;
    --light-red: #ffe6e6;
    --light-gold: #fff9cc;
    --bg-green: #004400;
    --medium-green: #005500;
    --card-bg: #f8f8f8;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-900: #111827;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: var(--bg-green);
    color: var(--gray-900);
}

header {
    background: var(--portuguese-red);
    color: white;
    padding: 3rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    gap: 2rem;
}

.flag {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--portuguese-gold);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.title-section {
    text-align: center;
    flex-grow: 1;
}

.title-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--portuguese-gold);
    font-style: italic;
    font-weight: 300;
}

.dice-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.intro {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 3rem;
    padding-top: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-900);
    text-align: justify;
    margin-top: 2rem;
}

.intro p::first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--portuguese-red);
    float: left;
    margin: 0.1rem 0.6rem 0 0;
    line-height: 3rem;
}

.section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.section h2 {
    color: var(--portuguese-red);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--portuguese-green);
}

.section h3 {
    color: var(--portuguese-green);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.section h3:first-of-type {
    margin-top: 0;
}

.dice-faces {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.die-face {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scorecard-example {
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.scorecard-example h3 {
    color: var(--portuguese-red);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.scorecard-img {
    max-width: 380px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.scoring-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.scoring-card h3 {
    color: var(--portuguese-red);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.multipliers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.multiplier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--portuguese-green);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.multiplier span {
    color: var(--portuguese-gold);
    font-size: 1.1rem;
    font-weight: 600;
}

.face-values-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.face-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--portuguese-green);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.face-value span {
    color: var(--portuguese-gold);
    font-size: 1.1rem;
    font-weight: 600;
}

.combinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.combo-card {
    background: var(--card-bg);
    color: var(--gray-900);
    border: 2px solid var(--portuguese-green);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.combo-card h3 {
    color: var(--portuguese-red);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.combo-example {
    font-style: italic;
    margin: 1rem 0;
}

.combo-score {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--portuguese-green);
    background: var(--light-green);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: inline-block;
}

.variations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.variation-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.variation-card h3 {
    color: var(--portuguese-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.variation-bonus {
    background: var(--light-gold);
    color: var(--gray-900);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-weight: 500;
    border: 1px solid var(--portuguese-gold);
}

.variation-note {
    font-style: italic;
    color: var(--portuguese-red);
    margin-top: 1rem;
    font-weight: 500;
}

.example-turn {
    background: var(--card-bg);
    border: 2px solid var(--portuguese-green);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.example-turn h4 {
    color: var(--portuguese-red);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.example-turn.highlight {
    border-color: var(--portuguese-green);
    background: var(--card-bg);
}

.rolls {
    margin: 1.5rem 0;
}

.roll {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid var(--portuguese-green);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.result {
    font-weight: 600;
    color: var(--portuguese-green);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-green);
    border-radius: 6px;
    border: 1px solid var(--portuguese-green);
}

.fun-fact {
    font-style: italic;
    color: var(--portuguese-red);
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border-left: 3px solid var(--portuguese-gold);
    font-weight: 500;
}

.crossing-info {
    background: var(--portuguese-red);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.crossing-info p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.crossing-info ul {
    margin-left: 2rem;
}

.crossing-info li {
    margin-bottom: 0.8rem;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip {
    background: var(--portuguese-green);
    color: white;
    border-radius: 8px;
    padding: 2rem;
}

.tip h4 {
    color: var(--portuguese-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.tip ul {
    margin-left: 1.5rem;
}

.tip li {
    margin-bottom: 0.5rem;
}

.scoring-note {
    background: var(--light-gold);
    border-left: 4px solid var(--portuguese-gold);
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-radius: 6px;
    font-style: italic;
    color: var(--gray-900);
}

.example {
    background: var(--light-gold);
    border: 1px solid var(--portuguese-gold);
    border-radius: 6px;
    padding: 2rem;
    margin: 2rem 0;
}

.example h4 {
    color: var(--portuguese-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

footer {
    background: var(--portuguese-red);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
}

footer blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: white;
    padding-left: 2rem;
    padding-right: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 500px;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}

footer p {
    font-size: 1.1rem;
    font-weight: 500;
}

footer a {
    color: var(--portuguese-gold);
    font-weight: 600;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

footer .attribution {
    font-size: 0.9rem;
    margin-top: 2rem;
    opacity: 0.8;
}

.dice-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.small-die {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}


ul {
    margin-left: 2rem;
}

li {
    margin-bottom: 0.8rem;
}

ol {
    margin-left: 2rem;
}

ol li {
    margin-bottom: 1rem;
    font-weight: 500;
}

a {
    color: var(--portuguese-red);
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    color: var(--portuguese-red);
    font-weight: 600;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .title-section h1 {
        font-size: 2.5rem;
    }
    
    
    .dice-faces {
        gap: 1rem;
    }
    
    .die-face {
        width: 50px;
        height: 50px;
    }
    
    .scoring-grid,
    .combinations-grid,
    .strategy-grid,
    .variations-grid {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    .section {
        padding: 2rem;
    }
    
    .intro {
        padding: 2rem;
    }
}