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

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: white;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
    padding: 30px 16px 60px;
}

.back-link {
    align-self: flex-start;
    margin-left: max(4vw, calc(50% - 380px));
    margin-bottom: 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link-bottom {
    align-self: flex-start;
    margin-left: max(4vw, calc(50% - 380px));
    margin-top: 30px;
    margin-bottom: 0;
}

.song-title {
    font-family: sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

.paper-box {
    width: 100%;
    max-width: 760px;
    position: relative;
    padding: 10px 0;
}

.ascii-row {
    font-family: 'Courier New', Courier, monospace;
    color: #999;
    font-size: 0.9rem;
    line-height: 1;
    white-space: pre;
    overflow: hidden;
}

.paper-inner {
    display: flex;
    align-items: stretch;
}

.ascii-col {
    font-family: 'Courier New', Courier, monospace;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: pre-wrap;
    word-break: break-all;
    width: 1.2em;
    overflow: hidden;
    padding: 10px 6px;
    user-select: none;
}

.paper-content {
    flex: 1;
    font-family: 'Kalam', cursive;
    font-size: 1.4rem;
    line-height: 1.9;
    color: #2b2b2b;
    padding: 10px 20px;
    white-space: pre-wrap;
}

.not-found {
    font-family: sans-serif;
    color: #777;
    text-align: center;
}