.typing-rotator-wrapper {
    display: inline-block;
    min-height: 1.2em;
}

.typing-rotator-wrapper .item-change {
    display: none;
}

.typing-rotator {
    display: inline;
}

.typing-rotator__char {
    color: #2a2a2a;
    transition: color 0.14s ease;
}

.typing-rotator__char--new {
    color: #008DD2;
}

.typing-cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    margin-left: 2px;
    background: #2a2a2a;
    vertical-align: -2px;
    animation: cursor-blink 1.06s steps(1) infinite;
}

@keyframes cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.dialog {
    display: flex;
    flex-direction: column;
    width: min(460px, calc(100% - 48px));
    height: min(420px, calc(100% - 96px));
    background: #d0d0d0;
    border: 1px solid #2a2a2a;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: 14px;
    color: #2a2a2a;
}

.dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #2a2a2a;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.dialog__close {
    font: inherit;
    letter-spacing: 0.04em;
    color: inherit;
    background: transparent;
    border: 1px solid #2a2a2a;
    padding: 2px 10px;
    cursor: pointer;
}

.dialog__close:hover {
    color: #fff;
    background: #008DD2;
    border-color: #008DD2;
}

.dialog__messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialog__msg {
    line-height: 1.45;
}

.dialog__msg--you {
    opacity: 0.7;
}

.dialog__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 12px;
}

.dialog__choices button {
    font: inherit;
    color: #2a2a2a;
    background: transparent;
    border: 1px solid #2a2a2a;
    padding: 4px 10px;
    cursor: pointer;
}

.dialog__choices button:hover {
    color: #fff;
    background: #008DD2;
    border-color: #008DD2;
}

.dialog__form {
    display: flex;
    border-top: 1px solid #2a2a2a;
}

.dialog__form input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 10px 14px;
    font: inherit;
    color: inherit;
    outline: none;
}

.dialog__form button {
    border: 0;
    border-left: 1px solid #2a2a2a;
    background: transparent;
    padding: 10px 14px;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.dialog__form button:hover {
    color: #fff;
    background: #008DD2;
}

.dev-panel {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    width: 220px;
    background: #2a2a2a;
    color: #d8d8d8;
    font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.4;
}

.dev-panel__head {
    padding: 8px 10px;
    border-bottom: 1px solid #444;
    letter-spacing: 0.08em;
    color: #008DD2;
}

.dev-panel__list {
    display: flex;
    flex-direction: column;
}

.dev-panel button {
    text-align: left;
    border: 0;
    border-bottom: 1px solid #3a3a3a;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 8px 10px;
    cursor: pointer;
}

.dev-panel button:last-child {
    border-bottom: 0;
}

.dev-panel button:hover,
.dev-panel button.is-active {
    background: #008DD2;
    color: #fff;
}

.jumpscare {
    position: fixed;
    inset: 0;
    z-index: 60;
    overflow: hidden;
    background: #000;
    pointer-events: none;
}

.jumpscare img {
    width: 118%;
    height: 118%;
    margin: -9%;
    object-fit: cover;
    object-position: center 35%;
    animation: jumpscare-shake 0.07s linear infinite;
}

@keyframes jumpscare-shake {
    0% { transform: translate(0, 0) rotate(-0.8deg); }
    20% { transform: translate(18px, -14px) rotate(1.2deg); }
    40% { transform: translate(-16px, 12px) rotate(-1deg); }
    60% { transform: translate(14px, 16px) rotate(0.6deg); }
    80% { transform: translate(-18px, -10px) rotate(-1.1deg); }
    100% { transform: translate(0, 0) rotate(-0.8deg); }
}

