* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2eadf;
    color: #2b2017;
}
.header {
    background: #5b341e;
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header a { color: white; text-decoration: none; margin-left: 12px; }
.container { max-width: 1200px; margin: 20px auto; padding: 0 16px; }
.card {
    background: white;
    border: 2px solid #b98b5b;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
input, textarea, select, button {
    font-size: 16px;
    padding: 8px;
    margin: 5px 0;
    width: 100%;
}
textarea { min-height: 75px; }
button, .btn {
    background: #7b451f;
    color: white;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px 12px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
button:hover, .btn:hover { background: #5b341e; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.two-col { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.toolbox button { margin-bottom: 8px; }
.stage {
    position: relative;
    width: 100%;
    min-height: 520px;
    background: #fff8e8;
    border: 3px solid #4a2c1a;
    overflow: auto;
}
.panel {
    position: relative;
    display: inline-block;
    width: 360px;
    height: 260px;
    margin: 10px;
    background: #f7f7f7;
    border: 3px solid #111;
    overflow: hidden;
    vertical-align: top;
}
.panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.draggable {
    position: absolute;
    cursor: move;
    user-select: none;
}
.character-token {
    width: 90px;
    min-height: 130px;
    border: 2px solid #333;
    background: rgba(255,255,255,.85);
    border-radius: 10px;
    text-align: center;
    padding-top: 8px;
}
.character-head {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #333;
    margin: 0 auto 5px;
    background: #ffd9aa;
}
.character-body { font-size: 12px; }
.bubble, .narration, .sfx {
    background: white;
    border: 2px solid #111;
    border-radius: 12px;
    min-width: 90px;
    min-height: 45px;
    padding: 8px;
}
.narration { border-radius: 0; background: #fff2b8; }
.sfx { border: 0; background: transparent; font-weight: bold; font-size: 32px; transform: rotate(-8deg); }
.small { font-size: 13px; color: #5a493b; }
.resource-list button { width: auto; margin-right: 6px; }
@media print {
    .header, .toolbox, .no-print, button, .btn { display: none !important; }
    body { background: white; }
    .card { border: 0; box-shadow: none; }
    .stage { border: 0; overflow: visible; }
}
