* {
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 14px;
}

html,
body {
    background-color: #222222;
    overflow: hidden;
}

html,
body,
canvas {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

div {
    -webkit-user-select: none;
    /* webkit (safari, chrome) browsers */
    -moz-user-select: none;
    /* mozilla browsers */
    -khtml-user-select: none;
    /* webkit (konqueror) browsers */
    -ms-user-select: none;
    /* IE10+ */
}

.fade {
    opacity: 0.8;
    transition: opacity .15s ease-in-out;
    -moz-transition: opacity .15s ease-in-out;
    -webkit-transition: opacity .15s ease-in-out;
}

.fade:hover {
    opacity: 1;
}

#skinList {
    height: calc(100% - 112px);
    max-height: 446px;
    overflow: auto;
    position: absolute;
    margin-left: 16px;
    margin-right: 16px;
    left: 0;
    right: 0;
    top: 56px;
}

.skinframe {
    width: 140px;
    height: 186px;
    overflow: hidden;
    position: absolute;
    padding: 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
}

.skinframeselected {
    width: 140px;
    height: 186px;
    overflow: hidden;
    position: absolute;
    padding: 8px;
    border-radius: 8px;
    background: rgba(155, 0, 0, 0.6);
}

.skinSelectButton {
    position: absolute;
    bottom: 8px;
    left: 20px;
    width: 120px;
    height: 40px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #aa22ff;
    border: 0;
    cursor: pointer;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 10px;
}

.skinSelectButton:active,
.skinSelectButton:hover {
    bottom: 7px;
    background: #770099;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#skinSelector {
    display: none;
    width: 692px;
    height: 80%;
    max-height: 542px;
    overflow: hidden;
    position: absolute;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #FFF;
    font-size: 12px;
    top: 32px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
}

.infobox {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -khtml-user-select: auto;
    -ms-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
    display: none;
    width: 50%;
    max-height: 500px;
    overflow: hidden;
    position: absolute;
    padding: 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #FFF;
    font-size: 12px;
    top: 96px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: left;
}

#partnerlist {
    width: calc(100% - 16px);
}

.partnerlistelement {
    cursor: pointer;
    float: left;
    width: 100%;
    color: #ffffff;
    text-decoration: none;
}

.quotes {
    display: none;
    text-align: center;
}

#status {
    position: absolute;
    padding: 10px;
    background: rgba(0, 0, 0, 0);
    color: #FFF;
    font-size: 16px;
    top: 10px;
    right: 10px;
    text-align: center;
    pointer-events: none;
}

#scoreline1 {
    color: #ff8888;
}

.scorelineme {
    color: #88ff88;
}

.scoreline {
    color: #ffffff;
}

#score {
    color: #ffffaa;
    font-weight: bold;
}

#endMenuWrapper {
    -webkit-transition: max-height 1s;
    -moz-transition: max-height 1s;
    -ms-transition: max-height 1s;
    -o-transition: max-height 1s;
    transition: max-height 1s;
    overflow: hidden;
    display: block;
}

#endMenu {
    position: relative;
    margin: auto;
    margin-top: 12px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    overflow: hidden;
    display: none;
}

#endMenu p {
    padding: 0;
    text-align: center;
    font-size: x-large;
    font-weight: bold;
}

#startMenuAd {
    position: absolute;
    display: block;
    width: 260px;
    height: 120px;
    top: 192px;
    right: 25%;
    left: 50%;
    margin-left: 168px;
    background-color: rgba(0, 0, 0, 0.0);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

#startMenuAd2 {
    position: absolute;
    display: block;
    width: 300px;
    height: 250px;
    top: 192px;
    right: calc(50% + 40px);
    margin-right: 128px;
}



#startMenuContact {
    position: relative;
    width: 120px;
    float: right;
}

#startMenuContact3 {
    position: relative;
    width: 120px;
    float: left;
}

#startMenuContact2 {
    position: absolute;
    width: 250px;
    bottom: 8px;
    right: 25%;
    left: 50%;
    margin-left: -125px;
}

#startMenuDownload {
    position: relative;
    margin: auto;
    margin-top: 64px;
    width: 640px;
    padding: 20px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    box-sizing: border-box;
}

#skinSelectDoneButton {
    position: relative;
    width: 128px;
    bottom: 0px;
    height: 40px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #009900;
    border: 0;
    cursor: pointer;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

#skinSelectDoneButton:active,
#skinSelectDoneButton:hover {
    bottom: -1px;
    background: #005500;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#startMenu {
    position: relative;
    margin: auto;
    margin-top: 128px;
    width: 350px;
    padding: 20px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    box-sizing: border-box;
}

#startMenu p {
    padding: 0;
    text-align: center;
    font-size: x-large;
    font-weight: bold;
}

#playerNameInput {
    width: 100%;
    text-align: center;
    padding: 10px;
    border: solid 1px #dcdcdc;
    transition: box-shadow 0.3s, border 0.3s;
    box-sizing: border-box;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 10px;
    outline: none;
}

#playerNameInput:focus,
#playerNameInput.focus {
    border: solid 1px #CCCCCC;
    box-shadow: 0 0 3px 1px #DDDDDD;
}

#startButton {
    position: relative;
    margin: auto;
    margin-top: 10px;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #55aaff;
    border: 0;
    cursor: pointer;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 10px;
}

#startButton:active,
#startButton:hover {
    top: 1px;
    background: #0077ff;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#customButtonWrapper {
    position: relative;
    margin: auto;
    margin-top: 10px;
    width: 100%;
    height: 40px;
}

#customButton {
    position: relative;
    margin: auto;
    margin-top: 10px;
    margin-right: 5%;
    width: 40%;
    height: 40px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #8800ff;
    border: 0;
    cursor: pointer;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 10px;
    float: right;
}

#customButton:active,
#customButton:hover {
    top: 1px;
    background: #440099;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#skinSelectButton {
    position: relative;
    margin: auto;
    margin-top: 10px;
    margin-left: 5%;
    width: 40%;
    height: 40px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #cc2222;
    border: 0;
    cursor: pointer;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 10px;
    float: left;
}

#skinSelectButton:active,
#skinSelectButton:hover {
    top: 1px;
    background: #991111;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#logo {
    width: 65%;
    max-width: 960px;
    height: auto;
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 54px;
    margin: auto;
}

#doneMenu {
    position: relative;
    margin: auto;
    margin-top: 32px;
    width: 192px;
    padding: 20px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    box-sizing: border-box;
}

#doneButton {
    position: relative;
    margin: auto;
    margin-top: 10px;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #55aaff;
    border: 0;
    cursor: pointer;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 10px;
}

#doneButton:active,
#doneButton:hover {
    top: 1px;
    background: #0077ff;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#bigCustomWrapper {
    -webkit-transition: max-height 1s;
    -moz-transition: max-height 1s;
    -ms-transition: max-height 1s;
    -o-transition: max-height 1s;
    transition: max-height 1s;
    overflow: hidden;
    display: none;
    width: 100%;
}

#startMenuWrapper {
    -webkit-transition: max-height 1s;
    -moz-transition: max-height 1s;
    -ms-transition: max-height 1s;
    -o-transition: max-height 1s;
    transition: max-height 1s;
    overflow: hidden;
    display: none;
}

#startMenu h3 {
    padding-bottom: 0;
    margin-bottom: 0;
}

#startMenu ul {
    margin: 10px;
    padding: 10px;
    margin-top: 0;
}

#startMenu .input-error {
    text-align: center;
    color: red;
    opacity: 0;
    font-size: 12px;
}

#startMenuWrapper {
    z-index: 2;
}

#previousPageBtn {
    position: absolute;
    width: 96px;
    height: 32px;
    top: 526px;
    left: 32px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #8800ff;
    border: 0;
    cursor: pointer;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

#previousPageBtn:active,
#previousPageBtn:hover {
    top: 525px;
    background: #440088;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#nextPageBtn {
    position: absolute;
    width: 96px;
    height: 32px;
    top: 526px;
    left: 214px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #8800ff;
    border: 0;
    cursor: pointer;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

#nextPageBtn:active,
#nextPageBtn:hover {
    top: 525px;
    background: #440088;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#toggleSecondaryBtn {
    position: absolute;
    width: 128px;
    height: 32px;
    top: 410px;
    right: 24px;
    box-sizing: border-box;
    font-size: large;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #8800ff;
    border: 0;
    cursor: pointer;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

#toggleSecondaryBtn:active,
#toggleSecondaryBtn:hover {
    top: 411px;
    background: #440088;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#customWrapper {
    position: absolute;
    color: white;
    -webkit-transition: max-height 1s;
    -moz-transition: max-height 1s;
    -ms-transition: max-height 1s;
    -o-transition: max-height 1s;
    transition: max-height 1s;
    overflow: hidden;
    z-index: 3;
    top: 38px;
    left: 32px;
}

#flagsDiv {
    float: left;
    width: 380px;
    height: 78px;
}

#flagname {
    font-size: 20px;
    color: white;
}

#flagnameInput {
    width: 128px;
    padding: 10px;
    border: solid 1px #dcdcdc;
    transition: box-shadow 0.3s, border 0.3s;
    box-sizing: border-box;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-bottom: 4px;
    outline: none;
}

#flagnameInput:focus,
#flagnameInput.focus {
    border: solid 1px #CCCCCC;
    box-shadow: 0 0 3px 1px #DDDDDD;
}

#game {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sprite {
    background-image: url(../img/shop/spritesheet.png);
    background-repeat: no-repeat;
    display: block;
    background-size: 4216px;
}

.sprite2 {
    background-image: url(../img/shop/spritesheet.png);
    background-repeat: no-repeat;
    display: block;
    background-size: 1984px;
}

.sprite-skin1 {
    width: 136px;
    height: 136px;
    background-position: 0 0;
}

.sprite-skin10 {
    width: 136px;
    height: 136px;
    background-position: -136px 0;
}

.sprite-skin11 {
    width: 136px;
    height: 136px;
    background-position: -272px 0;
}

.sprite-skin12 {
    width: 136px;
    height: 136px;
    background-position: -408px 0;
}

.sprite-skin13 {
    width: 136px;
    height: 136px;
    background-position: -544px 0;
}

.sprite-skin14 {
    width: 136px;
    height: 136px;
    background-position: -680px 0;
}

.sprite-skin15 {
    width: 136px;
    height: 136px;
    background-position: -816px 0;
}

.sprite-skin16 {
    width: 136px;
    height: 136px;
    background-position: -952px 0;
}

.sprite-skin17 {
    width: 136px;
    height: 136px;
    background-position: -1088px 0;
}

.sprite-skin18 {
    width: 136px;
    height: 136px;
    background-position: -1224px 0;
}

.sprite-skin19 {
    width: 136px;
    height: 136px;
    background-position: -1360px 0;
}

.sprite-skin2 {
    width: 136px;
    height: 136px;
    background-position: -1496px 0;
}

.sprite-skin20 {
    width: 136px;
    height: 136px;
    background-position: -1632px 0;
}

.sprite-skin21 {
    width: 136px;
    height: 136px;
    background-position: -1768px 0;
}

.sprite-skin22 {
    width: 136px;
    height: 136px;
    background-position: -1904px 0;
}

.sprite-skin23 {
    width: 136px;
    height: 136px;
    background-position: -2040px 0;
}

.sprite-skin24 {
    width: 136px;
    height: 136px;
    background-position: -2176px 0;
}

.sprite-skin25 {
    width: 136px;
    height: 136px;
    background-position: -2312px 0;
}

.sprite-skin26 {
    width: 136px;
    height: 136px;
    background-position: -2448px 0;
}

.sprite-skin3 {
    width: 136px;
    height: 136px;
    background-position: -2584px 0;
}

.sprite-skin4 {
    width: 136px;
    height: 136px;
    background-position: -2720px 0;
}

.sprite-skin5 {
    width: 136px;
    height: 136px;
    background-position: -2856px 0;
}

.sprite-skin6 {
    width: 136px;
    height: 136px;
    background-position: -2992px 0;
}

.sprite-skin7 {
    width: 136px;
    height: 136px;
    background-position: -3128px 0;
}

.sprite-skin8 {
    width: 136px;
    height: 136px;
    background-position: -3264px 0;
}

.sprite-skin9 {
    width: 136px;
    height: 136px;
    background-position: -3400px 0;
}

.sprite-skin0 {
    width: 136px;
    height: 136px;
    background-position: -3536px 0;
}

.sprite-skin27 {
    width: 136px;
    height: 136px;
    background-position: -3672px 0;
}

.sprite-skin28 {
    width: 136px;
    height: 136px;
    background-position: -3808px 0;
}

.sprite-skin29 {
    width: 136px;
    height: 136px;
    background-position: -3944px 0;
}

.sprite-skin30 {
    width: 136px;
    height: 136px;
    background-position: -4080px 0;
}

.sprite2-skin1 {
    width: 136px;
    height: 136px;
    background-position: 0 0;
}

.sprite2-skin10 {
    width: 136px;
    height: 136px;
    background-position: -64px 0;
}

.sprite2-skin11 {
    width: 136px;
    height: 136px;
    background-position: -128px 0;
}

.sprite2-skin12 {
    width: 136px;
    height: 136px;
    background-position: -192px 0;
}

.sprite2-skin13 {
    width: 136px;
    height: 136px;
    background-position: -256px 0;
}

.sprite2-skin14 {
    width: 136px;
    height: 136px;
    background-position: -320px 0;
}

.sprite2-skin15 {
    width: 136px;
    height: 136px;
    background-position: -384px 0;
}

.sprite2-skin16 {
    width: 136px;
    height: 136px;
    background-position: -448px 0;
}

.sprite2-skin17 {
    width: 136px;
    height: 136px;
    background-position: -512px 0;
}

.sprite2-skin18 {
    width: 136px;
    height: 136px;
    background-position: -576px 0;
}

.sprite2-skin19 {
    width: 136px;
    height: 136px;
    background-position: -640px 0;
}

.sprite2-skin2 {
    width: 136px;
    height: 136px;
    background-position: -704px 0;
}

.sprite2-skin20 {
    width: 136px;
    height: 136px;
    background-position: -768px 0;
}

.sprite2-skin21 {
    width: 136px;
    height: 136px;
    background-position: -832px 0;
}

.sprite2-skin22 {
    width: 136px;
    height: 136px;
    background-position: -896px 0;
}

.sprite2-skin23 {
    width: 136px;
    height: 136px;
    background-position: -960px 0;
}

.sprite2-skin24 {
    width: 136px;
    height: 136px;
    background-position: -1024px 0;
}

.sprite2-skin25 {
    width: 136px;
    height: 136px;
    background-position: -1088px 0;
}

.sprite2-skin26 {
    width: 136px;
    height: 136px;
    background-position: -1152px 0;
}

.sprite2-skin3 {
    width: 136px;
    height: 136px;
    background-position: -1216px 0;
}

.sprite2-skin4 {
    width: 136px;
    height: 136px;
    background-position: -1280px 0;
}

.sprite2-skin5 {
    width: 136px;
    height: 136px;
    background-position: -1344px 0;
}

.sprite2-skin6 {
    width: 136px;
    height: 136px;
    background-position: -1408px 0;
}

.sprite2-skin7 {
    width: 136px;
    height: 136px;
    background-position: -1472px 0;
}

.sprite2-skin8 {
    width: 136px;
    height: 136px;
    background-position: -1536px 0;
}

.sprite2-skin9 {
    width: 136px;
    height: 136px;
    background-position: -1600px 0;
}

.sprite2-skin0 {
    width: 136px;
    height: 136px;
    background-position: -1664px 0;
}

.sprite2-skin27 {
    width: 136px;
    height: 136px;
    background-position: -1728px 0;
}

.sprite2-skin28 {
    width: 136px;
    height: 136px;
    background-position: -1792px 0;
}

.sprite2-skin29 {
    width: 136px;
    height: 136px;
    background-position: -1856px 0;
}

.sprite2-skin30 {
    width: 136px;
    height: 136px;
    background-position: -1920px 0;
}
/* ================================================================
   SuperSpin.io v2 — дополнения по ТЗ
   ================================================================ */

/* ТЗ п.7: топ-1 в таблице лидеров — светло-синий (в оригинале был красный) */
#scoreline1 {
    color: #66ccff;
}
.scorelinetop {
    color: #66ccff;
}
/* твоя строка — зелёная */
.scorelineme {
    color: #88ff88 !important;
}
/* ТЗ п.5: админы светятся жёлтым */
.scorelineadmin {
    color: #ffd700 !important;
}
/* ТЗ п.6: мини-строка под таблицей — твой ник и очки в реальном времени, зелёным */
#scorelineyou {
    color: #88ff88;
    margin-top: 8px;
    border-top: 1px solid rgba(136, 255, 136, 0.35);
    padding-top: 4px;
}

/* ТЗ п.12: тема в верхнем левом углу меню */
#cornerTheme {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    z-index: 3;
}
#cornerTheme b {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}
#cornerTheme img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: block;
    margin: 0 auto 6px auto;
}
#cornerTheme span {
    display: block;
    font-size: 12px;
    font-weight: bold;
}

/* ТЗ п.17: кнопка и панель Highscore list */
#highscoreListBtn {
    margin-top: 6px;
    padding: 4px 10px;
    background: #446688;
    color: #fff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
#highscoreListBtn:hover { background: #335577; }
#highscorePanel {
    position: absolute;
    right: 0;
    top: 84px;
    width: 340px;
    max-height: 420px;
    overflow: auto;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 6px;
    padding: 8px;
    font-size: 12px;
    text-align: left;
    z-index: 5;
}
.hsCols { display: flex; gap: 8px; }
.hsCol { flex: 1; }
.hsCol b { display: block; text-align: center; margin-bottom: 4px; color: #66ccff; }
.hsRow { padding: 1px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ТЗ п.16: окошко уровня */
#levelBox {
    margin-top: 10px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    background: rgba(20, 40, 80, 0.5);
}
/* ТЗ п.8: кошелёк */
#walletBox {
    margin-top: 6px;
    color: #fff;
    text-align: center;
    font-size: 14px;
}
.coinSilver { color: #bbbbbb; }
.coinGold { color: #ffd700; }

/* кнопка Rules (ТЗ п.2) */
#rulesButton {
    position: relative;
    margin-top: 10px;
    width: 100%;
    height: 32px;
    box-sizing: border-box;
    font-size: medium;
    color: white;
    text-align: center;
    background: #446688;
    border: 0;
    cursor: pointer;
    border-radius: 4px;
}
#rulesButton:hover { background: #335577; }
#customButtonWrapper { height: auto; }
.rulesTable td { padding: 3px 4px; vertical-align: top; color: #333; }
.ruleNum { font-weight: bold; white-space: nowrap; }

/* магазин скинов: вкладки, кошелёк, цены (ТЗ п.10, п.16) */
#shopTabs {
    position: absolute;
    top: 8px;
    left: 16px;
    right: 56px;
    height: 40px;
    z-index: 2;
}
.shopTab {
    padding: 6px 12px;
    margin-right: 6px;
    background: #888;
    border: 0;
    border-radius: 4px 4px 0 0;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}
.shopTabActive { background: #8800ff; }
#shopWallet {
    color: #333;
    font-weight: bold;
    margin-left: 10px;
    font-size: 14px;
}
#buyGoldBtn { float: right; background: #b8860b; }
.skinPrice {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    z-index: 2;
}
.priceLevel { background: #1a4a7a; }      /* тёмно-голубое окошко — за уровни */
.priceSilver { background: #777777; }     /* серое окошко — за серые монеты */
.priceGold { background: #b8860b; }       /* неяркое жёлтое — за золотые */

/* экран смерти: плашка с наградами под логотипом (ТЗ п.8) */
.deathPlate {
    display: inline-block;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 14px 28px;
    line-height: 1.5;
}
.rewardsLine {
    font-size: 65%;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
}
.rewardsLine .coinSilver { color: #c8c8c8; text-shadow: 0 0 6px #ffffff; }
.rewardsLine .coinGold { color: #ffd700; text-shadow: 0 0 6px #ffcc00; }

/* кошелёк в меню — заметный бокс, как окошко уровня */
#walletBox {
    margin-top: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    background: rgba(60, 50, 10, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
#walletBox .coinSilver { text-shadow: 0 0 5px #ffffff; }
#walletBox .coinGold { text-shadow: 0 0 5px #ffcc00; }

/* модалка входа через Google (ТЗ п.3) */
#googleModalOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 50;
    align-items: center;
    justify-content: center;
}
#googleModal {
    position: relative;
    background: #ffffff;
    color: #222;
    border-radius: 10px;
    padding: 24px 32px;
    width: 340px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
#googleModal h3 { margin-top: 0; }
#googleModal p { font-size: 13px; color: #444; }
#googleModalClose {
    position: absolute;
    right: 12px;
    top: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}
#googleBtnHolder { display: flex; justify-content: center; margin: 12px 0; }
#googleModalStatus { color: #b00; font-size: 12px; min-height: 16px; }

/* строка аккаунта под кошельком */
#accountBox {
    margin-top: 4px;
    color: #cccccc;
    text-align: center;
    font-size: 12px;
}

/* ==================== мобильная адаптация ==================== */
#game canvas { touch-action: none; }
html, body { overscroll-behavior: none; }

@media (max-width: 720px) {
    /* тема в углу — компактная, чтобы не налезала на логотип */
    #cornerTheme { max-width: 96px; }
    #cornerTheme b { font-size: 11px; margin-bottom: 3px; }
    #cornerTheme img { width: 32px; height: 32px; margin-bottom: 3px; }
    #cornerTheme span { font-size: 8px; }

    #highscorePanel { width: 92vw; max-width: 340px; font-size: 11px; }
    #highscoreListBtn { font-size: 11px; padding: 3px 8px; }

    #googleModal { width: 88vw; max-width: 340px; padding: 18px 14px; }

    /* магазин скинов: во всю ширину, 2 колонки (см. iap.js) */
    #skinSelector { width: 96vw; max-height: 78vh; }
    #shopTabs { right: 48px; }
    .shopTab { padding: 5px 8px; font-size: 12px; margin-right: 4px; }
    #shopWallet { font-size: 12px; margin-left: 4px; }

    #levelBox { font-size: 12px; }
    #walletBox { font-size: 13px; }
    #rulesinfo { width: 92vw; }

    /* верхний правый блок рекорда компактнее */
    #status { font-size: 13px; }
}

@media (max-width: 720px) {
    #highscoreCorner {
        background: rgba(0, 0, 0, 0.55);
        border-radius: 6px;
        padding: 4px 8px;
        font-size: 12px;
    }
    #highscoreCorner p { margin: 2px 0; font-size: 12px; }
}
