.android-app {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid #d7c6a1;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px #07151066;
  overscroll-behavior: contain;
}

.android-app::backdrop {
  background: #0b1d16b8;
}

html:has(.android-app[open]) {
  overflow: hidden;
}

.android-app-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
}

.android-app-art {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  min-height: 170px;
  padding: 24px;
  background: linear-gradient(0deg, #102d22 2%, #102d2233 100%),
    var(--green) url('../uploads/gallery/Sigiriya-8.jpg') center / cover no-repeat;
  color: #fff6e3;
  font: 24px/1.4 var(--serif);
}

.android-app-art img {
  object-fit: contain;
  border-radius: 14px;
  background: var(--paper);
  padding: 8px;
}

.android-app-copy {
  padding: 42px 30px 24px;
}

.android-app-copy .eyebrow {
  margin-bottom: 10px;
  color: #735b2e;
}

.android-app-copy h2,
html[lang=si] .android-app-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(25px, 5vw, 36px);
  letter-spacing: normal;
}

.android-app-copy p {
  margin-bottom: 20px;
  color: #545e52;
}

.android-app-store {
  gap: 12px;
  border-radius: 6px;
  font-size: 14px;
}

.android-app-close,
.android-app-actions button {
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

.android-app-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  font-size: 24px;
  line-height: 1;
}

.android-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 10px;
}

.android-app-actions button {
  min-height: 44px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .android-app-layout {
    grid-template-columns: 1fr;
  }

  .android-app-art {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 112px;
    padding: 16px 58px 16px 20px;
  }

  .android-app-art img {
    width: 52px;
    height: 52px;
  }

  .android-app-copy {
    padding: 24px 20px 16px;
  }
}
