:root {
  color-scheme: light;
  font-family: "Hind", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #0f172a;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: #1c1d27 url("/images/logos/background.png") center / cover
    no-repeat fixed;
}

@font-face {
  font-family: "Hind";
  src: url("/fonts/Hind/Hind-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Hind";
  src: url("/fonts/Hind/Hind-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Hind";
  src: url("/fonts/Hind/Hind-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Hind";
  src: url("/fonts/Hind/Hind-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Akaya Kanadaka";
  src: url("/fonts/AkayaKanadaka/AkayaKanadaka-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

body {
  margin: 0;
  padding: 12px;
  display: grid;
  place-items: center;
}

* {
  box-sizing: border-box;
}

main,
section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

main {
  width: min(100%, 360px);
  background: #039c10;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 14px rgba(0, 0, 0, 0.35);
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: relative;
  z-index: 2;
}

h1 {
  font-size: 22px;
  margin: 0;
  font-family: "Akaya Kanadaka", cursive;
  color: #ffffff;
  line-height: 1.2;
  text-align: left;
}

.brand-icon {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}


.brand-link {
  display: inline-flex;
  border-radius: 8px;
  transition: transform 0.12s ease;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.brand-link:hover {
  transform: translateY(-3px);
}

.brand-link:active {
  transform: translateY(0);
}

.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.qr {
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.qr-box {
  background: #03630b;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 10px 14px rgba(0, 0, 0, 0.35);
  width: 252px;
  min-height: 252px;
  overflow: hidden;
}

#qr-code img {
  display: block;
  margin: 0 auto;
}

.qr-caption {
  margin: 8px 0 0;
  font-family: "Akaya Kanadaka", cursive;
  font-size: 22px;
  color: #ffffff;
  text-align: center;
}

.hidden {
  display: none !important;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  min-height: 220px;
  max-width: 220px;
  min-width: 0;
  color: #ffffff;
  text-align: center;
}

.placeholder-text {
  margin: 4px 0 8px;
  font-size: 12px;
  opacity: 0.85;
  text-align: center;
  font-weight: bold;
}

.placeholder-image {
  width: 90px;
  height: 90px;
  margin-bottom: 10px;
  object-fit: contain;
}

.placeholder-subtext {
  font-size: 12px;
  opacity: 0.75;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 6px;
}

button,
.app-button {
  border: none;
  background: #fa6400;
  color: #ffffff;
  font-size: 14px;
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  font-family: "Hind", sans-serif;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 10px 14px rgba(0, 0, 0, 0.35);
  min-width: 130px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.app-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.35);
}


button:active, 
.app-button:active {
  transform: translateY(0);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.35);
}

.status {
  font-size: 12px;
  color: #ffffff;
  min-height: 18px;
  text-align: center;
}

.description {
  margin: 2px 6px 0;
  font-size: 12px;
  line-height: 1.35;
  color: #ffffff;
  opacity: 0.9;
  text-align: center;
}

.description a {
  color: #b9fc10;
}

.url-example {
  color: #ffffff;
  font-family: "Hind", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
