@charset "utf-8";

/* 基本設定 */
body {
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-size: 0.875rem;
    line-height: 1.45;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
textarea,
select,
.form-control,
.form-select {
    font-size: 16px !important;
}

.form-check-input,
input[type="radio"],
input[type="checkbox"] {
    border-color: #000 !important;
    margin-top: 0 !important;
    vertical-align: middle;
    flex-shrink: 0;
}

label.form-check-label {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

::placeholder {
    color: #89BDDE !important;
    opacity: 1;
}
:-ms-input-placeholder {
    color: #89BDDE !important;
}
::-ms-input-placeholder {
    color: #89BDDE !important;
}

.compact-chat-input {
    padding: 0.2rem 0.5rem !important;
    line-height: 1.25 !important;
    min-height: 34px !important;
}

.compact-send-btn {
    padding: 0.25rem 0.75rem !important;
    height: 34px;
}

.btn-xs {
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
}

/* ツールボタンの高さ維持＋ダイスアイコン拡大 */
.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 0.35rem !important;
    font-size: 1.35rem;
    line-height: 1;
}

/* チャット1画面フレックス構造 */
body.chat-active-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100dvh;
}

.chat-viewport {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.chat-header {
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 10;
}

.chat-log-area {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.chat-log-list {
    display: flex;
    flex-direction: column;
}

.chat-drawer {
    flex-shrink: 0;
    max-height: 48dvh;
    overflow-y: auto;
    background-color: rgba(248, 249, 250, 0.98);
    color: #333;
    z-index: 15;
}

.chat-input-bar {
    flex-shrink: 0;
    background-color: rgba(248, 249, 250, 0.98);
    z-index: 20;
}

.chat-viewport.layout-pos-top .chat-header { order: 1; }
.chat-viewport.layout-pos-top .chat-input-bar { order: 2; border-top: 0 !important; border-bottom: 1px solid #dee2e6; }
.chat-viewport.layout-pos-top .chat-drawer { order: 3; border-top: 0 !important; border-bottom: 1px solid #dee2e6; }
.chat-viewport.layout-pos-top .chat-log-area { order: 4; }

/* 参加者・入退室名バッジ（Aタグ・テキスト選択可） */
a.entrant,
.entrant {
    display: inline-block;
    margin-right: 4px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none !important;
    user-select: text;
    -webkit-user-select: text;
    outline: none;
}

.typing-indicator {
    display: inline-block;
    font-size: 0.8rem;
    margin-left: 3px;
    animation: pulse-opacity 1.2s infinite;
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.log-row {
    padding: 3px 0;
    border-bottom: 1px solid rgba(153, 153, 153, 0.3);
    word-break: break-word;
}

.timestamp {
    font-size: 0.75rem;
    opacity: 0.75;
}

.dice-res {
    color: #777777;
    font-size: 0.85rem;
}

.sline {
    border: 0;
    height: 1px;
    background: #999999;
}

.ent-comment {
    border: 1px dotted #ccc;
    border-radius: 5px;
}

.bb_bold { font-weight: bold; }
.bb_italic { font-style: italic; }
.bb_under { text-decoration: underline; }
.bb_strike { text-decoration: line-through; }

.prof-card-header {
    background-color: #e9ecef;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px 4px 0 0;
}

.portrait-thumb {
    max-width: 240px;
    height: auto;
    padding: 4px;
    border: 1px solid #777;
    background: #fff;
}

.prof-slot-img {
    max-width: 100%;
    max-height: 320px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px;
    background: #fff;
}

