body {
  padding: 0;
  margin: 0;
  background: #FFF0C0;
  overflow-y: hidden;
  overflow-x: hidden;
}

#unity-container { 
  position: absolute;
}

/* Desktop: a 3:4 canvas in a frame, as large as the window allows. Phones: the canvas fills the window (below).
   Unity sizes its drawing buffer from the canvas's getBoundingClientRect() x devicePixelRatio. So the canvas has no
   border, outline or transform: the frame is box-shadow rings outside its box. Sizes here are whole CSS pixels;
   Modules/CanvasSnap/canvas-snap.js snaps them to whole device pixels at any devicePixelRatio. Off by a fraction, the
   browser resamples the buffer onto the screen and the whole picture goes soft */
#unity-container.unity-universal,
#unity-container.unity-universal-yagames {
  /* canvas-snap.js reads these */
  --margin-top: 3px;
  --margin-bottom: 3px;
  --ring-inner: 5px;
  --ring-outer: 7px;
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
}

#unity-container.unity-universal-yagames {
  --margin-bottom: 11px;
}

#unity-canvas {
  background: #000000;
}

.unity-universal #unity-canvas,
.unity-universal-yagames #unity-canvas {
  --frame-height: calc(100vh - var(--margin-top) - var(--margin-bottom) - 2 * var(--ring-outer));
  --frame-width: calc(100% - 2 * var(--ring-outer));
  width: min(var(--frame-width), calc(var(--frame-height) * 3 / 4));
  /* A multiple of 3px keeps the 4/3 height whole too */
  width: round(down, min(var(--frame-width), calc(var(--frame-height) * 3 / 4)), 3px);
  aspect-ratio: 3 / 4;
  align-self: flex-start;
  margin-top: calc(var(--margin-top) + var(--ring-outer));
  border-radius: 9px;
  box-shadow: 0 0 0 var(--ring-inner) #FDC002, 0 0 0 var(--ring-outer) #923B09;
}

/* canvas-snap.js: the same layout in whole device pixels */
#unity-container.snapped #unity-canvas {
  position: absolute;
  left: var(--snap-left);
  top: var(--snap-top);
  width: var(--snap-width);
  height: var(--snap-height);
  margin: 0;
  aspect-ratio: auto;
  box-shadow: 0 0 0 var(--snap-ring-inner) #FDC002, 0 0 0 var(--snap-ring-outer) #923B09;
}

#unity-canvas:fullscreen {
  border-radius: 0;
  box-shadow: none;
}

@font-face {
  font-family: 'TT Domovyata'; /* Название шрифта */
  src: url('fonts/domovyata/TT_Domovyata_Black.037c1ac9.woff2') format('woff2'), /* Подключаем файл шрифта */
  url('fonts/domovyata/TT_Domovyata_Black.de0c08bd.woff') format('woff'),
  url('fonts/domovyata/TT_Domovyata_Black.2f9b6c5f.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html,body{
  height: 100%;
  width: 100%;
  font-size: 100%;
  background-color: #FEF8D6;
  line-height: 1;
  color: #252B42;
  font-family: 'TT Domovyata', sans-serif;   /* стиль добавлен в верстку по умолчанию ка основной*/
  font-weight: 900;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* For Mobile Phones View */
@media screen
  and (max-device-width: 768px) {
    .unity-universal #unity-canvas,
    .unity-universal-yagames #unity-canvas {
      width: 100%;
      height: 100%;
      aspect-ratio: auto;
      margin: 0;
      border-radius: 0;
      box-shadow: none;
    }
}

.unity-universal-yagames #unity-footer {
  display: none
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none
}

#unity-footer { 
  position: relative
}

.unity-universal #unity-footer {
  display: none
}

#unity-webgl-logo {
  float:left;
  width: 204px;
  height: 38px;
  background: url('webgl-logo.dd69deeb.png') no-repeat center
}

#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-family: arial;
  font-size: 18px
}

#unity-fullscreen-button {
  cursor:pointer;
  float: right;
  width: 38px;
  height: 38px;
  background: url('fullscreen-button.a25e94c1.png') no-repeat center
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none
}

#unity-logo {
  width: 254px;
  height: 197px;
  background: url('Loader/logo_rus.png') no-repeat center;
  background-size: contain
}

#unity-progress-bar {
  transform: translate(-1%, 0%)
}

#unity-progress-bar-background {
  width: 262px;
  height: 33px;
  transform: translate(0%, -33%);
  background: url('Loader/back_panel_bar.1838d52d.png') no-repeat center;
  background-size: contain
}

#unity-progress-bar-full {
  width: 0%;
  height: 25px;
  max-width: 186px;
  transform: translate(38.5px, -166%);
  border-radius: 7px;
  background: url('Loader/fill_bar.b9405d95.png') no-repeat center
}

#unity-progress-bar-stroke {
  width: 262px;
  height: 36px;
  transform: translate(0%, -200%);
  background: url('Loader/stroke_bar.e8a8c601.png') no-repeat center;
  background-size: contain
}

#unity-progress-text {
  position: absolute;
  left: 50%;
  top: 80%;
  transform: translateX(-50%);
  color: #FFF0C0;
  white-space: pre-line;
  text-align: center;
  font-family: sans-serif;
  font-size: 20px;
  line-height: 1.2;
  width: 500px;
  font-weight: 900;
}

#input-dialog-area {
  display: none;
  width:100%;
  min-height:120px;
  position: fixed;
  bottom: 0px;
  z-index:2147483647;
  background-color: #FFF0C0;
}

#input-dialog-area.active {
  display: block;
}

.wrapper {
  width: calc(100% - 30px);
  max-width: 637px;
  position: fixed;
  right: 20px;
  bottom: 20px;
}

.notificationWrapper {
  width: calc(100% - 30px);
  max-width: 607px;
  border-radius: 15px;
  background-color: #FFFDF5;
  padding: 18px 20px;
  display: none;
  justify-content: space-between;
  align-items: center;

  z-index: 15000;
  position: fixed;
  right: 20px;
  bottom: 20px;
}

.notificationWrapper.active {
  display: block;
}

.notificationText {
  font-family: "tildaScaansRegular", sans-serif;
  font-size: 14px;
  line-height: 16.8px;
  font-weight: 400;
  color: #000000;
  text-align: start;
}

.notificationText a {
  display: inline;
  color: #6D0100;
}

.notificationButtonWrapper {
  width: 100%;
  max-width: 126px;
}

.notificationButtonLink {
  width: 100%;
  background-color: #DD7B00;
  padding: 9px 22px;
  border-radius: 15px;
}

.notificationButtonText {
  color: #FFFAE9;
  font-family: "tildaScaansBold", sans-serif;
  font-size: 16px;
  line-height: 19.14px;
  font-weight: 700;
}

@media(max-width: 570px) {
  .notificationWrapper {
    width: calc(100% - 30px);
    max-width: 570px;
    border-radius: 15px;
    background-color: #FFFDF5;
    padding: 18px 20px;
    display: none;
    justify-content: space-between;
    align-items: center;
  }

  .notificationText {
    font-family: "tildaScaansRegular", sans-serif;
    font-size: 12px;
    line-height: 14.4px;
    font-weight: 400;
    color: #000000;
  }

  .notificationText a {
    display: inline;
    color: #6D0100;
  }

  .notificationButtonWrapper {
    width: 100%;
    max-width: 119px;
  }

  .notificationButtonLink {
    width: 100%;
    background-color: #DD7B00;
    padding: 9px 22px;
    border-radius: 15px;
  }

  .notificationButtonText {
    color: #FFFAE9;
    font-family: "tildaScaansBold", sans-serif;
    font-size: 16px;
    line-height: 19.14px;
    font-weight: 700;
  }
}

#gp_burger_btn_install.hide {
  display: none;
}

@media (display-mode: standalone) {
  #gp_burger_btn_install {
    display: none;
  }
}

@media (display-mode: minimal-ui) {
  #gp_burger_btn_install {
    display: none;
  }
}
