@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Bangers&display=swap');

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

body {
    font-family: 'Permanent Marker', 'Special Elite', cursive;
    background:
      radial-gradient(circle at 10% 10%, rgba(0,0,0,0.03) 1px, transparent 1px),
      radial-gradient(circle at 90% 90%, rgba(0,0,0,0.03) 1px, transparent 1px),
      linear-gradient(180deg,#fff7e6 0%, #fff2da 100%);
    background-size: 6px 6px, 6px 6px, cover;
    padding: 26px;
    color: #111;
}

.controls {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.controls h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #000;
}

.instructions {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 40px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.controls p {
    color: #666;
    margin-bottom: 20px;
}

.print-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-family: 'Special Elite', monospace;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.print-btn:hover {
    opacity: 0.8;
}

#cards-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.scenario-card {
    background: linear-gradient(180deg,#fff 0%, #fffbf0 100%);
    border: 6px solid #000;
    padding: 28px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.12);
    border-radius: 8px;
    transform: rotate(-0.5deg);
}

.scenario-card::before {
    content: '✂️';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    opacity: 0.5;
}

.scenario-image {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
}

.scenario-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scenario-emoji {
    display: none;
}

.scenario-emoji {
    font-size: 48px;
    margin-bottom: 20px;
}

.scenario-title {
    font-family: 'Bangers', 'Permanent Marker', cursive;
    font-size: 28px;
    color: #111;
    text-shadow: 2px 2px 0 #ffd700;
    margin-bottom: 12px;
}

.scenario-description {
    font-size: 15px;
    line-height: 1.5;
    color: #222;
    max-width: 420px;
    margin-bottom: 18px;
    border-left: 6px solid #ff5a5f;
    padding-left: 12px;
    background: repeating-linear-gradient(45deg, rgba(255,90,95,0.03) 0 6px, transparent 6px 12px);
}

.word-bank {
    margin-top: auto;
    padding-top: 20px;
    border-top: 3px dashed #000;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
    padding: 14px;
    margin-top: 12px;
    width: 100%;
    box-shadow: inset 6px 6px 0 rgba(255,255,255,0.2);
}

.word-bank-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.word-bank-words {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.characters-section {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    width: 100%;
}

.characters-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.characters-list {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

#conversations-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.conversation-postit {
    background: linear-gradient(180deg,#fff8b3 0%, #fff1a8 100%);
    padding: 26px;
    border-radius: 6px;
    box-shadow: 12px 12px 0 rgba(0,0,0,0.14);
    transform: rotate(-1deg);
    position: relative;
    border: 5px solid #000;
    font-family: 'Permanent Marker', cursive;
}

.conversation-postit::before {
    content: '✂️';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    opacity: 0.5;
}

.conversation-postit:nth-child(2) {
    transform: rotate(1deg);
    background: #ffb3ba;
}

.conversation-postit:nth-child(3) {
    transform: rotate(-0.5deg);
    background: #bae1ff;
}

.postit-title {
    font-family: 'Bangers', 'Permanent Marker', cursive;
    font-size: 22px;
    letter-spacing: 1px;
    color: #000;
    margin-bottom: 16px;
    text-transform: none;
    text-align: center;
}

.conversation {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.5);
    border-left: 3px solid #000;
}

.conversation:last-child {
    margin-bottom: 0;
}

.conversation-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.dialogue-line {
    font-size: 13px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 5px;
    padding-left: 10px;
    text-align: left;
}

.dialogue-line:last-child {
    margin-bottom: 0;
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }

    #cards-container {
        display: block;
        max-width: 100%;
    }

    .scenario-card {
        page-break-inside: avoid;
        width: 48%;
        display: inline-block;
        margin: 1%;
        vertical-align: top;
        min-height: 350px;
    }

    .scenario-card:nth-child(2n) {
        page-break-after: auto;
    }

    .scenario-card:nth-child(4n) {
        page-break-after: always;
    }

    #conversations-container {
        display: block;
        page-break-before: always;
    }

    .conversation-postit {
        page-break-inside: avoid;
        width: 48%;
        display: inline-block;
        margin: 1%;
        vertical-align: top;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    #cards-container {
        grid-template-columns: 1fr;
    }
    
    #conversations-container {
        grid-template-columns: 1fr;
    }
}