/* NobleRings App – install banner, help sheet and [nr_install_app] button */
.nr-app-banner, .nr-app-sheet, .nr-app-install {
	--nr-app-brand: #055c69;   /* deep teal: buttons with white text (1.1.0; was green #12403C) */
	--nr-app-gold: #b08a2e;
	--nr-app-text: #1f2a2e;
	--nr-app-muted: #52667a;
	--nr-app-card: #ffffff;
	--nr-app-line: rgba(0, 0, 0, .12);
}
@media (prefers-color-scheme: dark) {
	.nr-app-banner, .nr-app-sheet { --nr-app-text: #eef2f1; --nr-app-muted: #b9c6c3; --nr-app-card: #18221f; --nr-app-line: rgba(255, 255, 255, .14); }
}

.nr-app-btn {
	font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
	min-height: 48px; padding: 0 18px; border-radius: 10px; cursor: pointer;
	border: 0; white-space: nowrap;
}
.nr-app-btn--primary { background: var(--nr-app-brand); color: #fff; }
.nr-app-btn--plain { background: transparent; color: var(--nr-app-muted); }
.nr-app-btn:focus-visible { outline: 3px solid var(--nr-app-gold); outline-offset: 2px; }

/* Banner at the bottom of the screen */
.nr-app-banner {
	position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 100000;
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	padding: 14px 14px 10px; border-radius: 16px;
	background: var(--nr-app-card); color: var(--nr-app-text);
	border: 1px solid var(--nr-app-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	animation: nr-app-up .25s ease-out;
}
.nr-app-banner img { border-radius: 10px; flex: 0 0 auto; }
.nr-app-banner__text { flex: 1 1 180px; min-width: 0; }
.nr-app-banner__text strong { display: block; font-size: 17px; line-height: 1.3; }
.nr-app-banner__text span { display: block; font-size: 14px; line-height: 1.4; color: var(--nr-app-muted); margin-top: 2px; }
.nr-app-banner__actions { display: flex; gap: 8px; flex: 1 1 100%; justify-content: flex-end; }
.nr-app-banner__actions .nr-app-btn--primary { flex: 1 1 auto; }
@media (min-width: 600px) {
	.nr-app-banner { left: auto; max-width: 440px; }
}
body.nr-app-has-banner { padding-bottom: 150px; }
@keyframes nr-app-up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nr-app-banner { animation: none; } }

/* Help sheet */
.nr-app-sheet {
	position: fixed; inset: 0; z-index: 100001; display: flex; align-items: flex-end; justify-content: center;
	background: rgba(0, 0, 0, .45); padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.nr-app-sheet__panel {
	width: 100%; max-width: 440px; background: var(--nr-app-card); color: var(--nr-app-text);
	border-radius: 18px; padding: 22px 20px 18px;
}
.nr-app-sheet__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nr-app-sheet__head img { border-radius: 12px; }
.nr-app-sheet__head h2 { margin: 0; font-size: 20px; line-height: 1.3; color: inherit; }
.nr-app-sheet__steps { list-style: none; margin: 0 0 18px; padding: 0; }
.nr-app-sheet__steps li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--nr-app-line); font-size: 17px; line-height: 1.45; }
.nr-app-sheet__num, .nr-app-sheet__share {
	flex: 0 0 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--nr-app-brand); color: #fff; font-weight: 700;
}
.nr-app-sheet__share { border-radius: 9px; background: #e8eef6; color: #1a73e8; }
.nr-app-sheet__other { font-size: 17px; line-height: 1.5; margin: 0 0 18px; }
.nr-app-sheet .nr-app-btn { width: 100%; }

/* [nr_install_app] */
.nr-app-install { margin: 16px 0; }
.nr-app-install__btn {
	display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
	font: inherit; font-size: 17px; font-weight: 600; min-height: 52px; padding: 0 20px;
	border: 0; border-radius: 10px; background: var(--nr-app-brand); color: #fff; cursor: pointer;
}
.nr-app-install__btn img { border-radius: 6px; }
.nr-app-install__note { margin: 8px 0 0; font-size: 14px; color: var(--nr-app-muted); }

/* 1.7.0: no install button or banner on computers. */
@media (min-width: 960px) and (pointer: fine) {
	.nr-app-banner, .nr-app-install { display: none !important; }
	body.nr-app-has-banner { padding-bottom: 0; }
}
