@font-face {
    font-family: 'Minecraft';
    src: url("Minecraftia.ttf");
}
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Minecraft', monospace;
    font-size: 30px;
    white-space: nowrap;
}
.stats-table {
    width: 100%;
    margin-top: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 20px;
    background: #e8e8e8;
    overflow: hidden;
    border: #222 2px solid;
}
.stats-header {
    border-bottom: #222 2px solid;
    background: #a6e36b;
    color: #222;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    padding: 6px 0;
}
.stats-row {
    background: #f3f5f1;
    height: 48px;
}
.stats-row:nth-child(even) {
    background: #e0e3de;
}
.stats-cell {
    text-align: center;
    letter-spacing: 1px;
    padding: 0 12px;
    font-family: 'Minecraft', monospace;
    max-width: 100px;
}
.stats-cell.left {
    text-align: left;
    font-weight: bold;
    color: #222;
}
.stats-cell.right {
    text-align: right;
    font-weight: bold;
    color: #222;
}
.stats-label {
    font-weight: bold;
    color: #444;
    font-size: 18px;
    letter-spacing: 2px;
    max-width: 10000px;
}
.stats-footer {
    background: #a6e36b;
    color: #222;
    font-size: 35px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    height: 60px;
}
.stats-footer .footer-cell {
    display: 1;
    width: 32%;
    text-align: center;
    font-size: 35px;
    font-family: 'Minecraft', monospace;
}
input.stats-edit {
    font-family: 'Minecraft', monospace;
    font-size: 28px;
    width: 90%;
    background: #e8e8e8;
    border: 2px solid #a6e36b;
    padding: 2px 6px;
    color: #222;
    outline: none;
}
@media (max-width: 600px) {
    .stats-table { font-size: 16px; }
    .stats-footer .footer-cell { font-size: 20px; }
}

.player-container {
    position: relative;
    width: 400px;
    height: 600px;
    margin: 0 8px;
    perspective: 900px;
}
.player-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.nametag {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    transform-origin: center center;
    transform-style: preserve-3d;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 6px 10px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    backface-visibility: hidden;
    z-index: -1;
}
@keyframes fireBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}
