* {
    box-sizing: border-box;
}

body {
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    background: #d8d8d8;
    margin: 0;
    padding: 1rem;
}

a {
    color: #1a1a1a;
}

a:visited {
    color: #1a1a1a;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 0 0 1.5rem;
    border: 1px solid #d0d0d0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

header {
    background:
        radial-gradient(ellipse 90% 80% at 50% 36%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 46%),
        #0b0b0b;
    color: #f3f3f3;
    padding: 0;
    overflow: hidden;
}

header h1 {
    position: relative;
    margin: 0;
    padding: 1.35rem 1rem 1.05rem;
    font-size: clamp(4.4rem, 10vw, 6.15rem);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

header h1::before {
    content: "";
    position: absolute;
    inset: -20% 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 22% 58% at 50% 50%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 70%),
        conic-gradient(
            from 0deg at 50% 50%,
            rgba(255, 255, 255, 0) 0deg,
            rgba(255, 255, 255, 0) 42deg,
            rgba(255, 255, 255, 0.05) 52deg,
            rgba(255, 255, 255, 0.24) 62deg,
            rgba(255, 255, 255, 0.05) 72deg,
            rgba(255, 255, 255, 0) 82deg,
            rgba(255, 255, 255, 0) 84deg,
            rgba(255, 255, 255, 0.12) 88deg,
            rgba(255, 255, 255, 0.7) 90deg,
            rgba(255, 255, 255, 0.12) 92deg,
            rgba(255, 255, 255, 0) 98deg,
            rgba(255, 255, 255, 0) 108deg,
            rgba(255, 255, 255, 0.04) 118deg,
            rgba(255, 255, 255, 0.22) 128deg,
            rgba(255, 255, 255, 0.04) 138deg,
            rgba(255, 255, 255, 0) 150deg,
            rgba(255, 255, 255, 0) 210deg,
            rgba(255, 255, 255, 0.04) 220deg,
            rgba(255, 255, 255, 0.22) 230deg,
            rgba(255, 255, 255, 0.04) 240deg,
            rgba(255, 255, 255, 0) 252deg,
            rgba(255, 255, 255, 0) 262deg,
            rgba(255, 255, 255, 0.12) 268deg,
            rgba(255, 255, 255, 0.7) 270deg,
            rgba(255, 255, 255, 0.12) 272deg,
            rgba(255, 255, 255, 0) 278deg,
            rgba(255, 255, 255, 0) 288deg,
            rgba(255, 255, 255, 0.05) 298deg,
            rgba(255, 255, 255, 0.24) 308deg,
            rgba(255, 255, 255, 0.05) 318deg,
            rgba(255, 255, 255, 0) 328deg,
            rgba(255, 255, 255, 0) 360deg
        );
    -webkit-mask-image: radial-gradient(ellipse 80% 88% at 50% 50%, #000 18%, rgba(0, 0, 0, 0) 76%);
    mask-image: radial-gradient(ellipse 80% 88% at 50% 50%, #000 18%, rgba(0, 0, 0, 0) 76%);
}

@font-face {
    font-family: "Jolly Lodger";
    src: url("/static/fonts/JollyLodger-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

header h1 a,
.brand {
    font-family: "Jolly Lodger", cursive;
    font-weight: 400;
    letter-spacing: 0.01em;
}

header h1 a {
    position: relative;
    z-index: 1;
    display: inline-block;
    color: #fff;
    text-decoration: none;
    text-shadow:
        0 1px 0 #000,
        0 2px 0 #000,
        0 10px 18px rgba(0, 0, 0, 0.8),
        0 0 18px rgba(255, 255, 255, 0.28);
}

header h1 a:visited {
    color: #fff;
}

header h1 a:hover {
    text-decoration: none;
    text-shadow:
        0 2px 0 #000,
        0 10px 18px rgba(0, 0, 0, 0.8),
        0 0 28px rgba(255, 255, 255, 0.72);
}

header .header-nav {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 0.75rem;
    background: #0b0b0b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

header .header-nav a {
    margin: 0;
    padding: 0.55rem 0.85rem;
    color: #f5f5f5;
    text-decoration: none;
}

header .header-nav a:visited {
    color: #f5f5f5;
}

header .header-nav a:hover {
    background: #2c2c2c;
}

header .header-nav a.subtle,
header .header-nav a.subtle:visited {
    color: #c8c8c8;
}

.paste-linkbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    padding: 0.35rem 1.15rem 1rem;
    background:
        radial-gradient(ellipse 46% 140% at 50% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 72%),
        #0b0b0b;
}

.paste-link-bubble {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: min(100%, 38rem);
    padding: 0.28rem 0.28rem 0.28rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -12px 18px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px) saturate(0.4);
    -webkit-backdrop-filter: blur(14px) saturate(0.4);
}

.paste-link-value {
    flex: 1;
    min-width: 0;
    font-family: inherit;
    font-size: 13px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    border: none;
    padding: 0.35rem 0.2rem;
    text-overflow: ellipsis;
}

.paste-link-value:focus {
    outline: none;
}

.copy-link {
    display: grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.copy-link svg {
    width: 15px;
    height: 15px;
    display: block;
}

.copy-link .icon-check {
    display: none;
}

.copy-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.copy-link.copied {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.copy-link.copied .icon-copy {
    display: none;
}

.copy-link.copied .icon-check {
    display: block;
}

.subnav {
    display: flex;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.04);
    background-color: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.subnav a,
.subnav a:visited {
    padding: 0.5rem 0.95rem;
    color: #e8e8e8;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.subnav a:hover,
.subnav-menu summary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.subnav-menu {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.subnav-menu summary {
    list-style: none;
    cursor: pointer;
    padding: 0.5rem 0.95rem;
    color: #e8e8e8;
}

.subnav-menu summary::-webkit-details-marker {
    display: none;
}

.subnav-menu summary::after {
    content: " \25BE";
    font-size: 0.7em;
}

.subnav-menu-panel {
    display: none;
    position: absolute;
    z-index: 3;
    top: 100%;
    left: 0;
    min-width: 8rem;
    background: rgba(20, 20, 20, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.subnav-menu[open] .subnav-menu-panel {
    display: block;
}

.subnav-menu-panel a {
    display: block;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

main {
    padding: 1.25rem 1.5rem 0;
    overflow-x: auto;
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0 0.4rem;
    padding: 0;
    background: transparent;
    border: none;
}

.toc a,
.toc a:visited {
    color: #1a1a1a;
    text-decoration: none;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 1px 2px rgba(0, 0, 0, 0.08);
}

.toc a:hover {
    background: rgba(255, 255, 255, 0.72);
}

.fold {
    border-top: 1px solid #e4e4e4;
    margin: 0.15rem 0;
}

.fold > summary {
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    padding: 0.55rem 0.15rem;
}

.fold > summary:hover {
    background: #f3f3f3;
}

.manage {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.manage h2 {
    font-size: 1rem;
}

button,
.form-actions button {
    font-family: inherit;
    font-size: 14px;
    padding: 0.4rem 1rem;
    background: #161616;
    color: #f3f3f3;
    border: 1px solid #111;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

button:hover,
.form-actions button:hover {
    background: #2a2a2a;
}

button.quiet,
.form-actions button.quiet {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: none;
}

button.quiet:hover,
.form-actions button.quiet:hover {
    background: rgba(0, 0, 0, 0.06);
}

.claim {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0.75rem;
}

button:disabled,
input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form-group select {
    font-family: inherit;
    font-size: 14px;
    padding: 0.35rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    max-width: 20rem;
    font-family: inherit;
    font-size: 14px;
    padding: 0.35rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 0.4rem 0.6rem;
    text-align: left;
}

.hidden { display: none; }

.finding { border-top: 1px solid #ddd; padding-top: 0.75rem; margin-top: 0.75rem; }

.parser-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0.15rem 0 0.2rem;
    padding: 0;
}

.parser-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border: 1px solid #cfcfcf;
    border-radius: 999px;
    color: #9a9a9a;
    background: #f3f3f3;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.parser-badge.on {
    color: #f3f3f3;
    background: #1a1a1a;
    border-color: #1a1a1a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.takeaway {
    background: rgba(0, 0, 0, 0.04);
    border-left: 4px solid #1a1a1a;
    padding: 0.65rem 0.85rem;
    margin: 0.6rem 0 1rem;
}

.facts {
    background: #fafafa;
    border: 1px solid #e4e4e4;
    padding: 0.65rem 0.85rem;
    margin: 0.5rem 0 1rem;
}

.facts h4 {
    margin: 0 0 0.4rem;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #555;
}

.finding-note {
    display: block;
    margin-top: 0.15rem;
}

.token-value {
    display: block;
    margin-top: 0.25rem;
    word-break: break-all;
}

.meta-list dt { font-weight: bold; }
.meta-list dd { margin: 0 0 0.4rem 0; }

.filters label { margin-right: 0.75rem; }

.admin-table th {    background: #f5f5f5;
}

.entropy-table {
    table-layout: fixed;
}

.entropy-table td,
.entropy-table th {
    vertical-align: top;
    overflow-wrap: anywhere;
}

.entropy-table tbody tr:nth-child(odd) td {
    background: #fff;
}

.entropy-table tbody tr:nth-child(even) td {
    background: #f0f0f0;
}

.entropy-table .token-value {
    display: inline;
}

.image-card {
    margin: 0 0 1.25rem;
}

.image-card figcaption {
    margin-top: 0.35rem;
}

.carved-image {
    min-width: 80px;
    max-width: min(100%, 640px);
    height: auto;
    image-rendering: pixelated;
    border: 1px solid #ccc;
    background-color: #fafafa;
    background-image:
        linear-gradient(45deg, #e4e4e4 25%, transparent 25%),
        linear-gradient(-45deg, #e4e4e4 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e4e4e4 75%),
        linear-gradient(-45deg, transparent 75%, #e4e4e4 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.admin-table h2 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem 0;
}

.paste-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 13px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    resize: vertical;
}

.form-actions {
    margin-top: 0.5rem;
}

.paste-meta {
    margin-bottom: 0.5rem;
    font-size: 13px;
    color: #666;
}

.paste-meta a,
.paste-meta a:visited {
    color: #1a1a1a;
    margin-right: 1rem;
}

.paste-content {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 1rem;
    overflow-x: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.paste-content code {
    font-family: inherit;
    font-size: 13px;
}

footer {
    margin: 1.5rem 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 13px;
}

footer a,
footer a:visited {
    color: #1a1a1a;
    margin-right: 0.9rem;
}

.error {
    color: #111;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.05);
    border-left: 3px solid #111;
    padding: 0.35rem 0.6rem;
}

.cli-help {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.cli-help h2 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.cli-help p {
    margin: 0.5rem 0;
}

.cli-help pre {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 0.75rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.cli-help code {
    font-size: 13px;
}
