html,
body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    font-family: 'OpenRunde', Arial, sans-serif;
    line-height: 150%;
    font-size: 15px;
    color: #e0e0e0
}

/* OpenRunde font weights */
@font-face {
    font-family: 'OpenRunde';
    src: url('../fonts/OpenRunde-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'OpenRunde';
    src: url('../fonts/OpenRunde-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'OpenRunde';
    src: url('../fonts/OpenRunde-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'OpenRunde';
    src: url('../fonts/OpenRunde-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    background: #0a0a0a
}

.icon {
    -webkit-user-select: none;
    display: inline-block
}

.icon-offline {
    content: -webkit-image-set(url(default_100_percent/offline/100-error-offline.png) 1x, url(default_200_percent/offline/200-error-offline.png) 2x);
    position: relative
}

.hidden {
    display: none
}

.offline .interstitial-wrapper {
    position: relative;
    color: #e0e0e0;
    font-size: 1em;
    line-height: 1.55;
    margin: 0 auto 100px;
    max-width: 600px;
    width: 100%
}

.offline .runner-container {
    height: 150px;
    max-width: 600px;
    overflow: hidden;
    position: relative;
    width: 44px
}

.offline .runner-canvas {
    height: 150px;
    max-width: 600px;
    opacity: 1;
    overflow: hidden;
    position: absolute;
    top: 0;
    z-index: 2
}

.offline .controller {
    background: transparent;
    height: 250%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1
}

#offline-resources {
    display: none
}

.desc,
.sec,
footer {
    margin: 0 auto;
    width: 100%;
    max-width: 700px;
    padding: 30px 5px;
    box-sizing: border-box
}

.sec {
    padding: 0;
    display: table;
    background: #efefef;
    border-radius: 5px;
    margin-top: 150px
}

body.offline.night .sec {
    background: #0f0f0f
}

body.offline.night.nyan .sec {
    background: #090f2b
}

.controlsec {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    text-align: right;
    padding: 10px;
    box-sizing: border-box
}

img.logo {
    float: left;
    width: 125px;
    height: 125px;
    margin-right: 20px;
    margin-bottom: 20px;
    background-position: 2px 2px;
    background-size: contain;
    background-clip: border-box;
    border-radius: 50%;
    shape-outside: border-box circle(50%);
    shape-margin: 20px;
    border: 5px solid #fff
}

a:hover {
    text-decoration: none
}

body.offline.night {
    background: #0a0a0a;
    color: #e0e0e0
}

body.offline.night h1 {
    color: #e0e0e0
}

.asph {
    height: 20px;
    background: #535353;
    display: block;
    max-width: 600px;
    width: 100%;
    margin: -120px auto 100px;
    border-radius: 0 0 5px 5px
}

.asph div {
    border-bottom: dashed 2px #e3deb3;
    height: 5px
}

.asph.roof {
    background: #783413;
    border-radius: 0;
    height: 60px
}

body.santa .interstitial-wrapper {
    background: #0277bd;
    border-radius: 5px 5px 0 0;
    padding-top: 5px;
    height: 130px
}

.snow {
    background-image: url(/img/snow.png), url(/img/snow1.png), url(/img/snow2.png) !important;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    animation: snow 20s linear infinite
}

@keyframes snow {
    from {
        background-position: 0 0, 0px 0, 0px 0
    }

    to {
        background-position: 500px 500px, 500px 400px, -300px 300px
    }
}

@keyframes translateBackground {
    0% {
        background-position-x: 0
    }

    100% {
        background-position-x: -600px
    }
}

/* Token info bar */
.token-info {
    width: 100%;
    max-width: 600px;
    margin: 12px auto;
    box-sizing: border-box;
    padding: 8px 12px;
}
.token-info-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
}
.token-col {
    flex: 1 1 0;
    text-align: center;
}
.token-title {
    color: #9a9a9a;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
}
.token-value {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 520px) {
    .token-info-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .token-col { padding: 6px 0 }
}

.btn {
    border: 1px solid #751c17;
    border-color: #751c17 #751c17 #5a1511 #751c17;
    border-radius: 3px;
    background: #751c17;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 15px 17px rgba(255, 255, 255, .1), inset 0 -5px 12px rgba(0, 0, 0, .3);
    cursor: pointer;
    font-size: 80%;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
    text-decoration: none;
    color: #ffffff;
    padding: 3px 5px;
    height: 22px;
    vertical-align: middle
}

.zoom {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    position: relative;
    border: 1px solid #5d5d5d;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
    display: block
}

.zoom:before {
    content: '';
    width: 2px;
    height: 6px;
    background: #5d5d5d;
    display: block;
    top: 1px;
    left: 3px;
    position: absolute;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8)
}

.zoom-inner {
    width: 4px;
    height: 3px;
    display: block;
    background: #5d5d5d;
    position: absolute;
    top: 7px;
    left: 7px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg)
}

.zoom:after {
    content: '';
    height: 2px;
    width: 6px;
    background: #5d5d5d;
    display: block;
    top: 3px;
    left: 1px;
    position: absolute
}

body.offline.night .zoom {
    border: 1px solid #c0c0c0
}

body.offline.night .zoom:before,
body.offline.night .zoom-inner,
body.offline.night .zoom:after {
    background: #c0c0c0;
    box-shadow: none
}

body.offline.night .btn {
    text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 15px 17px rgba(255, 255, 255, .1), inset 0 -5px 12px rgba(0, 0, 0, .3);
    background: #751c17;
    border-radius: 5px;
    color: #ffffff;
    border-color: #751c17
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #0a0a0a;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.navbar-left,
.navbar-right {
    flex: 0 0 auto;
}

.navbar-center {
    flex: 0 0 auto;
    text-align: center;
}

.navbar-title {
    font-family: 'OpenRunde', Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.6px;
}

.navbar-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 6px;
}

.navbar-icon:hover {
    transform: scale(1.1);
}

.offline.sizegx12 .interstitial-wrapper {
    transform: scale(1.2);
    margin-top: 20px;
    margin-bottom: 110px
}

.offline.sizegx15 .interstitial-wrapper {
    transform: scale(1.5);
    margin-top: 30px;
    margin-bottom: 130px
}

.offline.sizegx12 .asph {
    max-width: 720px
}

.offline.sizegx15 .asph {
    max-width: 900px
}
@media(max-width:1050px) {
    #zoombtn {
        display: none
    }
}

/* Save score / Leaderboard styles */
.save-score {
    width: 100%;
    max-width: 600px;
    margin: 18px auto 60px;
    box-sizing: border-box;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    border: 1px solid #19191b;
}
.save-score-inner { display: flex; flex-direction: column; gap: 12px; }
.save-controls { display:flex; flex-direction:column; gap:10px; margin-bottom:6px }
.save-controls .field { display:flex; flex-direction:column; gap:6px; }
.save-controls .field label { color:#bfbfbf; font-size:15px; margin:0; }
.save-controls input[type="text"]{ width:100%; max-width:100%; box-sizing:border-box; padding:10px 12px; border-radius:6px; border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); color:#fff; font-size:15px }
.save-controls .actions { display:flex; gap:8px; justify-content:center }
.save-controls .actions .btn{ padding:8px 12px; height:auto; font-size:15px }
.current-score { color:#cfcfcf; font-size:16px; text-align:center }
.current-score strong { color:#fff; font-weight:700; margin-left:6px; font-size:18px }
.leaderboard { background: rgba(0,0,0,0.15); padding:8px; border-radius:4px; margin-top:12px }
.leaderboard h3 { margin:0 0 8px 0; font-size:14px; color:#e6e6e6 }
.leader-list { list-style:decimal inside; margin:0; padding:0; }
.leader-list li { display:grid; grid-template-columns: 1fr 140px 64px; align-items:center; gap:8px; padding:6px 8px; border-bottom:1px solid rgba(255,255,255,0.03); color:#eaeaea }
.leader-list li .l-name { color:#fff; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.leader-list li .l-score { color:#ffd7d0; font-weight:700; text-align:right }
.leaderboard .empty { color:#9a9a9a; padding:8px }

.l-wallet { color:#ffb7b0; text-decoration:none; display:inline-block; width:100%; text-align:center }
.l-wallet:hover { text-decoration:underline }
.l-wallet-wrap { display:block; justify-self:center }

@media (max-width:520px){
    .save-controls { flex-direction:column; align-items:stretch }
    .save-controls input[type="text"]{ width:100% }
    .leader-list li { grid-template-columns: 1fr 110px 56px }
}