body {
    font-family: Arial, sans-serif;
    background: #1c1c1e;
    color: #fff;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 40px);
    box-sizing: border-box;
}
h2 { color: #ffb300; }

#chat { flex: 1; overflow-y: auto; }

.msg {
    background: #2c2c2e;
    border-radius: 16px;
    padding: 12px 16px;
    margin: 8px 0;
    max-width: 90%;
    font-size: 16px;
    color: #e5e5e7;
    line-height: 1.4;
}

/* колода — сетка мелких карт, 4 в ряд */
.deck {
    display: grid;
    grid-template-columns: repeat(4, 48px);
    gap: 4px;
    margin: 8px 0;
}
.card {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    background: #3a3a3c;
}
.deck-names {
    color: #8e8e93;
    font-size: 12px;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    margin: 4px;
    padding: 10px 20px;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    background: #2c2c2e;
    border-radius: 24px;
}
.btn:hover { background: #3a3a3c; }
.btn-accent { background: #ffb300; color: #1c1c1e; font-weight: bold; }
.btn-accent:hover { background: #ffc44d; }
#btns { text-align: center; padding: 10px 0; }
.deck-avg {
    color: #8e8e93;
    font-size: 13px;
    margin-top: 6px;
}
.input-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}
.say-input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 22px;
    border: none;
    outline: none;
    background: #2c2c2e;
    color: #fff;
    font-size: 16px;
}
.say-input:focus {
    background: #3a3a3c;
}
#sg-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.sg {
    flex: 0 0 auto;
    width: 56px;
    padding: 5px;
    background: #2c2c2e;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 10px;
    line-height: 1.2;
}
.sg img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 3px;
}
.btn-send {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffcc00;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.btn-send:active {
    background: #e6b800;
}

