/* 保留原game-hero、game-option、game-table和game-playing-card全部外观。
   本文件只排布新增内容，不重设原卡片的颜色、圆角、边框、阴影或倾斜。 */
.gm-mode-note{font-size:11px;margin-top:12px}
/* 卡面沿用原边框、插画、配色和倾斜，固定原来的289px高度。 */
.gm-turntable{perspective:1000px;padding-bottom:15px}
.gm-turn-card{height:289px;max-height:289px;backface-visibility:hidden;touch-action:pan-y;will-change:auto}
/* 内层文字可纵向滚动，明确保留横向手势给翻卡，避免浏览器提前取消指针。 */
.gm-question-text,.gm-face-text{touch-action:pan-y}
.gm-turn-card[data-turning="true"]{will-change:transform}
.gm-turn-card>svg,.gm-turn-card>img{flex-shrink:0}
.gm-question-text{max-height:112px;min-height:0;overflow:auto;width:100%;overflow-wrap:anywhere;overscroll-behavior:contain}
.gm-face-label{font-size:12px;text-align:center;flex-shrink:0;margin-bottom:12px}
.gm-face-note{font-size:10px;text-align:center;flex-shrink:0;margin-top:-6px;margin-bottom:10px}
.gm-face-text{min-height:0;max-height:192px;width:100%;overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere}
.game-playing-card .gm-face-text p{margin:0;font-size:18px;line-height:1.8}
.gm-card-pager{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;margin:0 0 15px;min-height:27px}
.gm-card-dots{display:flex;gap:2px;align-items:center;justify-content:center}
.gm-card-dot{width:22px;height:20px;padding:7px;border:0;background:transparent;display:grid;place-items:center;touch-action:manipulation}
.gm-card-dot i{display:block;width:6px;height:6px;border-radius:50%;background:#cfdbf3}
.gm-card-dot[aria-current="true"] i{background:var(--orange)}
.gm-card-hint{font-size:10px;line-height:1.5;text-align:center}
.gm-answer-form{margin-top:15px}.gm-answer-form label{font-size:13px}.gm-answer-form textarea{width:100%;resize:vertical;min-width:0}
.gm-bottom-actions{display:flex;justify-content:space-between;gap:12px;margin-top:15px}.gm-bottom-actions button{font-size:11px}
.gm-feedback{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:var(--card-radius,18px);font-size:12px;background:var(--surface,#fff)}
.gm-feedback>p{margin:0;width:100%;white-space:pre-wrap;overflow-wrap:anywhere}.gm-feedback button{font-size:11px;min-height:28px;padding:5px 9px}.gm-hint{font-size:11px;line-height:1.8}
.gm-memory-card{margin-top:12px}.gm-memory-open{min-width:0;flex:1;background:transparent;text-align:left;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.gm-memory-card>.text-link{font-size:11px;margin-top:8px}
.gm-record-intro{margin-bottom:12px}.gm-record-intro p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8}
.gm-invite{margin:12px 0;overflow-wrap:anywhere}.gm-invite-cap{display:flex;align-items:center;gap:7px;font-size:11px}.gm-invite-cap>svg{width:18px;height:18px;flex:none}.gm-status{margin-left:auto;font-size:10px;white-space:nowrap}.gm-invite h3{font-size:15px;margin:12px 0 6px}.gm-invite>p{font-size:12px;line-height:1.8;margin:5px 0}.gm-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}.gm-actions .primary,.gm-actions .secondary{font-size:11px;padding:7px 12px;min-height:32px}.gm-actions .text-link{font-size:10px}
.gm-chat-invitation{min-width:185px;max-width:280px}.gm-chat-invitation .gm-invite{margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:inherit}.gm-chat-invitation .gm-invite-cap{font-size:10px}.gm-chat-invitation .gm-status{font-size:9px}.gm-chat-invitation .gm-invite h3{font-size:14px}.gm-chat-invitation .gm-invite>p{font-size:12px}.gm-chat-invitation .meta{color:inherit}
@media(max-width:360px){.gm-chat-invitation{min-width:170px}}

/* 邀请卡使用已确认的蓝橙掌机原贴图，不改卡片背景、边框与配色。 */
.gm-invite-cap{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:10px;row-gap:3px}
.gm-invite-art{grid-row:1 / 3;display:block;width:48px;height:48px}
.gm-invite-art>svg{display:block;width:100%;height:100%}
.gm-invite-cap>.gm-status{grid-column:2;margin:0;white-space:normal}

/* 承接设置：文案在左，勾选框固定在右，避免套用通用全宽输入框布局。 */
.entry-form .gm-sync-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.gm-sync-row>span{flex:1;min-width:0;overflow-wrap:anywhere}
.entry-form .gm-sync-row>input[type="checkbox"]{flex:0 0 18px;width:18px;max-width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--blue)}

/* 减少插画占位，把固定卡面的空间留给完整题目和回应。 */
.gm-turn-card { padding: 20px; }
.gm-turn-card > svg, .gm-turn-card > img { width: 80px; height: 80px; margin-bottom: 10px; }
.game-playing-card .gm-question-text { flex: 1; max-height: none; margin: 0; padding-bottom: 3px; font-size: 16px; line-height: 1.7; scrollbar-width: thin; }
.gm-turn-card .gm-face-text { flex: 1; max-height: none; padding-bottom: 3px; scrollbar-width: thin; }
.game-playing-card .gm-face-text p { font-size: 16px; line-height: 1.75; }

/* 长文字续到下一张卡，不在卡内裁切或依赖隐藏滚动。 */
.game-playing-card .gm-question-text, .gm-turn-card .gm-face-text { overflow: hidden; }
.gm-card-turns { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--muted); }
.gm-card-turns button { width: 32px; height: 28px; border-radius: 12px; background: #edf2ff; color: var(--blue); font-size: 20px; }
/* 底部星星位于文字区之外，最后一行也不与装饰重叠。 */
.gm-turn-card { padding: 24px 20px 38px; }
.gm-face-label { padding: 0 20px; max-width: 100%; box-sizing: border-box; }
