:root {
    --theme: #deba7d;
    --bg: #182449b0;
    font-family: "El Messiri";			
}
body {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
    margin: 0;
    padding: 0;
    background: var(--bg);
}
#play {
    position: absolute;
    opacity: 1;
    transition: 0.1s;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    grid-gap: 2em;
    align-items: center;
    justify-content: center;
    z-index: 9999;			
}
body.is-playing #play {
    opacity: 0;
    display: none;			
}
button {
    color: var(--theme);
    background: var(--bg);
    font-size: 32px;
    padding: 0.5em 1.5em;
    border-radius: 16px;
    font-family: unset;
    align-items: center;
    display: flex;
    grid-gap: 0.375em;
    border: 2px solid var(--theme);
    cursor: pointer;
}
#background {
    position: absolute;
    max-width: 1000px;
    z-index: -1;
    mask: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
main {
    display: flex;
    align-items: center;
    flex-direction: column;
    align-self: stretch;
    flex-grow: 1;
}
main > header {
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 0;
}
#play-area {
    flex-grow: 1;
    width: 100%;
    max-width: 700px;
    max-height: 700px;
    display: flex;
    flex-direction: column;	
    position: relative;
}
#play-area header {
    display: flex;
    justify-content: center; 
    padding: 0.375em 0;
    align-self: stretch;			
}
#play-area header > span {
    background: var(--bg);
    color: var(--theme);	
    display: flex;
    align-items: baseline;
    grid-gap: 0.125em;
    padding: 0.25em;
    width: 120px;
    justify-content: center;		
}

#board {
    display: flex;
    flex-grow: 1;
    align-self: stretch;			
}
#terror-bar-cont {
    display: inline-flex;
    width: 4em;
    height: 0.5em;
    overflow: hidden;
    align-self: center;
    transform: translateY(1px);
    position: relative;
    border-radius: 2px;
}
#terror-bar {
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 2px;
    background: var(--theme);
    transition: transform 0.1s;
    transform-origin: left;			
}
#terror-bar + span {
    display: inline-flex;
    height: 100%;
    width: 2px;
    border-radius: 2px;
    background: var(--theme);
    position: absolute;
}
h1 {
    color: var(--theme);
    background: linear-gradient(90deg, transparent, var(--bg) 25%, var(--bg) 75%, transparent);
    flex-grow: 1;
    text-align: center;
    padding: 0.25em;
    margin: 0 0.125em;
    max-width: 700px;
    font-weight: 700;
    font-size: 50px;
    line-height: 1.375;
}
audio {
    position: fixed;
    top: -999999px;
    left: -999999px;
    height: 1px;
    width: 1px;			
}
.missile {
    display: flex;
    height: 64px;
    width: 12px;
    clip-path: polygon(0 100%, 0 25%, 50% 0, 100% 25%, 100% 100%, 0 100%);
    background-color: red;
    position: absolute;
    bottom: 96px;
    left: 32px;
    transition: transform 0.1s;
    transform-origin: center;
}
.fuel {
    width: 4px;
    height: 46px;
    background: white;
    display: flex;
    position: absolute;
    bottom: 0;
    right: 2px;
    transform: translateY(100%);
}
.dialog {
    background: var(--bg);
    backdrop-filter: blur(5px);
    color: var(--theme);
    font-family: monospace;
    font-size: 24px;
    font-weight: 600;
    padding: 2em 3em;
    padding-bottom: 5em;
    text-align: center;
    flex-direction: column;
    align-items: center;
    position: absolute;
    display: none;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    transition: opacity 0.2s;
    z-index: 99999;
    @starting-style {
        opacity: 0;
    }
}
.show-instructions .dialog {
    display: flex;
    opacity: 1;			
}

.dialog section {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-gap: 3em;
}
.dialog ul {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-gap: 3em;
}
.dialog li {
    padding: 2.5em;
    width: 159px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--theme);
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-gap: 1.25em;
}
@media only screen and (max-width:700px) {
    h1 {
        background:	var(--bg);
        margin: 0;		
    }
    #play-area {
        max-height: unset;				
    }
}