*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: #fff;
}

body {
    min-height: 100vh;
    margin: 0;
    color: #000;
    font-family: "Times New Roman", Times, serif;
    background: #fff;
}

img,
video,
iframe {
    max-width: 100%;
}

a {
    color: #0000ee;
    text-decoration: underline;
}

a:visited {
    color: #551a8b;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* middle is bigger */
    gap: 20px;
    align-items: start;
}

/* center image */
.center-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* optional: make iframe responsive */
.youtube-box iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* stack on small screens */
@media (max-width: 800px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

.top-junk {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 19px;
    padding: 5px 11px;
    border-bottom: 3px double #000;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

main {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.logo-zone {
    position: relative;
    width: min(1120px, calc(100% - 18px));
    margin: 30px auto 10px;
    text-align: center;
}

.crek-logo {
    display: block;
    width: min(850px, 94vw);
    margin: 0 auto;
    image-rendering: auto;
}

h1 {
    margin: -6px 0 0;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: 72px;
    font-weight: 400;
    letter-spacing: 0;
    text-decoration: underline overline;
}

h2 {
    margin: 0 0 9px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
}

.about-crek {
    width: min(680px, 92vw);
    margin: 5px auto;
    padding: 7px;
    border: 2px dotted #444;
    font-size: 20px;
    line-height: 1.25;
    background: #fff;
}

.logo-notes {
    display: block;
    width: min(370px, 84vw);
    min-height: 58px;
    margin: -3px auto 4px;
    transform: rotate(-1deg);
}

.bad-stamp {
    position: absolute;
    z-index: 2;
    padding: 4px 8px;
    border: 2px solid #000;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.stamp-left {
    left: 1%;
    top: 25px;
    transform: rotate(-9deg);
}

.stamp-right {
    right: 3%;
    top: 70px;
    transform: rotate(12deg);
}

.link-pile {
    position: relative;
    width: min(570px, calc(100% - 22px));
    margin: 8px 0 22px 18px;
    padding: 10px;
    border: 4px ridge #777;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.link-pile a {
    display: inline-block;
    margin: 6px 11px 6px 0;
    padding: 4px 7px;
    border: 1px solid #000;
    background: #fff;
}

.proxy-link {
    width: min(335px, 100%);
    vertical-align: top;
}

.proxy-link img {
    display: block;
    margin-bottom: 3px;
}

.link-pile .note-box {
    display: block;
    width: min(355px, 100%);
    margin: 3px 0 8px;
}

.youtube-box {
    width: min(780px, calc(100% - 18px));
    margin: -12px 9px 25px auto;
    padding: 8px;
    border: 3px dashed #111;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    transform: rotate(1deg);
}

.youtube-box iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 5px inset #bbb;
    background: #fff;
}

.asset-mess {
    position: relative;
    min-height: 1260px;
    width: min(1220px, calc(100% - 14px));
    margin: 0 auto;
    border-top: 5px solid #000;
    border-bottom: 5px solid #000;
    background:
        repeating-linear-gradient(90deg, transparent 0, transparent 34px, rgba(0, 0, 0, 0.05) 35px),
        #fff;
}

.asset-mess > h2 {
    position: absolute;
    left: 17px;
    top: 10px;
    width: min(470px, calc(100% - 34px));
    padding: 5px;
    border: 1px solid #000;
    background: #fff;
}

.asset-card {
    position: absolute;
    display: grid;
    gap: 5px;
    width: 230px;
    padding: 6px;
    border: 2px solid #000;
    background: #fff;
    box-shadow: 5px 5px 0 #aaa;
}

.asset-card img,
.asset-card video {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border: 1px solid #555;
    background: #fff;
}

.note-box {
    width: 100%;
    min-height: 74px;
    border: 2px inset #999;
    border-radius: 0;
    padding: 4px;
    margin: 0;
    color: #000;
    background: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.tilt-left {
    transform: rotate(-3deg);
}

.tilt-right {
    transform: rotate(3deg);
}

.rat-card {
    top: 78px;
    left: 23px;
}

.iam-card {
    top: 65px;
    right: 75px;
    width: 260px;
}

.illya-card {
    top: 300px;
    left: 310px;
    width: 245px;
}

.kohaku-card {
    top: 220px;
    right: 350px;
}

.lillie-card {
    top: 575px;
    left: 60px;
    width: 255px;
}

.nero-card {
    top: 525px;
    right: 60px;
    width: 270px;
}

.shirou-card {
    top: 760px;
    left: 350px;
}

.rolling-card {
    top: 850px;
    right: 330px;
    width: 250px;
}

.venusaur-card {
    top: 955px;
    left: 70px;
    width: 280px;
}

.mp4-card {
    top: 980px;
    right: 40px;
    width: 330px;
}

.ting-lu-zone {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 18px;
    width: min(1180px, calc(100% - 18px));
    margin: 24px auto;
    align-items: start;
}

.ting-image-side {
    position: sticky;
    top: 48px;
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 6px groove #777;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.ting-image-side img {
    border: 1px solid #000;
    background: #fff;
}

.lyrics-box {
    padding: 8px;
    border: 2px dashed #000;
    background: #fff;
}

.lyrics-box pre {
    overflow: auto;
    max-height: 2950px;
    margin: 0;
    padding: 8px;
    border: 1px solid #888;
    white-space: pre-wrap;
    word-break: break-word;
    background: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 15px;
    line-height: 1.25;
}

.footer-trash {
    margin: 20px 12px 35px;
    padding: 8px;
    border: 1px solid #000;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 760px) {
    h1 {
        font-size: 46px;
    }

    .bad-stamp {
        position: static;
        display: inline-block;
        margin: 3px;
        transform: none;
    }

    .link-pile,
    .youtube-box {
        margin: 12px auto;
        transform: none;
    }

    .asset-mess {
        display: grid;
        gap: 12px;
        min-height: 0;
        padding: 62px 8px 12px;
    }

    .asset-mess > h2,
    .asset-card {
        position: static;
        width: 100%;
        transform: none;
    }

    .ting-lu-zone {
        grid-template-columns: 1fr;
    }

    .ting-image-side {
        position: static;
    }
}
