* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
    --black: #000000;
    --gray-900: #111111;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --font-sans: 'IBM Plex Sans', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}
html, body { height: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.8rem;
    color: var(--gray-500);
}
.stat { display: flex; align-items: center; gap: 0.4rem; }
.stat-value { font-family: var(--font-mono); font-weight: 400; color: var(--black); }
.stat-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.15s;
}
.stat-link:hover { background: var(--gray-100); }
.stat-link:hover .stat-value { text-decoration: underline; }
/* Main */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    padding-top: 10vh;
}
/* Logo */
.logo-section { text-align: center; margin-bottom: 2rem; }
.logo {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    user-select: none;
}
.logo a {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
}
.logo-text {
    font-size: 3.92rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--black);
}
.logo-mark {
    font-family: var(--font-mono);
    font-size: 2.42rem;
    color: #16a34a;
    -webkit-animation: tau-spin 10s linear infinite;
    animation: tau-spin 10s linear infinite;
    display: inline-block;
}
.logo-mascot {
    height: 1.76rem;
    image-rendering: pixelated;
    margin-bottom: 0.29rem;
}
.logo-text-img {
    height: 4.13rem;
    image-rendering: pixelated;
}
.logo-mark-img {
    height: 1.83rem;
    margin-left: -0.6rem;
    margin-bottom: 0.29rem;
    -webkit-animation: tau-spin 10s linear infinite;
    animation: tau-spin 10s linear infinite;
}
@-webkit-keyframes tau-spin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(-360deg); }
}
@keyframes tau-spin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(-360deg); }
}
.acronym {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}
.tagline { margin-top: 0; font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }
.tagline strong { color: var(--black); font-weight: 400; }
.positioning {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    font-style: italic;
    letter-spacing: 0.01em;
}
/* Search */
.search-container { width: 100%; max-width: 600px; margin-bottom: 3rem; }
.search-box {
    display: flex;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.search-box:focus-within { border-color: var(--black); }
.search-input {
    flex: 1;
    padding: 0.68rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border: none;
    outline: none;
    background: var(--white);
    color: var(--black);
}
.search-input::placeholder { color: var(--gray-400); }
.search-btn {
    padding: 0.85rem 1.5rem;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.15s;
    letter-spacing: 0.02em;
}
.search-btn:hover { opacity: 0.8; }
.search-hint { text-align: center; font-size: 0.7rem; color: var(--gray-400); margin-top: 0.5rem; }
/* Chain Stats */
.chain-stats {
    max-width: 600px;
    width: 100%;
    border-top: 1px solid var(--gray-200);
    padding-top: 3rem;
    margin-bottom: 3rem;
}
.chain-stats-title {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 1.5rem;
}
.chain-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.chain-stat-item { padding: 0.5rem; }
.chain-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
}
.chain-stat-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--black);
}
/* Supply Indicator */
.supply-indicator { margin: 2rem auto 0; max-width: 500px; width: 100%; text-align: center; }
.supply-available {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 600;
    color: #16a34a;
    line-height: 1;
    letter-spacing: -0.02em;
}
.supply-available-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}
.pressure-track { height: 14px; background: var(--gray-200); overflow: hidden; position: relative; }
.pressure-fill { height: 100%; background: var(--black); transition: width 0.5s; }
.pressure-track::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 8px,
        var(--white) 8px,
        var(--white) 10px
    );
    z-index: 2;
    pointer-events: none;
}
.pressure-staked {
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray-400);
    text-align: center;
}
.pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 0.25rem;
    animation: pulse-anim 2s infinite;
    vertical-align: middle;
}
@keyframes pulse-anim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
/* Recent Blocks */
.recent {
    max-width: 600px;
    width: 100%;
    border-top: 1px solid var(--gray-200);
    padding-top: 3rem;
}
.section-title {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 1.5rem;
}
.block-list { list-style: none; }
.block-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 1rem;
    cursor: pointer;
    transition: background 0.1s;
}
.block-item:hover {
    background: var(--gray-50);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.block-height {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--black);
    min-width: 70px;
}
.block-hash {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray-400);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.block-txs { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gray-500); white-space: nowrap; }
.block-time { font-size: 0.7rem; color: var(--gray-400); white-space: nowrap; }
/* Detail Views */
.detail-view { max-width: 600px; width: 100%; display: none; }
.detail-view.active { display: block; }
.detail-back {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-400);
    cursor: pointer;
    margin-bottom: 1rem;
    display: inline-block;
    transition: color 0.15s;
}
.detail-back:hover { color: var(--black); }
.detail-title {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 1rem;
}
.detail-grid { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.detail-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    padding: 0.6rem 1.5rem 0.6rem 0;
    border-bottom: 1px solid var(--gray-100);
    white-space: nowrap;
}
.detail-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--black);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-100);
    word-break: break-all;
}
.detail-value a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--gray-300);
    text-underline-offset: 2px;
}
.detail-value a:hover { text-decoration-color: var(--black); }
/* Transaction list in block detail */
.tx-list { margin-top: 1.5rem; }
.tx-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.1s;
}
.tx-item:hover {
    background: var(--gray-50);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.tx-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    background: var(--gray-100);
    color: var(--gray-600);
    white-space: nowrap;
}
.tx-hash {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray-400);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tx-amount { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; color: var(--black); white-space: nowrap; }
/* Loading */
.loading { text-align: center; color: var(--gray-400); font-size: 0.8rem; padding: 2rem 0; }
.error-msg {
    text-align: center;
    color: #dc2626;
    font-size: 0.8rem;
    padding: 1rem;
    background: #fef2f2;
    border-radius: 6px;
    margin-bottom: 1rem;
    max-width: 600px;
}
/* Footer */
footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.8rem;
    color: var(--gray-400);
    text-align: center;
}
footer a { color: var(--gray-500); text-decoration: none; margin: 0 0.5rem; }
footer .quote { font-style: italic; }
footer a:hover { color: var(--black); }
footer p { margin-bottom: 0; }
footer p:last-child { margin-top: 0.5rem; }
/* Responsive */
@media (max-width: 600px) {
    .stats-bar { gap: 0.5rem 1.2rem; font-size: 0.65rem; padding: 0.5rem 1rem; }
    .stat, .stat-link { gap: 0.25rem; }
    .stat-link { padding: 0.2rem 0.3rem; }
    .logo-mark { font-size: 1rem; }
    .logo-text { font-size: 2.8rem; }
    .logo-mascot { height: 1.3rem; margin-bottom: 0.15rem; }
    .logo-text-img { height: 2.4rem; }
    .logo-mark-img { height: 1.035rem; margin-left: -0.5rem; margin-bottom: 0.15rem; -webkit-animation: tau-spin 10s linear infinite; animation: tau-spin 10s linear infinite; }
    .chain-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .block-hash { display: none; }
    .main { padding: 1.5rem 1rem; }
    h2 { font-size: 1.1rem; }
    .acronym { font-size: 0.55rem; }
    table { font-size: 0.75rem; }
    pre { padding: 0.75rem; font-size: 0.68rem; overflow-x: auto; }
}
