/* TOOLS / big_text — full-screen sign. Sign colours are fixed in both themes: they are the user's pick, not page chrome. */
:root {
    --bt-dark-bg:   #000000;
    --bt-dark-fg:   #ffffff;
    --bt-light-bg:  #ffffff;
    --bt-light-fg:  #000000;
    --bt-yellow-bg: #ffd400;
    --bt-yellow-fg: #000000;
}

.bt-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.bt-modes .tool-btn[aria-pressed="true"] {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.bt-preview,
.bt-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bt-preview {
    height: 220px;
    margin: 12px 0;
    padding: 12px;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
}

.bt-stage {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 4vmin;
    box-sizing: border-box;
}

.bt-fit {
    width: 100%;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.bt-preview[data-mode="dark"],   .bt-stage[data-mode="dark"]   { background: var(--bt-dark-bg);   color: var(--bt-dark-fg); }
.bt-preview[data-mode="light"],  .bt-stage[data-mode="light"]  { background: var(--bt-light-bg);  color: var(--bt-light-fg); }
.bt-preview[data-mode="yellow"], .bt-stage[data-mode="yellow"] { background: var(--bt-yellow-bg); color: var(--bt-yellow-fg); }
.bt-preview[data-mode="light"] { border: 1px solid var(--border); }

.bt-close,
.bt-close:hover {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    background: transparent;
    color: inherit;
    opacity: 0.6;
}

.bt-close:hover,
.bt-close:focus-visible {
    opacity: 1;
}

body.bt-locked {
    overflow: hidden;
}
