/* faceplate.css -- the dark board shared by Wall and WallPro (and the
   delete button, meta line and hidden typing field of Stars): rules the
   two walls carried word for word. Each wall's own file keeps what differs. */

.wb-stage {
    min-height: calc(100vh - 160px);
    padding: 44px 24px 72px;
    background: radial-gradient(110% 70% at 50% 0%, #141318 0%, var(--dark-bg) 58%);
}

.wb-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.wb-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    animation: wb-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.wb-cell {
    padding: 0;
    border: 2px solid rgba(240, 168, 48, 0.5);
    border-radius: 2px;
    cursor: pointer;
}

.wb-cell.wb-c0 {
    background: #1b1b21;
}

.wb-swatch {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.18s ease;
}

.wb-swatch.is-active {
    box-shadow: 0 0 0 2px var(--dark-bg), 0 0 0 4px var(--gold-bright);
    transform: scale(1.06);
}

.wb-clear {
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    color: #8e8e99;
    font-family: 'Roboto', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.wb-clear:hover {
    color: var(--surface-2);
    border-color: var(--wb-line);
}

.wb-input {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    border: 2px solid rgba(240, 168, 48, 0.5);
    border-radius: 10px;
    padding: 10px 12px;
    resize: none;
    background: rgba(255, 255, 255, 0.04);
    font-family: "Roboto", sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--surface-2);
}

.wb-input::placeholder {
    color: var(--dark-ink-2);
}

.wb-input:focus {
    outline: none;
}

.wb-error {
    flex: 1 1 auto;
    text-align: right;
    font-family: 'Roboto', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    color: var(--danger);
}

.wb-send {
    padding: 5px 22px;
    border: 2px solid rgba(240, 168, 48, 0.5);
    border-radius: 10px;
    background: linear-gradient(165deg, #2a2118, #1a1510);
    color: var(--gold-bright);
    font-family: 'Roboto', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
}

.wb-send:hover {
    color: #ffc663;
    border-color: var(--gold-bright);
}

.wb-send:active {
    transform: scale(0.96);
}

.wb-del {
    margin-left: auto;
    margin-right: 2ch;
    display: flex;
}

.wb-del-btn {
    padding: 0 4px;
    border: none;
    background: none;
    color: var(--surface-2);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease;
}

.wb-del-btn:hover {
    color: var(--surface);
}

.wb-board {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wb-text {
    margin: 0;
    white-space: pre-line;
    font-family: "Roboto", sans-serif;
    font-size: 1.22rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--surface-2);
    overflow-wrap: break-word;
}

.wb-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dark-ink);
}

.wb-author {
    color: var(--gold-bright);
}

.wb-author::after {
    content: "·";
    margin-left: 10px;
    color: var(--gold-bright);
}

.wb-empty {
    padding: 56px 20px;
    text-align: center;
    border: 1px dashed var(--wb-line);
    border-radius: 16px;
    animation: wb-rise 0.55s both;
}

.wb-empty-mark {
    display: block;
    margin-bottom: 14px;
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    color: var(--gold-bright);
}

.wb-empty p {
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 1.1rem;
    color: var(--dark-ink);
}

@media (max-width: 560px) {
    .wb-stage {
        padding: 20px 2px 48px;
    }
}

.wc-page {
    max-width: 640px;
    margin: 0 auto;
    animation: wb-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.wc-back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--wb-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--dark-ink);
    font-family: 'Roboto', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.wc-back:hover {
    color: var(--gold-bright);
    border-color: rgba(240, 168, 48, 0.5);
}

.wc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--wb-line);
    border-radius: 18px;
    background: linear-gradient(160deg, var(--dark-bg), var(--dark-bg));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.wc-input:focus {
    border-color: var(--gold-bright);
}

.wc-clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--wb-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--dark-ink);
    font-family: 'Roboto', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.wc-clear:hover {
    color: var(--gold-bright);
    border-color: rgba(240, 168, 48, 0.5);
}

.wc-palette {
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
}

.wc-palette .wb-swatch {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.wc-canvas .wb-cell {
    width: auto;
    aspect-ratio: 1 / 1;
    border-radius: 3px;
}

.wc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wc-actions .wc-error {
    flex: none;
    text-align: left;
}

.wc-error:empty {
    display: none;
}

.wc-action-btns {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.wc-send {
    flex: 1 1 auto;
    padding: 12px 34px;
    font-size: 0.875rem;
}

.wc-page :focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .wc-page {
        animation: none;
    }
}

@media (max-width: 480px) {
    .wc-form {
        padding: 14px 2px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .wc-palette .wb-swatch {
        width: 32px;
        height: 32px;
    }
}

.wb-write-link:active {
    transform: scale(0.99);
}

.wb-write-mark {
    font-size: 1.05rem;
    line-height: 1;
}

.wc-mode {
    display: flex;
    gap: 6px;
}

.wc-type-input {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    font-size: 16px;
    pointer-events: none;
}

.wb-cell {
    font-family: 'Roboto', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: inherit;
}

.wb-cell.is-sel {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 2px #1b1b21, 0 0 0 4px var(--gold-bright);
}

.wb-tc0 {
    color: #c4c4cd;
}

@keyframes wb-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
