* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #1a1b1f;
    --embed-bg: #2b2d31;
    --embed-border: #3f4147;
    --text: #dbdee1;
    --text-dim: #949ba4;
    --accent: #e63946;
    --accent-dark: #b52a35;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 48px 24px;
    font-size: 14px;
    line-height: 1.5;
}

main {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-link {
    margin-left: auto;
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: color 120ms ease, background 120ms ease;
}

.hero-link:hover {
    color: #fff;
    background: var(--embed-bg);
}

.logo {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    image-rendering: pixelated;
    background: var(--accent);
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}

.tagline {
    color: var(--text-dim);
    margin-top: 4px;
}

.embed {
    background: var(--embed-bg);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.embed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    image-rendering: pixelated;
}

.bot-name {
    font-weight: 600;
    color: #fff;
}

.badge {
    background: #5865f2;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.embed-body pre {
    background: #1e1f22;
    color: var(--text);
    padding: 12px 14px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 13px;
    overflow-x: auto;
    white-space: pre;
}

.cog-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: var(--embed-bg);
    border: 1px solid var(--embed-border);
    border-radius: 6px;
}

.nav-btn {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--embed-border);
    border-radius: 4px;
    padding: 4px 12px;
    font-family: var(--mono);
    font-size: 14px;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}

.nav-btn:hover {
    background: #383a40;
    color: #fff;
}

.cog-label {
    color: #fff;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.cog-count {
    color: var(--text-dim);
    font-size: 12px;
}

.beta-form {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.beta-input {
    flex: 1;
    background: #1e1f22;
    color: var(--text);
    border: 1px solid var(--embed-border);
    border-radius: 4px;
    padding: 10px 12px;
    font-family: var(--mono);
    font-size: 13px;
    outline: none;
    transition: border-color 120ms ease;
    min-width: 0;
}

.beta-input:focus {
    border-color: var(--accent);
}

.beta-input::placeholder {
    color: var(--text-dim);
}

.beta-submit {
    cursor: pointer;
    font-family: var(--mono);
}

.beta-status {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 12px;
    min-height: 1em;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--embed-bg);
    color: var(--text);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 13px;
    border: 1px solid var(--embed-border);
    transition: background 120ms ease, transform 120ms ease;
}

.btn:hover {
    background: #383a40;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn.primary:hover {
    background: var(--accent-dark);
}

footer {
    color: var(--text-dim);
    font-size: 12px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--embed-border);
}

@media (max-width: 480px) {
    body { padding: 24px 16px; }
    .hero { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 26px; }
}
