/* 🎲 d20 Arena · the Tome (#/tome): the rules chat. Only the Arena's own tokens (app.css); the Home is not touched. */
.tomo-tela { max-width: 760px; margin: 0 auto; padding: 0 16px 24px; }
.tome-head { display: flex; align-items: center; gap: 16px; margin: 14px 0; }
.tome-head-text { min-width: 0; }
.tome-mascot-btn { flex: none; display: block; }
.tome-mascot { flex: none; width: 96px; height: 96px; object-fit: contain; }
.tome-title { margin: 0 0 4px; font-family: var(--font-display); }
.tome-lead { margin: 0; color: var(--dim); overflow-wrap: anywhere; }
.tome-log { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.tome-msg { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; min-width: 0; }
.tome-msg-you { background: var(--panel-2); margin-left: clamp(0px, 8vw, 56px); }
.tome-msg-tome { border-color: var(--bronze-line); margin-right: clamp(0px, 8vw, 56px); }
.tome-msg-who { display: block; font-size: 0.82rem; color: var(--dim); }
.tome-msg-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tome-extra { margin-top: 8px; }
.tome-extra-list { margin: 2px 0 0; padding-left: 18px; overflow-wrap: anywhere; }
.tome-form { display: grid; gap: 6px; }
.tome-label { font-weight: 600; }
.tome-area { width: 100%; min-height: 76px; resize: vertical; box-sizing: border-box; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; font: inherit; }
.tome-area:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tome-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tome-status { min-height: 1.4em; margin: 6px 0; overflow-wrap: anywhere; }
.tome-status-warn { color: var(--gold); }
.tome-status-error { color: var(--hp-red); }
.tome-status-link { color: var(--side-b-2); text-decoration: underline; text-underline-offset: 3px; }
.tome-left { margin: 6px 0 0; }
.tome-guide { margin: 20px 0 8px; }
.tome-guide-title { margin: 0 0 6px; font-size: 1rem; }
.tome-guide-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tome-guide-link { display: inline-block; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; color: inherit; text-decoration: none; }
.tome-guide-link:hover { border-color: var(--bronze-line); }
.tome-guide-link:focus-visible, .tome-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tome-srd { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 10px; }
.tome-srd p { margin: 4px 0; overflow-wrap: anywhere; }
.tome-back { display: inline-block; margin-top: 12px; }
.tome-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
@media (max-width: 520px) { .tome-head { gap: 10px; } .tome-mascot { width: 72px; height: 72px; } .tome-msg-you, .tome-msg-tome { margin-left: 0; margin-right: 0; } .tome-link-text { font-size: 0.9rem; } }
.tome-house-rule { margin-bottom: 4px; }
.tome-house-title { font-weight: 700; }
.tome-house-tag { display: inline-block; padding: 0 6px; border-radius: 8px; border: 1px solid currentColor; font-size: .85em; opacity: .85; }
.tome-house-cite { font-style: italic; opacity: .8; }
.tome-voto { margin-top: 8px; }
.tome-voto-linha { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tome-voto-btn { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--border, #383063); background: var(--panel-2, #241f45); color: inherit; font: inherit; cursor: pointer; }
.tome-voto-btn:hover:not(:disabled), .tome-voto-btn:focus-visible { border-color: var(--bronze, #d08a45); }
.tome-voto-btn:disabled { opacity: .55; cursor: default; }
.tome-voto-form { margin-top: 8px; display: grid; gap: 6px; }
.tome-voto-motivos { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tome-voto-comentario { width: 100%; resize: vertical; font: inherit; }
.tome-voto-acoes { display: flex; gap: 8px; }
.tome-voto-aviso:empty { display: none; }
.tome-espera { display: flex; gap: 10px; align-items: center; margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: var(--panel-2, #241f45); border: 1px dashed var(--border, #383063); }
.tome-espera-textos { display: grid; }
.tome-espera-pontos { display: inline-flex; gap: 4px; }
.tome-espera-pontos i { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze, #d08a45); animation: tome-pulso 1.2s ease-in-out infinite; }
.tome-espera-pontos i:nth-child(2) { animation-delay: .2s; }
.tome-espera-pontos i:nth-child(3) { animation-delay: .4s; }
@keyframes tome-pulso { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tome-espera-pontos i { animation: none; opacity: .8; } }
.tome-status-retry { margin-left: 6px; min-height: 32px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--border, #383063); background: var(--panel-2, #241f45); color: inherit; font: inherit; cursor: pointer; }
.tome-status-retry:hover, .tome-status-retry:focus-visible { border-color: var(--bronze, #d08a45); }
