@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url(assets/fonts/cinzel-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url(assets/fonts/cinzel-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
html, body {
    margin: 0;
    padding: 0;
    background: #2b2418;
    font-family: Cinzel, Georgia, serif;
    color: #3b2a14;
}
html {
    height: 100%;
}
body {
    min-height: 100%;
    display: flex;
}
a {
    -webkit-tap-highlight-color: transparent;
}
main {
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    margin: auto;
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.poster {
    display: block;
    width: 100%;
}
.poster img {
    display: block;
    width: 100%;
    height: auto;
}
.buttons {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(260px, 70vw);
    min-height: 46px;
    aspect-ratio: 755 / 146;
    padding-bottom: 0.1em;
    background: url(assets/Button_StartGame50.png) center / 100% 100% no-repeat;
    color: #f6e7c1;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 1px 2px #3b2a14, 0 0 2px #3b2a14;
    transition: transform 0.1s;
}
.button:hover {
    transform: scale(1.04);
}
.button:active {
    transform: scale(0.97);
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 10;
    box-sizing: border-box;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    background: rgba(43, 36, 24, 0.85);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.modal:target {
    display: block;
}
.modal-inner {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
}
.backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
}
.panel {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    padding: 20px 24px 24px;
    background: #f3e9d2;
    border: 3px solid #3b2a14;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.panel h2 {
    margin: 0;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.panel ul {
    margin: 0;
    padding-left: 1.2em;
    font-size: 17px;
    line-height: 1.45;
}
.panel li + li {
    margin-top: 10px;
}
.panel-story {
    padding: 12px;
    gap: 12px;
}
.panel-story img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.panel .button {
    position: sticky;
    bottom: 0;
}
@media (max-width: 480px), (max-height: 480px) {
    .modal {
        padding: 10px;
    }
    .panel {
        padding: 14px 16px 16px;
        gap: 12px;
    }
    .panel h2 {
        font-size: 22px;
    }
    .panel ul {
        font-size: 15px;
        line-height: 1.4;
    }
    .button {
        font-size: 19px;
    }
}
